<commit_before>class AlternateBenefit
  include Mongoid::Document
  include Mongoid::Timestamps

  KINDS = %W(
		acf_refugee_medical_assistance
		americorps_health_benefits
		child_health_insurance_plan
		medicaid
		medicare
		medicare_advantage
  	medicare_part_b
		private_individual_and_family_coverage
		state_supplementary_payment
		tricare
		veterans_benefits
	)

  field :kind, type: String
  field :start_date, type: Date
  field :end_date, type: Date

  embedded_in :assistance_applicant

  validates :kind, presence: true, 
  						inclusion: { in: KINDS, message: "%{value} is not a valid alternative benefit type" }
  validates :start_date, presence: true

end<commit_msg>add submission date to alternate benefit model<commit_after>class AlternateBenefit
  include Mongoid::Document
  include Mongoid::Timestamps

  KINDS = %W(
		acf_refugee_medical_assistance
		americorps_health_benefits
		child_health_insurance_plan
		medicaid
		medicare
		medicare_advantage
  	medicare_part_b
		private_individual_and_family_coverage
		state_supplementary_payment
		tricare
		veterans_benefits
	)

  field :kind, type: String
  field :start_date, type: Date
  field :end_date, type: Date
  field :submission_date, type: Date

  embedded_in :assistance_applicant

  validates :kind, presence: true, 
  						inclusion: { in: KINDS, message: "%{value} is not a valid alternative benefit type" }
  validates :start_date, presence: true

end
{'fraction_non_alphanumeric': 0.056328233657858134, 'fraction_numerical': 0.0, 'mean_word_length': 5.02092050209205, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7635689', 'n_tokens_mistral': 535, 'n_tokens_neox': 480, 'n_words': 117}