<commit_before>module DoubleDouble
  class TransactionType < ActiveRecord::Base
    self.table_name = 'double_double_transaction_types'
    
    has_many :transactions
    attr_accessible :description

    validates :description, length: { minimum: 6 }, presence: true, uniqueness: true

    def self.of description_given
      TransactionType.where(description: description_given.to_s).first
    end
  end

  class UnassignedTransactionType
    class << self
      def description
        'unassigned'
      end
    end
  end
end<commit_msg>added to_s to transaction_type<commit_after>module DoubleDouble
  class TransactionType < ActiveRecord::Base
    self.table_name = 'double_double_transaction_types'
    
    has_many :transactions
    attr_accessible :description

    validates :description, length: { minimum: 6 }, presence: true, uniqueness: true

    def self.of description_given
      TransactionType.where(description: description_given.to_s).first
    end

    def to_s
      description
    end
  end

  class UnassignedTransactionType
    class << self
      def description
        'unassigned'
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.057843996494303246, 'fraction_numerical': 0.0017528483786152498, 'mean_word_length': 3.309433962264151, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1441542', 'n_tokens_mistral': 325, 'n_tokens_neox': 307, 'n_words': 82}