117232d40d5dc67aa174573aeccb743818ec36f7,flow/core/vehicles.py,Vehicles,get_length,#Vehicles#Any#,586

Before Change


        - "all", in which case a list of all the specified state is provided
        
        if not isinstance(veh_id, str):
            return [self.__vehicles[vehID]["length"]
                    for vehID in veh_id]
        elif veh_id == "all":
            return [self.__vehicles[vehID]["length"]
                    for vehID in self.__ids]

After Change


        - "all", in which case a list of all the specified state is provided
        
        if isinstance(veh_id, list):
            return [self.get_length(vehID) for vehID in veh_id]
        return self.__vehicles.get(veh_id, {}).get("length", 0)

    def get_acc_controller(self, veh_id="all"):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: flow-project/flow
Commit Name: 117232d40d5dc67aa174573aeccb743818ec36f7
Time: 2018-02-19
Author: akreidieh@gmail.com
File Name: flow/core/vehicles.py
Class Name: Vehicles
Method Name: get_length


Project Name: flow-project/flow
Commit Name: debbc889ab56d42a341acdd278ee0a5d1dc0eb62
Time: 2018-02-19
Author: akreidieh@gmail.com
File Name: flow/controllers/base_lane_changing_controller.py
Class Name: BaseLaneChangingController
Method Name: get_safe_lane_change_action


Project Name: CyberReboot/NetworkML
Commit Name: 0fbafc63f51ed62e95417e767cc4e3d9ef79e2cd
Time: 2019-12-17
Author: josh@vandervecken.com
File Name: networkml/parsers/pcap/pcap_utils.py
Class Name:
Method Name: packet_size