<commit_before>class Task < ActiveRecord::Base
  belongs_to :user
  belongs_to :campaign
  
  validates_presence_of :key
  validates_uniqueness_of :key
  
  def before_validation_on_create
    self.points = campaign.points
    self.key = ActiveSupport::SecureRandom.hex 16
  end
  
  def complete?
    !completed_at.nil?
  end
end<commit_msg>Keeping the build working<commit_after>class Task < ActiveRecord::Base
  belongs_to :user
  belongs_to :campaign
  
  
  validates_presence_of :key
  validates_uniqueness_of :key
  
  def before_validation_on_create
    self.points = campaign.points
    self.key = ActiveSupport::SecureRandom.hex 16
  end
  
  def complete?
    !completed_at.nil?
  end
end
{'fraction_non_alphanumeric': 0.06294706723891273, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 3.895104895104895, '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': '6372432', 'n_tokens_mistral': 243, 'n_tokens_neox': 238, 'n_words': 50}