<commit_before>class FlightAirplane < ApplicationRecord
  belongs_to :flight
  belongs_to :airplane
  accepts_nested_attributes_for :airplane

  def airplane_attributes=(airplane)
    raise airplane.inspect
    self.airplane = Airplane.find_or_create_by(make: airplane[:make], model: airplane[:model])
    self.airplane.update(airplane)
  end
end
<commit_msg>trying to figure out what's broken here<commit_after>class FlightAirplane < ApplicationRecord
  belongs_to :flight
  belongs_to :airplane
  accepts_nested_attributes_for :airplane

  def airplane_attributes=(airplane)
    self.airplane = Airplane.find_or_create_by(make: airplane[:make], model: airplane[:model])
    self.airplane.update(airplane)
  end
end

{'fraction_non_alphanumeric': 0.08089260808926081, 'fraction_numerical': 0.0, 'mean_word_length': 6.03921568627451, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6060986', 'n_tokens_mistral': 228, 'n_tokens_neox': 221, 'n_words': 46}