<commit_before>module BrighterPlanet
  module Flight
    module Relationships
      def self.included(target)
        target.belongs_to :distance_class,      :class_name => 'FlightDistanceClass', :foreign_key => 'name'
        target.belongs_to :fuel_type,                                                 :foreign_key => 'name'
        target.belongs_to :seat_class,          :class_name => 'FlightSeatClass',     :foreign_key => 'name'
        target.belongs_to :country,                                                   :foreign_key => 'iso_3166_code'
        target.belongs_to :origin_airport,      :class_name => 'Airport',             :foreign_key => 'iata_code'
        target.belongs_to :destination_airport, :class_name => 'Airport',             :foreign_key => 'iata_code'
        target.belongs_to :aircraft,                                                  :foreign_key => 'icao_code'
        target.belongs_to :aircraft_class,                                            :foreign_key => 'brighter_planet_aircraft_class_code'
        target.belongs_to :airline,                                                   :foreign_key => 'iata_code'
      end
    end
  end
end<commit_msg>The foreign_key option was messing up origin/dest relationships<commit_after>module BrighterPlanet
  module Flight
    module Relationships
      def self.included(target)
        target.belongs_to :distance_class,      :class_name => 'FlightDistanceClass', :foreign_key => 'name'
        target.belongs_to :fuel_type,                                                 :foreign_key => 'name'
        target.belongs_to :seat_class,          :class_name => 'FlightSeatClass',     :foreign_key => 'name'
        target.belongs_to :country,                                                   :foreign_key => 'iso_3166_code'
        target.belongs_to :origin_airport,      :class_name => 'Airport'
        target.belongs_to :destination_airport, :class_name => 'Airport'
        target.belongs_to :aircraft,                                                  :foreign_key => 'icao_code'
        target.belongs_to :aircraft_class,                                            :foreign_key => 'brighter_planet_aircraft_class_code'
        target.belongs_to :airline,                                                   :foreign_key => 'iata_code'
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.0821976149914821, 'fraction_numerical': 0.0034071550255536627, 'mean_word_length': 1.6071032186459488, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '786469', 'n_tokens_mistral': 627, 'n_tokens_neox': 598, 'n_words': 114}