21e45c08bf3a6407025f2507532d1493c6eb9381,flow/core/vehicles.py,Vehicles,get_edge,#Vehicles#Any#,284

Before Change


        if isinstance(veh_id, list):
            return [self.__sumo_observations[vehID][tc.VAR_ROAD_ID] for vehID in veh_id]
        elif veh_id == "all":
            return [self.__sumo_observations[vehID][tc.VAR_ROAD_ID] for vehID in self.__ids]
        else:
            return self.__sumo_observations[veh_id][tc.VAR_ROAD_ID]

After Change


        if isinstance(veh_id, list):
            return [self.get_edge(vehID) for vehID in veh_id]
        elif veh_id == "all":
            return [self.get_edge(vehID) for vehID in self.__ids]

        // perform the value retrieval for a specific vehicle
        try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: flow-project/flow
Commit Name: 21e45c08bf3a6407025f2507532d1493c6eb9381
Time: 2017-10-29
Author: akreidieh@gmail.com
File Name: flow/core/vehicles.py
Class Name: Vehicles
Method Name: get_edge


Project Name: lingpy/lingpy
Commit Name: b92e27bac4470ab6fe5bd1a859b9fb6cd40d073c
Time: 2016-04-25
Author: mattis.list@uni-marburg.de
File Name: lingpy/tests/compare/test_phylogeny.py
Class Name: TestPhyBo
Method Name: test_plot


Project Name: commonsense/conceptnet5
Commit Name: 2a437760c9344a20a5785f5b4706950c911534b6
Time: 2015-04-08
Author: rob@luminoso.com
File Name: conceptnet5/formats/sql.py
Class Name: EdgeIndexReader
Method Name: random