4956dc485f78ef2b7c5f4a13f8abb7a24cfbb1bb,flow/scenarios/highway/gen.py,HighwayGenerator,specify_nodes,#HighwayGenerator#Any#,20
Before Change
"id": "begin",
"x": repr(0),
"y": repr(0)
}, {
"id": "end",
"x": repr(length),
"y": repr(0)
}]
return nodes
After Change
See parent class.
length = net_params.additional_params["length"]
num_edges = net_params.additional_params.get("length", 1)
segment_lengths = np.linspace(0, length, num_edges+1)[1:]
nodes = []
for i in range(num_edges):
nodes += [{
"id": "begin_{}".format(i),
"x": repr(segment_lengths[i]),
"y": repr(segment_lengths[i])
}, {
"id": "end_{}".format(i),
"x": repr(segment_lengths[i+1]),
"y": repr(segment_lengths[i+1])
}]
return nodes
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: flow-project/flow
Commit Name: 4956dc485f78ef2b7c5f4a13f8abb7a24cfbb1bb
Time: 2018-09-16
Author: vinitsky.eugene@gmail.com
File Name: flow/scenarios/highway/gen.py
Class Name: HighwayGenerator
Method Name: specify_nodes
Project Name: mozilla/TTS
Commit Name: c65712426aa8fe18a6b40b71a9a6b2c9681e9ec2
Time: 2020-11-14
Author: erogol@hotmail.com
File Name: TTS/bin/tune_wavegrad.py
Class Name:
Method Name:
Project Name: scikit-learn/scikit-learn
Commit Name: 7cb5dafebbebefbe7e991272fad1feb12f4d630c
Time: 2019-10-02
Author: stsievert@users.noreply.github.com
File Name: examples/model_selection/plot_randomized_search.py
Class Name:
Method Name: