<commit_before>require "hotel_beds/parser"
require "hotel_beds/parser/price"
require "hotel_beds/parser/contract"

module HotelBeds
  module Parser
    class AvailableModality
      include HotelBeds::Parser

      # attributes
      attribute :id, selector: "HotelRoom", attr: "SHRUI"
      attribute :code, attr: "code"
      attribute :name, attr: "Name"
      attribute :type, attr: "Type"
      attribute :mode, attr: "Mode"
      attribute :adult_count, selector: "HotelOccupancy AdultCount"
      attribute :child_age, attr: "ChildAge"
      attribute :content_sequence, attr: "ContentSequence"

      attribute :prices,
        selector: "PriceList > Price", multiple: true,
        parser: HotelBeds::Parser::Price
      attribute :contract,
        selector: "Contract", multiple: true,
        parser: HotelBeds::Parser::Contract
    end
  end
end<commit_msg>Fixing some bad attributes in AvailableModality parser<commit_after>require "hotel_beds/parser"
require "hotel_beds/parser/price"
require "hotel_beds/parser/contract"

module HotelBeds
  module Parser
    class AvailableModality
      include HotelBeds::Parser

      # attributes
      attribute :code, attr: "code"
      attribute :name, attr: "Name"
      attribute :type, attr: "Type"
      attribute :mode, attr: "Mode"
      attribute :adult_count, selector: "HotelOccupancy AdultCount"
      attribute :child_age, attr: "ChildAge"
      attribute :content_sequence, attr: "ContentSequence"

      attribute :prices,
        selector: "PriceList > Price", multiple: true,
        parser: HotelBeds::Parser::Price
      attribute :contract,
        selector: "Contract", multiple: true,
        parser: HotelBeds::Parser::Contract
    end
  end
end
{'fraction_non_alphanumeric': 0.09692396982008125, 'fraction_numerical': 0.0, 'mean_word_length': 3.477922077922078, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4218806', 'n_tokens_mistral': 502, 'n_tokens_neox': 493, 'n_words': 139}