66189443c3b3b6cbd2c3b184878e61dde5c9618c,flow/scenarios/grid/grid_scenario.py,SimpleGridScenario,__init__,#SimpleGridScenario#Any#Any#Any#Any#Any#,31

Before Change


        // number of lanes in each edge
        self.lanes = {}
        for i in range(self.col_num-1):
            self.lanes.update(
                {"left{}_{}".format(self.row_num-1, i): vertical_lanes,
                 "right0_{}".format(i): horizontal_lanes})
        for i in range(self.row_num-1):
                self.lanes.update(
                    {"top{}_{}".format(i, self.col_num-1): vertical_lanes,
                     "bot" + str(i)+"_"+"0": horizontal_lanes})

After Change


        See Scenario.py for description of params.
        
        for p in ADDITIONAL_NET_PARAMS.keys():
            if p not in net_params.additional_params:
                raise KeyError("Network parameter "{}" not supplied".format(p))

        for p in ADDITIONAL_NET_PARAMS["grid_array"].keys():
            if p not in net_params.additional_params["grid_array"]:
                raise KeyError("Grid array parameter "{}" not supplied".
                               format(p))

        // this is a (mx1)x(nx1)x2 array
        // the third dimension is vertical length, horizontal length
        self.grid_array = net_params.additional_params["grid_array"]

        vertical_lanes = net_params.additional_params["vertical_lanes"]
        horizontal_lanes = net_params.additional_params["horizontal_lanes"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: flow-project/flow
Commit Name: 66189443c3b3b6cbd2c3b184878e61dde5c9618c
Time: 2018-02-21
Author: akreidieh@gmail.com
File Name: flow/scenarios/grid/grid_scenario.py
Class Name: SimpleGridScenario
Method Name: __init__


Project Name: hyperopt/hyperopt
Commit Name: 2909332cb7d37f80b6f7096043a3784e5c9f4aa9
Time: 2011-10-31
Author: james.bergstra@gmail.com
File Name: hyperopt/gdist.py
Class Name: Union
Method Name: perform


Project Name: flow-project/flow
Commit Name: 66189443c3b3b6cbd2c3b184878e61dde5c9618c
Time: 2018-02-21
Author: akreidieh@gmail.com
File Name: flow/scenarios/grid/grid_scenario.py
Class Name: SimpleGridScenario
Method Name: __init__


Project Name: ray-project/ray
Commit Name: b796de41049aa3b3696a6b7242799284c3f0c641
Time: 2021-01-20
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/util/metrics.py
Class Name: Metric
Method Name: record