test_class.declarator: stubGtfsCrud
test_class.modifier: private
test_class.original_string: private GtfsCrud stubGtfsCrud;
test_class.type: GtfsCrud
test_class.var_name: stubGtfsCrud
test_class.declarator: calendar
test_class.modifier: private
test_class.original_string: private BaseCalendar calendar;
test_class.type: BaseCalendar
test_class.var_name: calendar
test_class.declarator: trip
test_class.modifier: private
test_class.original_string: private BaseTrip trip;
test_class.type: BaseTrip
test_class.var_name: trip
test_class.declarator: firstStopTime
test_class.modifier: private
test_class.original_string: private BaseStopTime firstStopTime;
test_class.type: BaseStopTime
test_class.var_name: firstStopTime
test_class.declarator: lastStopTime
test_class.modifier: private
test_class.original_string: private BaseStopTime lastStopTime;
test_class.type: BaseStopTime
test_class.var_name: lastStopTime
test_class.declarator: firstStop
test_class.modifier: private
test_class.original_string: private BaseStop firstStop;
test_class.type: BaseStop
test_class.var_name: firstStop
test_class.declarator: lastStop
test_class.modifier: private
test_class.original_string: private BaseStop lastStop;
test_class.type: BaseStop
test_class.var_name: lastStop
test_class.declarator: currentDate
test_class.modifier: private
test_class.original_string: private LocalDate currentDate;
test_class.type: LocalDate
test_class.var_name: currentDate
test_class.declarator: serviceId
test_class.modifier: private
test_class.original_string: private ServiceId serviceId;
test_class.type: ServiceId
test_class.var_name: serviceId
test_class.declarator: tripId
test_class.modifier: private
test_class.original_string: private String tripId;
test_class.type: String
test_class.var_name: tripId
test_class.declarator: firstStopId
test_class.modifier: private
test_class.original_string: private int firstStopId;
test_class.type: int
test_class.var_name: firstStopId
test_class.declarator: lastStopId
test_class.modifier: private
test_class.original_string: private int lastStopId;
test_class.type: int
test_class.var_name: lastStopId
test_class.declarator: stopCode
test_class.modifier: private
test_class.original_string: private int stopCode;
test_class.type: int
test_class.var_name: stopCode
test_class.declarator: firstStopSequence
test_class.modifier: private
test_class.original_string: private int firstStopSequence;
test_class.type: int
test_class.var_name: firstStopSequence
test_class.declarator: lastStopSequence
test_class.modifier: private
test_class.original_string: private int lastStopSequence;
test_class.type: int
test_class.var_name: lastStopSequence
test_class.file: siri/gtfs_reader/src/test/java/il/org/hasadna/siri_client/gtfs/analysis/GtfsDataManipulationsTest.java
test_class.identifier: GtfsDataManipulationsTest
test_case.body: @Test
  	public final void testFilterStops() throws IOException {
  
  		Stop stopToFind = new BaseStop(111, 222, "stopName", "stopDesc", 2.2, 3.3, 2, 1, 4);
  
  		Stop otherStop = new BaseStop(333, 222, "stopName", "stopDesc", 2.2, 3.3, 2, 1, 4);
  
  		Crud<Stop> stopsCrud = new Crud<Stop>() {
  
  			@Override
  			public Stream<Stop> ReadAll() throws IOException {
  				return Stream.of(stopToFind, otherStop);
  			}
  
  		};
  		GtfsCrud gtfsCrud = new GtfsCrud(new Crud.EmptyCrud<>(), new Crud.EmptyCrud<>(), new Crud.EmptyCrud<>(),
  				stopsCrud, new Crud.EmptyCrud<>());
  		GtfsDataManipulations gtfsDataManipulations = new GtfsDataManipulations(gtfsCrud);
  
  		Set<Integer> tripIDs = new HashSet<>(Arrays.asList(111));
  
  		Collection<Stop> actual = gtfsDataManipulations.filterStops(tripIDs);
  
  		Collection<Stop> expected = Arrays.asList(stopToFind);
  
  		assertEquals(expected, actual);
  	}
test_case.class_method_signature: GtfsDataManipulationsTest.testFilterStops()
test_case.full_signature: @Test public final void testFilterStops()
test_case.identifier: testFilterStops
test_case.invocations: of asList filterStops asList assertEquals
test_case.modifiers: @Test public final
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFilterStops()
focal_class.declarator: logger = LoggerFactory.getLogger(GtfsDataManipulations.class)
focal_class.modifier: private static
focal_class.original_string: private static Logger logger = LoggerFactory.getLogger(GtfsDataManipulations.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: gtfsCrud
focal_class.modifier: private
focal_class.original_string: private GtfsCrud gtfsCrud;
focal_class.type: GtfsCrud
focal_class.var_name: gtfsCrud
focal_class.declarator: calendars
focal_class.modifier: private
focal_class.original_string: private Map<ServiceId, Calendar> calendars;
focal_class.type: Map<ServiceId, Calendar>
focal_class.var_name: calendars
focal_class.declarator: trips
focal_class.modifier: private
focal_class.original_string: private Map<String, Trip> trips;
focal_class.type: Map<String, Trip>
focal_class.var_name: trips
focal_class.declarator: stopTimes
focal_class.modifier: private
focal_class.original_string: private Map<String, List<StopTime>> stopTimes;
focal_class.type: Map<String, List<StopTime>>
focal_class.var_name: stopTimes
focal_class.declarator: stops
focal_class.modifier: private
focal_class.original_string: private Map<Integer, Stop> stops;
focal_class.type: Map<Integer, Stop>
focal_class.var_name: stops
focal_class.declarator: routes
focal_class.modifier: private
focal_class.original_string: private Map<String, Route> routes;
focal_class.type: Map<String, Route>
focal_class.var_name: routes
focal_class.file: siri/gtfs_reader/src/main/java/il/org/hasadna/siri_client/gtfs/analysis/GtfsDataManipulations.java
focal_class.identifier: GtfsDataManipulations
focal_class.class_method_signature: GtfsDataManipulations.getCalendars()
focal_class.full_signature:  Map<ServiceId, Calendar> getCalendars()
focal_class.identifier: getCalendars
focal_class.parameters: ()
focal_class.return: Map<ServiceId, Calendar>
focal_class.signature: Map<ServiceId, Calendar> getCalendars()
focal_class.class_method_signature: GtfsDataManipulations.getTrips()
focal_class.full_signature:  Map<String, Trip> getTrips()
focal_class.identifier: getTrips
focal_class.parameters: ()
focal_class.return: Map<String, Trip>
focal_class.signature: Map<String, Trip> getTrips()
focal_class.class_method_signature: GtfsDataManipulations.getStopTimes()
focal_class.full_signature:  Map<String, List<StopTime>> getStopTimes()
focal_class.identifier: getStopTimes
focal_class.parameters: ()
focal_class.return: Map<String, List<StopTime>>
focal_class.signature: Map<String, List<StopTime>> getStopTimes()
focal_class.class_method_signature: GtfsDataManipulations.getStops()
focal_class.full_signature:  Map<Integer, Stop> getStops()
focal_class.identifier: getStops
focal_class.parameters: ()
focal_class.return: Map<Integer, Stop>
focal_class.signature: Map<Integer, Stop> getStops()
focal_class.class_method_signature: GtfsDataManipulations.getGtfsCrud()
focal_class.full_signature: public GtfsCrud getGtfsCrud()
focal_class.identifier: getGtfsCrud
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: GtfsCrud
focal_class.signature: GtfsCrud getGtfsCrud()
focal_class.class_method_signature: GtfsDataManipulations.getRoutes()
focal_class.full_signature: public Map<String, Route> getRoutes()
focal_class.identifier: getRoutes
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Map<String, Route>
focal_class.signature: Map<String, Route> getRoutes()
focal_class.class_method_signature: GtfsDataManipulations.GtfsDataManipulations(GtfsCrud gtfsCrud)
focal_class.full_signature: public  GtfsDataManipulations(GtfsCrud gtfsCrud)
focal_class.identifier: GtfsDataManipulations
focal_class.modifiers: public
focal_class.parameters: (GtfsCrud gtfsCrud)
focal_class.signature:  GtfsDataManipulations(GtfsCrud gtfsCrud)
focal_class.class_method_signature: GtfsDataManipulations.filterCalendars(LocalDate date)
focal_class.full_signature:  Collection<Calendar> filterCalendars(LocalDate date)
focal_class.identifier: filterCalendars
focal_class.parameters: (LocalDate date)
focal_class.return: Collection<Calendar>
focal_class.signature: Collection<Calendar> filterCalendars(LocalDate date)
focal_class.class_method_signature: GtfsDataManipulations.filterTrips(Set<ServiceId> serviceIds)
focal_class.full_signature:  Collection<Trip> filterTrips(Set<ServiceId> serviceIds)
focal_class.identifier: filterTrips
focal_class.parameters: (Set<ServiceId> serviceIds)
focal_class.return: Collection<Trip>
focal_class.signature: Collection<Trip> filterTrips(Set<ServiceId> serviceIds)
focal_class.class_method_signature: GtfsDataManipulations.filterStopTimes(Set<String> tripIds)
focal_class.full_signature:  Collection<StopTime> filterStopTimes(Set<String> tripIds)
focal_class.identifier: filterStopTimes
focal_class.parameters: (Set<String> tripIds)
focal_class.return: Collection<StopTime>
focal_class.signature: Collection<StopTime> filterStopTimes(Set<String> tripIds)
focal_class.class_method_signature: GtfsDataManipulations.filterStops(Set<Integer> stopIDs)
focal_class.full_signature:  Collection<Stop> filterStops(Set<Integer> stopIDs)
focal_class.identifier: filterStops
focal_class.parameters: (Set<Integer> stopIDs)
focal_class.return: Collection<Stop>
focal_class.signature: Collection<Stop> filterStops(Set<Integer> stopIDs)
focal_class.class_method_signature: GtfsDataManipulations.filterGtfs(LocalDate date)
focal_class.full_signature:  void filterGtfs(LocalDate date)
focal_class.identifier: filterGtfs
focal_class.parameters: (LocalDate date)
focal_class.return: void
focal_class.signature: void filterGtfs(LocalDate date)
focal_class.class_method_signature: GtfsDataManipulations.filterRoutes(Map<String, Trip> trips)
focal_class.full_signature: private Map<String,Route> filterRoutes(Map<String, Trip> trips)
focal_class.identifier: filterRoutes
focal_class.modifiers: private
focal_class.parameters: (Map<String, Trip> trips)
focal_class.return: Map<String,Route>
focal_class.signature: Map<String,Route> filterRoutes(Map<String, Trip> trips)
focal_class.class_method_signature: GtfsDataManipulations.combine(LocalDate date)
focal_class.full_signature: public Collection<GtfsRecord> combine(LocalDate date)
focal_class.identifier: combine
focal_class.modifiers: public
focal_class.parameters: (LocalDate date)
focal_class.return: Collection<GtfsRecord>
focal_class.signature: Collection<GtfsRecord> combine(LocalDate date)
focal_class.class_method_signature: GtfsDataManipulations.combineForSpecificRoute(LocalDate date, String routeId)
focal_class.full_signature: public Collection<GtfsRecord> combineForSpecificRoute(LocalDate date, String routeId)
focal_class.identifier: combineForSpecificRoute
focal_class.modifiers: public
focal_class.parameters: (LocalDate date, String routeId)
focal_class.return: Collection<GtfsRecord>
focal_class.signature: Collection<GtfsRecord> combineForSpecificRoute(LocalDate date, String routeId)
focal_class.class_method_signature: GtfsDataManipulations.createGtfsRecord(Trip currTrip)
focal_class.full_signature: private GtfsRecord createGtfsRecord(Trip currTrip)
focal_class.identifier: createGtfsRecord
focal_class.modifiers: private
focal_class.parameters: (Trip currTrip)
focal_class.return: GtfsRecord
focal_class.signature: GtfsRecord createGtfsRecord(Trip currTrip)
focal_method.body: Collection<Stop> filterStops(Set<Integer> stopIDs) throws IOException {
  
  		return getGtfsCrud().getStops().filter(i -> stopIDs.contains(i.getStopId())).collect(Collectors.toList());
  
  	}
focal_method.class_method_signature: GtfsDataManipulations.filterStops(Set<Integer> stopIDs)
focal_method.full_signature:  Collection<Stop> filterStops(Set<Integer> stopIDs)
focal_method.identifier: filterStops
focal_method.invocations: collect filter getStops getGtfsCrud contains getStopId toList
focal_method.parameters: (Set<Integer> stopIDs)
focal_method.return: Collection<Stop>
focal_method.signature: Collection<Stop> filterStops(Set<Integer> stopIDs)