<commit_before>class Kit < ActiveRecord::Base
  has_many :posts

  belongs_to :client, class_name: 'User', foreign_key: 'client_id'
  belongs_to :practitioner, class_name: 'User', foreign_key: 'practitioner_id'
end<commit_msg>Added kit validations.<commit_after>class Kit < ActiveRecord::Base
  has_many :posts

  belongs_to :client, class_name: 'User', foreign_key: 'client_id'
  belongs_to :practitioner, class_name: 'User', foreign_key: 'practitioner_id'

  validates :client_id, presence: true
  validates :client_id, uniqueness: { scope: :practitioner_id }
  validates :practitioner_id, presence: true
end
{'fraction_non_alphanumeric': 0.10491803278688525, 'fraction_numerical': 0.0, 'mean_word_length': 7.0394736842105265, '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': '302151', 'n_tokens_mistral': 213, 'n_tokens_neox': 212, 'n_words': 50}