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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: osmr/imgclsmob
Commit Name: ea65d92a41ba1e8171cd0814dc9c50373f8e2c4f
Time: 2020-01-16
Author: osemery@gmail.com
File Name: eval_ch.py
Class Name:
Method Name: main


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: home-assistant/home-assistant
Commit Name: 533799656e19ae0f6c94c63ad91cb107daf607a4
Time: 2016-04-22
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/alexa.py
Class Name:
Method Name: setup


Project Name: vatlab/SoS
Commit Name: 570dca355344924ca6c00fa4c14aa484312ae065
Time: 2017-03-04
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name: TaskEngine
Method Name: run