6a98de289a02db6bd0c715affac9242a52c633e3,flow/visualize/time_space_diagram.py,,get_time_space_data,#Any#Any#,76
Before Change
// number of simulation steps
max_time = max(max(data[veh_id]["time"]) for veh_id in data.keys())
min_time = min(min(data[veh_id]["time"]) for veh_id in data.keys())
num_steps = int((max_time - min_time)/dt)
// Get the function from switcher dictionary
func = switcher[params["scenario"]]
// Execute the function
return func(data, params, dt, num_steps)
def _merge(data, params, dt, num_steps):
Generate position and speed data for the merge.
After Change
// Collect a list of all the unique times.
all_time = []
for veh_id in data.keys():
all_time.extend(data[veh_id]["time"])
all_time = np.sort(np.unique(all_time))
// Get the function from switcher dictionary
func = switcher[params["scenario"]]
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: flow-project/flow
Commit Name: 6a98de289a02db6bd0c715affac9242a52c633e3
Time: 2019-06-10
Author: akreidieh@gmail.com
File Name: flow/visualize/time_space_diagram.py
Class Name:
Method Name: get_time_space_data
Project Name: chainer/chainercv
Commit Name: 7c4af63f70cb78fea8163d9839b4f437c8cc319e
Time: 2017-12-18
Author: yuyuniitani@gmail.com
File Name: chainercv/links/model/resnet/building_block.py
Class Name: BuildingBlock
Method Name: __call__
Project Name: apache/incubator-tvm
Commit Name: ed583092dbeb4f1b0458ad015f607f0746d61e80
Time: 2020-06-10
Author: jingjing_gu@live.com
File Name: topi/tests/python/test_topi_sparse.py
Class Name:
Method Name: test_sparse_dense_bsr
Project Name: apache/incubator-tvm
Commit Name: ed583092dbeb4f1b0458ad015f607f0746d61e80
Time: 2020-06-10
Author: jingjing_gu@live.com
File Name: topi/tests/python/test_topi_sparse.py
Class Name:
Method Name: test_sparse_dense_bsr_randomized
Project Name: tensorflow/tpu
Commit Name: 546866f67f0674e52fa76547e98380ba51921b8c
Time: 2019-10-08
Author: power@google.com
File Name: models/official/mobilenet/inception_preprocessing.py
Class Name:
Method Name: apply_with_random_selector