<commit_before>class Candidate < ActiveRecord::Base
  include DirtyColumns

  belongs_to :person
  has_many :statements
  has_one :campaign

  before_save { |c| c.campaign_id = nil if c.campaign_id < 1 }

  attr_reader :person_name

  def person_name
    p = self.person
    p ? "#{p.first_name} #{p.last_name}" : "-- No Name --"
  end
end<commit_msg>fixes bug exposed by seeds (copy pasta error)<commit_after>class Candidate < ActiveRecord::Base
  include DirtyColumns

  belongs_to :person
  has_many :statements
  has_one :campaign

  before_save { |c| c.person_id = nil if c.person_id < 1 }

  attr_reader :person_name

  def person_name
    p = self.person
    p ? "#{p.first_name} #{p.last_name}" : "-- No Name --"
  end
end
{'fraction_non_alphanumeric': 0.10684931506849316, 'fraction_numerical': 0.0027397260273972603, 'mean_word_length': 3.5123456790123457, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2062814', 'n_tokens_mistral': 266, 'n_tokens_neox': 251, 'n_words': 68}