7ee4994b88ff35b748f998cd96268e175ba388d7,flow/scenarios/base_scenario.py,Scenario,__init__,#Scenario#Any#Any#Any#Any#Any#,63

Before Change


        self.internal_edgestarts = \
            [item for item in self.internal_edgestarts
             if item[1] not in seen and not seen.add(item[1])]
        self.internal_edgestarts_dict = dict(self.internal_edgestarts)

        // total_edgestarts and total_edgestarts_dict contain all of the above
        // edges, with the former being ordered by position
        if self.net_params.no_internal_links:

After Change


        self.initial_config = initial_config
        self.traffic_lights = traffic_lights

        if net_params.netfile is None and net_params.osm_path is None:
            // specify the attributes of the nodes
            self.nodes = self.specify_nodes(net_params)
            // collect the attributes of each edge
            self.edges = self.specify_edges(net_params)
            // specify the types attributes (default is None)
            self.types = self.specify_types(net_params)
            // specify the connection attributes (default is None)
            self.connections = self.specify_connections(net_params)
        else:
            self.nodes = None
            self.edges = None
            self.types = None
            self.connections = None

        // specify routes vehicles can take
        self.routes = self.specify_routes(net_params)

        // optional parameters, used to get positions from some global reference
        self.edge_starts = self.specify_edge_starts()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: flow-project/flow
Commit Name: 7ee4994b88ff35b748f998cd96268e175ba388d7
Time: 2018-12-20
Author: akreidieh@gmail.com
File Name: flow/scenarios/base_scenario.py
Class Name: Scenario
Method Name: __init__


Project Name: tryolabs/luminoth
Commit Name: 12bba41d0a8f8eb2f236f7efdd4f656338c1281b
Time: 2018-09-04
Author: agustin@tryolabs.com
File Name: luminoth/tools/dataset/readers/object_detection/csv_reader.py
Class Name: CSVReader
Method Name: _get_records


Project Name: dpressel/mead-baseline
Commit Name: 2eb4c5f77bd8da9b1e23851b0acb84543e442953
Time: 2018-09-24
Author: dpressel@gmail.com
File Name: python/baseline/pytorch/classify/model.py
Class Name: WordClassifierModelBase
Method Name: create