original_docstring: 
          Retrieve the waiting time of every car in the incoming roads
          
docstring: Retrieve the waiting time of every car in the incoming roads
docstring_tokens: Retrieve the waiting time of every car in the incoming roads
code: def _collect_waiting_times(self):
          """
          Retrieve the waiting time of every car in the incoming roads
          """
          incoming_roads = ["E2TL", "N2TL", "W2TL", "S2TL"]
          car_list = traci.vehicle.getIDList()
          for car_id in car_list:
              wait_time = traci.vehicle.getAccumulatedWaitingTime(car_id)
              road_id = traci.vehicle.getRoadID(car_id)  # get the road id where the car is located
              if road_id in incoming_roads:  # consider only the waiting times of cars in incoming roads
                  self._waiting_times[car_id] = wait_time
              else:
                  if car_id in self._waiting_times: # a car that was tracked has cleared the intersection
                      del self._waiting_times[car_id] 
          total_waiting_time = sum(self._waiting_times.values())
          return total_waiting_time
code_tokens: def _collect_waiting_times ( self ) : incoming_roads = [ "E2TL" , "N2TL" , "W2TL" , "S2TL" ] car_list = traci . vehicle . getIDList ( ) for car_id in car_list : wait_time = traci . vehicle . getAccumulatedWaitingTime ( car_id ) road_id = traci . vehicle . getRoadID ( car_id ) if road_id in incoming_roads : self . _waiting_times [ car_id ] = wait_time else : if car_id in self . _waiting_times : del self . _waiting_times [ car_id ] total_waiting_time = sum ( self . _waiting_times . values ( ) ) return total_waiting_time
short_docstring: Retrieve the waiting time of every car in the incoming roads
short_docstring_tokens: Retrieve the waiting time of every car in the incoming roads
comment: """
          Retrieve the waiting time of every car in the incoming roads
          """$SEP$# get the road id where the car is located$SEP$# consider only the waiting times of cars in incoming roads$SEP$# a car that was tracked has cleared the intersection