<commit_before>%n1:hbx_roles
  - if person.authority_member.present?
    %n1:authority_qhp_role_id= person.authority_member.hbx_member_id
  %n1:qhp_roles
    - person.members.each do |member|
      %n1:qhp_role
        %n1:id= member.hbx_member_id
        - if member.e_person_id.present?
          %n1:e_person_id= member.e_person_id
        - if member.e_concern_role_id.present?
          %n1:e_concern_role_id= member.e_concern_role_id
        - if member.aceds_id.present?
          %n1:aceds_id= member.aceds_id
        %n1:gender= "urn:dc0:terms:gender##{member.gender}"
        %n1:dob= member.dob.try(:strftime,"%Y%m%d")
        - if member.ssn.present?
          %n1:ssn= member.ssn
        %n1:tobacco_user= member.hlh.downcase
        - if member.lui.present?
          %n1:language= member.lui
        - policies = member.policies
        - if policies.present?
          %n1:policies
            - policies.each do |policy|
              %n1:policy= render 'shared/policy_link_type', policy: policy, member: member
        - if false
          %n1:exemptions
            %n1:kind= "urn:openhbx:terms:v1:exemption#"
            %n1:certificate_number
            %n1:start_date
            - if false
              %n1:end_date
        - if member.can_be_quoted? && (policies.count > 0)
          %n1:qhp_quotes
            - policies.each do |policy|
              - enrollee = policy.enrollee_for_member_id(member.hbx_member_id)
              - next if enrollee.blank?
              - next if (!enrollee.coverage_end.blank?) && (enrollee.coverage_end < Date.new(2015, 1, 1))
              - plan = (Caches::MongoidCache.lookup(Plan, policy.plan_id) { policy.plan })
              - plan_2015 = plan.plan_for_2015
              - if !plan_2015.blank?
                - rate = plan_2015.rate(Date.new(2015,1,1), Date.new(2015,1,1), member.dob)
                - if !rate.nil?
                  %n1:qhp_quote= render 'shared/plan_link_type', plan: plan_2015, rate: rate
- if false #TODO
  %n1:responsible_party_roles
    %n1:responsible_party_role
      %n1:id
- if false #TODO
  %n1:medicaid_roles
    %n1:medicaid_role
      %n1:id
- if person.employee_roles.present?
  %n1:employee_roles
    - person.employee_roles.each do |enrollee|
      %n1:employee_role<commit_msg>Fixing crash with 2015 plan year.<commit_after>%n1:hbx_roles
  - if person.authority_member.present?
    %n1:authority_qhp_role_id= person.authority_member.hbx_member_id
  %n1:qhp_roles
    - person.members.each do |member|
      %n1:qhp_role
        %n1:id= member.hbx_member_id
        - if member.e_person_id.present?
          %n1:e_person_id= member.e_person_id
        - if member.e_concern_role_id.present?
          %n1:e_concern_role_id= member.e_concern_role_id
        - if member.aceds_id.present?
          %n1:aceds_id= member.aceds_id
        %n1:gender= "urn:dc0:terms:gender##{member.gender}"
        %n1:dob= member.dob.try(:strftime,"%Y%m%d")
        - if member.ssn.present?
          %n1:ssn= member.ssn
        %n1:tobacco_user= member.hlh.downcase
        - if member.lui.present?
          %n1:language= member.lui
        - policies = member.policies
        - if policies.present?
          %n1:policies
            - policies.each do |policy|
              %n1:policy= render 'shared/policy_link_type', policy: policy, member: member
        - if false
          %n1:exemptions
            %n1:kind= "urn:openhbx:terms:v1:exemption#"
            %n1:certificate_number
            %n1:start_date
            - if false
              %n1:end_date
        - if member.can_be_quoted? && (policies.count > 0)
          %n1:qhp_quotes
            - policies.each do |policy|
              - enrollee = policy.enrollee_for_member_id(member.hbx_member_id)
              - next if enrollee.blank?
              - next if (!enrollee.coverage_end.blank?) && (enrollee.coverage_end < Date.new(2015, 1, 1))
- if false #TODO
  %n1:responsible_party_roles
    %n1:responsible_party_role
      %n1:id
- if false #TODO
  %n1:medicaid_roles
    %n1:medicaid_role
      %n1:id
- if person.employee_roles.present?
  %n1:employee_roles
    - person.employee_roles.each do |enrollee|
      %n1:employee_role
{'fraction_non_alphanumeric': 0.11386374464030491, 'fraction_numerical': 0.026917579799904716, 'mean_word_length': 2.2449768160741885, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3288097', 'n_tokens_mistral': 1606, 'n_tokens_neox': 1533, 'n_words': 229}