<commit_before>class ActionOfficer < ActiveRecord::Base
  validates :email, uniqueness: true

  # has_and_belongs_to_many :pqs
	has_many :action_officers_pqs
	has_many :pqs, :through => :action_officers_pqs

  before_validation :strip_whitespace

  def strip_whitespace
    self.name = self.name.strip
    self.email = self.email.strip
  end
end
<commit_msg>nil validation<commit_after>class ActionOfficer < ActiveRecord::Base
  validates :email, uniqueness: true

  # has_and_belongs_to_many :pqs
	has_many :action_officers_pqs
	has_many :pqs, :through => :action_officers_pqs

  before_validation :strip_whitespace

  def strip_whitespace
    self.name = self.name.strip unless self.name.nil?
    self.email = self.email.strip unless self.email.nil?
  end
end

{'fraction_non_alphanumeric': 0.07874015748031496, 'fraction_numerical': 0.0, 'mean_word_length': 4.9609375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5081375', 'n_tokens_mistral': 274, 'n_tokens_neox': 261, 'n_words': 55}