<commit_before>class Paper < ActiveRecord::Base

  validates :title, :venue, :year, presence: true

end
<commit_msg>paper is invalid with non-integer year fix #43<commit_after>class Paper < ActiveRecord::Base

  validates :title, :venue, :year, presence: true
  validates :year, numericality: { only_integer: true }

end

{'fraction_non_alphanumeric': 0.1059190031152648, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 5.708333333333333, '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': '4468962', 'n_tokens_mistral': 101, 'n_tokens_neox': 97, 'n_words': 32}