<commit_before>class User < ApplicationRecord
  has_many :deeds
  validates_associated :deeds

  def total_trash_bags
    deeds.sum(:trash_bags)
  end

  def total_miles
    deeds.sum(:miles)
  end

  def total_points
    trash_points + mile_points
  end

  def trash_points
    total_trash_bags * 3
  end<commit_msg>Trash bags are now worth 4 points each instead of 3<commit_after>class User < ApplicationRecord
  has_many :deeds
  validates_associated :deeds

  def total_trash_bags
    deeds.sum(:trash_bags)
  end

  def total_miles
    deeds.sum(:miles)
  end

  def total_points
    trash_points + mile_points
  end

  def trash_points
    total_trash_bags * 4
  end
{'fraction_non_alphanumeric': 0.047619047619047616, 'fraction_numerical': 0.005952380952380952, 'mean_word_length': 3.5167785234899327, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6155690', 'n_tokens_mistral': 254, 'n_tokens_neox': 235, 'n_words': 59}