77e660566176130d5363afca095d9cc6587c4cf5,flow/core/kernel/vehicle/aimsun.py,AimsunKernelVehicle,_add_departed,#AimsunKernelVehicle#Any#,133
Before Change
self.__vehicles[veh_id]["static_info"] = static_inf_veh
// set Aimsun ID
self.__vehicles[veh_id]["aimsun_id"] = int(aimsun_id)
// set veh_id to aimsun id
self._aimsun_to_veh_id[aimsun_id] = veh_id
After Change
// get the vehicle ID, or create a new vehicle ID if one doesn"t exist
// for the vehicle
if aimsun_id not in self._id_aimsun2flow.keys():
// get a new name for this vehicle
veh_id = "{}_{}".format(type_id, self.num_type[type_id])
self.num_type[type_id] += 1
self.__ids.append(veh_id) // FIXME: numbers and whatever.....
// set the Aimsun/Flow vehicle ID converters
self._id_aimsun2flow[aimsun_id] = veh_id
self._id_flow2aimsun[veh_id] = aimsun_id
else:
veh_id = self._id_aimsun2flow[aimsun_id]
// store the static info
self.__vehicles[veh_id]["static_info"] = static_inf_veh
// specify the acceleration controller class
accel_controller = \
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: flow-project/flow
Commit Name: 77e660566176130d5363afca095d9cc6587c4cf5
Time: 2018-12-27
Author: akreidieh@gmail.com
File Name: flow/core/kernel/vehicle/aimsun.py
Class Name: AimsunKernelVehicle
Method Name: _add_departed
Project Name: tensorflow/tensorboard
Commit Name: b85fd873930c51beaba187673f1548eb56e7f38a
Time: 2020-04-16
Author: wchargin@gmail.com
File Name: tensorboard/plugins/audio/audio_plugin.py
Class Name: AudioPlugin
Method Name: _serve_individual_audio
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9121332c18e024d417d1aeb189ec98f295ffc694
Time: 2020-07-28
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_packages/epel_release.py
Class Name:
Method Name: YumInstall