<commit_before>class DatePeriod < ActiveRecord::Base
  belongs_to :period
  belongs_to :rescheduling
end<commit_msg>set validates of DatePeriod model<commit_after>class DatePeriod < ActiveRecord::Base
  belongs_to :period
  belongs_to :rescheduling

  validates :period_id, presence: true
  validates :date_on, presence: true
end
{'fraction_non_alphanumeric': 0.0668693009118541, 'fraction_numerical': 0.0, 'mean_word_length': 6.857142857142857, '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': '1519364', 'n_tokens_mistral': 100, 'n_tokens_neox': 102, 'n_words': 27}