<commit_before>class WorkLog < ApplicationRecord
  belongs_to :user
  belongs_to :site
  validates :site_id, :presence => true
  validates :date, :format => { :with => /\A\d4-\d2-\d2\z/, :message => 'Must be YYYY-MM-DD' }
  validates :hours, :numericality => {:greater_than => 0}
end<commit_msg>Fixing date validator<commit_after>class WorkLog < ApplicationRecord
  belongs_to :user
  belongs_to :site
  validates :site_id, :presence => true
  validates :date, :format => { :with => /\A\d{4}-\d{2}-\d{2}\z/, :message => 'Must be YYYY-MM-DD' }
  validates :hours, :numericality => {:greater_than => 0}
end
{'fraction_non_alphanumeric': 0.16887417218543047, 'fraction_numerical': 0.013245033112582781, 'mean_word_length': 4.353982300884955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '78212', 'n_tokens_mistral': 230, 'n_tokens_neox': 223, 'n_words': 53}