<commit_before>class <%= class_name %> < <%= parent_class_name.classify %>

  scope :code, lambda { |code| where(:code => code.to_s) }

  validates :code, :presence => true, :length => { :maximum => 5 }, :uniqueness => true
  validates :name, :presence => true, :lenght => { :maximum => 100 }

end<commit_msg>- fix validator typo<commit_after>class <%= class_name %> < <%= parent_class_name.classify %>

  scope :code, lambda { |code| where(:code => code.to_s) }

  validates :code, :presence => true, :length => { :maximum => 5 }, :uniqueness => true
  validates :name, :presence => true, :length => { :maximum => 100 }

end
{'fraction_non_alphanumeric': 0.1904, 'fraction_numerical': 0.0128, 'mean_word_length': 4.443478260869565, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '4881675', 'n_tokens_mistral': 236, 'n_tokens_neox': 206, 'n_words': 54}