59f8ee3ad1b881155e0d6ea100b2882403f9bc03,flow/core/vehicles.py,Vehicles,get_headway,#Vehicles#Any#,565

Before Change


        if not isinstance(veh_id, str):
            return [self.__vehicles[vehID]["headway"] for vehID in veh_id]
        elif veh_id == "all":
            return [self.__vehicles[vehID]["headway"] for vehID in self.__ids]
        else:
            return self.__vehicles[veh_id]["headway"]

After Change


        Returns the headway of the specified vehicle(s). If the vehicle is
        not found, return -1001.
        if isinstance(veh_id, list):
            return [self.get_headway(vehID) for vehID in veh_id]
        return self.__vehicles.get(veh_id, {}).get("headway", -1001)

    def set_lane_headways(self, veh_id, lane_headways):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: flow-project/flow
Commit Name: 59f8ee3ad1b881155e0d6ea100b2882403f9bc03
Time: 2018-02-21
Author: akreidieh@gmail.com
File Name: flow/core/vehicles.py
Class Name: Vehicles
Method Name: get_headway


Project Name: flow-project/flow
Commit Name: b85c67b7465be793a0646da90378fcdf7f9d063f
Time: 2017-06-16
Author: eugenevinitsky@Eugenes-MacBook-Pro.local
File Name: cistar-dev/cistar/envs/loop_accel.py
Class Name: SimpleAccelerationEnvironment
Method Name: getState


Project Name: flow-project/flow
Commit Name: 8ab728e7284c8c1ca9171af821cd812f5da392e5
Time: 2017-05-03
Author: eugenevinitsky@Eugenes-MacBook-Pro.local
File Name: cistar-dev/cistar/envs/loop_emission.py
Class Name: SimpleEmissionEnvironment
Method Name: getState


Project Name: flow-project/flow
Commit Name: feb6e23b3bea1fe5c5052efdae5ce24845ff6d1a
Time: 2017-05-02
Author: eugenevinitsky@Eugenes-MacBook-Pro.local
File Name: cistar-dev/cistar/envs/loop_accel_pos_vel.py
Class Name: ExtendedAccelerationEnvironment
Method Name: getState