<commit_before>module Parsers::Xml::Cv
  class IrsGroupParser
    include HappyMapper

    register_namespace "cv", "http://openhbx.org/api/terms/1.0"
    tag 'irs_group'
    namespace 'cv'

    element :id, String, tag: 'id'
    has_many :tax_households_ids, String, tag:'tax_households_ids'

    def to_hash
      {
          id: id,
          tax_households_ids: tax_households_ids.map do |tax_households_id|
            tax_households_id.to_hash
          end
      }
    end

  end
end<commit_msg>added more elements & to_hash()<commit_after>module Parsers::Xml::Cv
  class IrsGroupParser
    include HappyMapper

    register_namespace "cv", "http://openhbx.org/api/terms/1.0"
    tag 'irs_group'
    namespace 'cv'

    element :id, String, tag: 'id'
    has_many :tax_households_ids, String, xpath:'cv:tax_households_ids/cv:id'
    has_many :hbx_enrollment_ids, String, xpath: 'cv:hbx_enrollment_ids/cv:id'
    has_many :hbx_enrollment_exemption_ids, String, xpath: 'cv:hbx_enrollment_exemption_ids/cv:hbx_enrollment_exemption_id'

    def to_hash
      {
          id: id,
          tax_households_ids: tax_households_ids.map do |tax_households_id|
            tax_households_id
          end,
          hbx_enrollment_ids: tax_households_ids.map do |hbx_enrollment_id|
            hbx_enrollment_id
          end,
          hbx_enrollment_exemption_ids: tax_households_ids.map do |hbx_enrollment_exemption_id|
            hbx_enrollment_exemption_id
          end
      }
    end

  end
end
{'fraction_non_alphanumeric': 0.082, 'fraction_numerical': 0.0026666666666666666, 'mean_word_length': 2.9396325459317585, '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': '5207622', 'n_tokens_mistral': 556, 'n_tokens_neox': 535, 'n_words': 94}