<commit_before>class ActorMicro < Actor
  validates :title, presence: true, on: :update

  def gender_txt
    %w(Unisex Male Female)[gender - 1]
  end

  def title_txt
    %w(Mr Ms Mrs Miss Dr Prof Rev Other)[title - 1]
  end

  def birth
    date_of_birth.to_date if date_of_birth.present?
  end

  def empty_relations?
    parents.empty?
  end
end<commit_msg>Need to reference the GENDERS and TITLES arrays<commit_after>class ActorMicro < Actor
  validates :title, presence: true, on: :update

  GENDERS = %(Other Male Female)
  TITLES = %w(Mr. Ms. Mrs. Miss Dr. Prof. Rev. Other Eng.)

  def gender_txt
    GENDERS[gender - 1]
  end

  def title_txt
    TITLES[title - 1]
  end

  def birth
    date_of_birth.to_date if date_of_birth.present?
  end

  def empty_relations?
    parents.empty?
  end
end
{'fraction_non_alphanumeric': 0.08084577114427861, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 3.128205128205128, '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': '499443', 'n_tokens_mistral': 310, 'n_tokens_neox': 282, 'n_words': 89}