<commit_before>class Product
  include Mongoid::Document
  include Mongoid::Timestamps
  
  field :_id, type: String, default: -> { name.to_s.parameterize }
  field :user_id, type: Integer
  field :name, type: String, localize: true
  field :text, type: String, localize: true
  field :area_ids, type: Array, default: []
  field :state, type: String
  
  attr_accessible :name, :text, :area_ids
  
  validates :user_id, presence: true
  validates :name, presence: true, uniqueness: true
  validates :area_ids, presence: true
  
  validate :english_name_available?
  validate :existing_model_file?<commit_msg>Adds field klass_name<commit_after>class Product
  include Mongoid::Document
  include Mongoid::Timestamps
  
  field :_id, type: String, default: -> { name.to_s.parameterize }
  field :user_id, type: Integer
  field :name, type: String, localize: true
  field :klass_name, type: String
  field :text, type: String, localize: true
  field :area_ids, type: Array, default: []
  field :state, type: String
  
  attr_accessible :name, :text, :area_ids
  
  validates :user_id, presence: true
  validates :name, presence: true, uniqueness: true
  validates :area_ids, presence: true
  
  validate :english_name_available?
  validate :existing_model_file?
{'fraction_non_alphanumeric': 0.09936406995230525, 'fraction_numerical': 0.0, 'mean_word_length': 4.748858447488584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6678921', 'n_tokens_mistral': 411, 'n_tokens_neox': 408, 'n_words': 123}