<commit_before>require "json"

module WTPKP
  class Course
    include Comparable
    attr_reader :origin
    attr_reader :destination
    attr_reader :departure
    attr_reader :arrival

    def initialize(origin:, destination:, departure:, arrival:)
      @origin = origin
      @destination = destination
      @departure = departure
      @arrival = arrival
    end

    def <=> other
      @departure <=> other.departure
    end

    def to_a
      [@origin, @destination, @departure, @arrival]
    end

    def to_json
      {
        origin: @origin
        destination: @destination
        departure: @departure.to_i
        arrival: @arrival.to_i
      }.to_json
    end
  end
end<commit_msg>Locating the required gigapixels to render...<commit_after>require "json"

module WTPKP
  class Course
    include Comparable
    attr_reader :origin
    attr_reader :destination
    attr_reader :departure
    attr_reader :arrival

    def initialize(origin:, destination:, departure:, arrival:)
      @origin = origin
      @destination = destination
      @departure = departure
      @arrival = arrival
    end

    def <=> other
      @departure <=> other.departure
    end

    def to_a
      [@origin, @destination, @departure, @arrival]
    end

    def to_json(*args)
      {
        origin: @origin,
        destination: @destination,
        departure: @departure,
        arrival: @arrival
      }.to_json(args)
    end
  end
end
{'fraction_non_alphanumeric': 0.0839112343966713, 'fraction_numerical': 0.0, 'mean_word_length': 2.4275534441805227, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3784125', 'n_tokens_mistral': 455, 'n_tokens_neox': 437, 'n_words': 116}