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

Before Change


            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})

        super().__init__(name, generator_class, vehicles, net_params,
                         initial_config=initial_config)

        self.edges = self.generator.specify_edges(net_params)

After Change


        
        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".
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: facebookresearch/ParlAI
Commit Name: c228fc1c648602f93c078298f9e363f6e02694d2
Time: 2017-12-15
Author: ahm@fb.com
File Name: parlai/core/thread_utils.py
Class Name: SharedTable
Method Name: __setitem__


Project Name: analysiscenter/batchflow
Commit Name: c3b7b7ffa9f18fa80bbfec86edf56b6db02e075b
Time: 2019-03-28
Author: rhudor@gmail.com
File Name: batchflow/named_expr.py
Class Name: C
Method Name: get


Project Name: flow-project/flow
Commit Name: 84e1ff2cbd32ab4a11c0b0356cbf89fe132b5bd8
Time: 2018-04-29
Author: akreidieh@gmail.com
File Name: flow/envs/bottleneck_env.py
Class Name: BridgeTollEnv
Method Name: __init__