<commit_before>class TeachingPeriod < ActiveRecord::Base
  has_many :units
  
  validates :period, length: { minimum: 1, maximum: 10, allow_blank: false }  
  validates :start_date, presence: true
  validates :end_date, presence: true
end<commit_msg>NEW: Uniqueness constraint to Teaching Period<commit_after>class TeachingPeriod < ActiveRecord::Base
  has_many :units
  
  validates :period, length: { minimum: 1, maximum: 10, allow_blank: false }, uniqueness: true  
  validates :start_date, presence: true
  validates :end_date, presence: true
end
{'fraction_non_alphanumeric': 0.0890909090909091, 'fraction_numerical': 0.01090909090909091, 'mean_word_length': 5.559523809523809, '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': '6317872', 'n_tokens_mistral': 174, 'n_tokens_neox': 163, 'n_words': 52}