<commit_before>class Entry

  # TODO Add validations
  attr_accessor :title, :date, :amount, :tags, :note
  attr_accessor :account_id, :account_name
  attr_accessor :category_name
  attr_accessor :subcategory_id, :subcategory_name

  def to_s
    result = ""
    delimiter = ("=" * 16) + "\n"
    
    result << delimiter
    result <<  "Nazwa: #{title}\n"
    result <<  "Data: #{date}\n"
    result <<  "Rachunek: #{account_name}\n"
    result <<  "Kwota: #{amount}\n"
    result <<  "Kategoria: #{category_name} / #{subcategory_name}\n"
    result <<  "Tagi: #{tags}\n"
    result <<  "Opis: #{note}\n"
    result << delimiter

    return result
  end

  def category_full_name
    "#{category_name} / #{subcategory_name}"
  end

end<commit_msg>Category full name.<commit_after>class Entry

  # TODO Add validations
  attr_accessor :title, :date, :amount, :tags, :note
  attr_accessor :account_id, :account_name
  attr_accessor :category_name
  attr_accessor :subcategory_id, :subcategory_name

  def to_s
    result = ""
    delimiter = ("=" * 16) + "\n"
    
    result << delimiter
    result <<  "Nazwa: #{title}\n"
    result <<  "Data: #{date}\n"
    result <<  "Rachunek: #{account_name}\n"
    result <<  "Kwota: #{amount}\n"
    result <<  "Kategoria: #{category_full_name}\n"
    result <<  "Tagi: #{tags}\n"
    result <<  "Opis: #{note}\n"
    result << delimiter

    return result
  end

  def category_full_name
    "#{category_name} / #{subcategory_name}"
  end

end
{'fraction_non_alphanumeric': 0.15151515151515152, 'fraction_numerical': 0.0026936026936026937, 'mean_word_length': 3.2578796561604584, 'pattern_counts': {'":': 0, '<': 39, '<?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': '3350464', 'n_tokens_mistral': 544, 'n_tokens_neox': 533, 'n_words': 120}