<commit_before>class PolicyDivision < ActiveRecord::Base
  self.table_name = 'pw_dyn_dreamvote'
  belongs_to :policy

  def division
    Division.where(division_date: division_date, division_number: division_number).first
  end
end<commit_msg>We need to specify the house as well to get the correct division<commit_after>class PolicyDivision < ActiveRecord::Base
  self.table_name = 'pw_dyn_dreamvote'
  belongs_to :policy

  def division
    divisions = Division.where(division_date: division_date,
                               division_number: division_number,
                               house: house)
    raise 'Multiple divisions found' if divisions.size > 1
    divisions.first
  end
end
{'fraction_non_alphanumeric': 0.06160458452722063, 'fraction_numerical': 0.0014326647564469914, 'mean_word_length': 3.341614906832298, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5918881', 'n_tokens_mistral': 194, 'n_tokens_neox': 191, 'n_words': 52}