<commit_before>class HouseholdMember < ApplicationRecord
  belongs_to :app

  default_scope { order(id: :asc) }

  EMPLOYMENT_STATUSES = [
    :employed,
    :self_employed,
    :not_employed
  ]

  FILING_STATUSES = [
    :primary_tax_filer,
    :spouse_to_primary_filer,
    :dependent_claimed_by_someone_else_living_outside_the_home
  ]

  def income_inconsistent?
    !income_consistent
  end

  def full_name
    [first_name, last_name].join(" ")
  end

  def name(for_header: false)
    if for_header && applicant?
      "#{first_name.titleize} (that’s you!)"
    else
      first_name.titleize
    end
  end

  def applicant?
    relationship == 'self'
  end

  def employed?
    employment_status == "employed"
  end

  def self_employed?
    employment_status == "self_employed"
  end

  def unemployed?
    employment_status == "not_employed"
  end
end
<commit_msg>add "I do not know" status to tax filing question<commit_after>class HouseholdMember < ApplicationRecord
  belongs_to :app

  default_scope { order(id: :asc) }

  EMPLOYMENT_STATUSES = [
    :employed,
    :self_employed,
    :not_employed
  ]

  FILING_STATUSES = [
    :primary_tax_filer,
    :spouse_to_primary_filer,
    :dependent_claimed_by_someone_else_living_outside_the_home,
    :i_do_not_know
  ]

  def income_inconsistent?
    !income_consistent
  end

  def full_name
    [first_name, last_name].join(" ")
  end

  def name(for_header: false)
    if for_header && applicant?
      "#{first_name.titleize} (that’s you!)"
    else
      first_name.titleize
    end
  end

  def applicant?
    relationship == 'self'
  end

  def employed?
    employment_status == "employed"
  end

  def self_employed?
    employment_status == "self_employed"
  end

  def unemployed?
    employment_status == "not_employed"
  end
end

{'fraction_non_alphanumeric': 0.08416389811738649, 'fraction_numerical': 0.0, 'mean_word_length': 3.375302663438257, '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': '3492006', 'n_tokens_mistral': 665, 'n_tokens_neox': 610, 'n_words': 128}