<commit_before>class MerchantCategory < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :mcc

  has_many :merchant_category_industries, :foreign_key => 'mcc'
  has_many :industries, :through => :merchant_category_industries

  def name
    description
  end
  
  def self.schema_definition
    lambda do
      string 'mcc'
      string 'description'
    end
  end
  
  data_miner do
    MerchantCategory.define_schema(self)
  end
end<commit_msg>Added MerchantCategory.schema_definition<commit_after>class MerchantCategory < ActiveRecord::Base
  extend Earth::Base
  set_primary_key :mcc

  has_many :merchant_category_industries, :foreign_key => 'mcc'
  has_many :industries, :through => :merchant_category_industries

  def name
    description
  end

  def self.schema_definition
    lambda do
      string 'mcc'
      string 'description'
    end
  end

  data_miner do
    MerchantCategory.define_schema(self)
  end
end
{'fraction_non_alphanumeric': 0.06538049303322616, 'fraction_numerical': 0.0, 'mean_word_length': 3.9946524064171123, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '1353756', 'n_tokens_mistral': 302, 'n_tokens_neox': 293, 'n_words': 68}