<commit_before>module Services
  module Schedule 
    class Departure
      extend Services::Base

      attr_reader :station_code, :entries_count

      def initialize(station_code, entries_count)
        @station_code = station_code
        @entries_count = entries_count
      end

      def call!
        StationMaster::Schedule.find_station_departures(station_code, Time.now.in_time_zone(StationMaster::TIME_ZONE))
          .select { |schedule| schedule.time >= Time.now.in_time_zone(StationMaster::TIME_ZONE) }
          .sort!{ |a, b| a.time <=> b.time }
          .first(entries_count)
      end
    end

    class Arrival
      extend Services::Base

      attr_reader :station_code, :entries_count

      def initialize(station_code, entries_count)
        @station_code = station_code
        @entries_count = entries_count
      end

      def call!
        StationMaster::Schedule.find_station_arrivals(station_code, Time.now.in_time_zone(StationMaster::TIME_ZONE))
          .select { |schedule| schedule.time >= Time.now.in_time_zone(StationMaster::TIME_ZONE) }<commit_msg>Still problems with time zone<commit_after>module Services
  module Schedule 
    class Departure
      extend Services::Base

      attr_reader :station_code, :entries_count

      def initialize(station_code, entries_count)
        @station_code = station_code
        @entries_count = entries_count
      end

      def call!
        StationMaster::Schedule.find_station_departures(station_code, Time.now + 5 hours)
          .select { |schedule| schedule.time >= Time.now + 5 hours } # TODO fix me from station master
          .sort!{ |a, b| a.time <=> b.time }
          .first(entries_count)
      end
    end

    class Arrival
      extend Services::Base

      attr_reader :station_code, :entries_count

      def initialize(station_code, entries_count)
        @station_code = station_code
        @entries_count = entries_count
      end

      def call!
        StationMaster::Schedule.find_station_arrivals(station_code, Time.now + 5 hours)
          .select { |schedule| schedule.time >= Time.now + 5 hours } # TODO fix me from station master
{'fraction_non_alphanumeric': 0.08294501397949673, 'fraction_numerical': 0.001863932898415657, 'mean_word_length': 2.88245931283906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '738400', 'n_tokens_mistral': 636, 'n_tokens_neox': 612, 'n_words': 140}