<commit_before>class Vendor

  include Mongoid::Document

  # Vendor Details
  field :name, type: String
  field :poc, type: String
  field :tel, type: String
  field :email, type: String
  
  # Proctor Details
  field :proctor, type: String
  field :proctor_tel, type: String
  field :proctor_email, type: String
  
  # Test Details
  field :effective_date, type: Integer
  field :measure_ids, type: Array
  field :patient_gen_job, type: String
  field :reported_results, type: Hash

  # Get the measure definitions for the selected measures. For multinumerator
  # measures this will include all sub measures so measure_defs.size may not be
  # the same as measure_ids.size
  def measure_defs
    return [] if !measure_ids
    measure_ids.collect do |measure_id|
      Measure.where(id: measure_id).order_by([[:sub_id, :asc]]).all()
    end.flatten
  end<commit_msg>Additional fields for vendor registration<commit_after>class Vendor

  include Mongoid::Document

  # Vendor Details
  field :name, type: String
  field :address, tyoe: String
  field :state, type: String
  field :zip, type: String
  field :poc, type: String
  field :email, type: String
  field :tel, type: String
  field :fax, type: String
  field :accounts_poc, type: String
  field :accounts_email, type: String
  field :accounts_tel, type: String
  field :tech_poc, type: String
  field :tech_email, type: String
  field :tech_tel, type: String
  field :press_poc, type: String
  field :press_email, type: String
  field :press_tel, type: String
  
  # Proctor Details
  field :proctor, type: String
  field :proctor_tel, type: String
  field :proctor_email, type: String
  
  # Test Details
  field :effective_date, type: Integer
  field :measure_ids, type: Array
  field :patient_gen_job, type: String
  field :reported_results, type: Hash

  # Get the measure definitions for the selected measures. For multinumerator
  # measures this will include all sub measures so measure_defs.size may not be
  # the same as measure_ids.size
  def measure_defs
    return [] if !measure_ids
    measure_ids.collect do |measure_id|
      Measure.where(id: measure_id).order_by([[:sub_id, :asc]]).all()
    end.flatten
  end
{'fraction_non_alphanumeric': 0.0827617741197988, 'fraction_numerical': 0.0, 'mean_word_length': 4.076566125290023, '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': '5859474', 'n_tokens_mistral': 704, 'n_tokens_neox': 682, 'n_words': 241}