<commit_before>class Contact < ActiveRecord::Base
  
  belongs_to :group
  
  validates_presence_of :name
  validates_presence_of :details
  validates_presence_of :email
  validates_presence_of :phone
  validates_presence_of :url
  validates_presence_of :group
  
  has_attached :avatar
  
  validates_attached_presence :avatar
  
end<commit_msg>added additional validations to ensure proper testing<commit_after>class Contact < ActiveRecord::Base
  
  belongs_to :group
  
  validates_presence_of :name
  validates_presence_of :details
  validates_presence_of :email
  validates_presence_of :phone
  validates_presence_of :url
  validates_presence_of :group
  
  validates_format_of :email, :with => /\A([^\s]+)@([^\s]+)\Z/i, :message => "is not valid"
  validates_format_of :phone, :with => /\A[0-9\s\(\)\+\-]+\Z/i, :message => "is not valid"
  
  has_attached :avatar
  
end
{'fraction_non_alphanumeric': 0.09920182440136831, 'fraction_numerical': 0.002280501710376283, 'mean_word_length': 4.701298701298701, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5801588', 'n_tokens_mistral': 321, 'n_tokens_neox': 320, 'n_words': 63}