<commit_before>class Task < ActiveRecord::Base
  belongs_to :project
  belongs_to :person
  
  validates :project,  :presence => true
  validates :person,  :presence => true
  validates :when,  :presence => true
  validates :from,  :presence => true
  validates :to,  :presence => true
  
  # The duration of the task in minutes
  def duration
    (to.to_f - from.to_f).to_i / 60
  end
end<commit_msg>Validations formated.<commit_after>class Task < ActiveRecord::Base
  belongs_to :project
  belongs_to :person
  
  validates :project, :presence => true
  validates :person,  :presence => true
  validates :when,    :presence => true
  validates :from,    :presence => true
  validates :to,      :presence => true
  
  # The duration of the task in minutes
  def duration
    (to.to_f - from.to_f).to_i / 60
  end
end
{'fraction_non_alphanumeric': 0.10159118727050184, 'fraction_numerical': 0.004895960832313341, 'mean_word_length': 3.351063829787234, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4848175', 'n_tokens_mistral': 281, 'n_tokens_neox': 280, 'n_words': 82}