<commit_before>module Ic
  class Country
    attr_reader :id, :name

    def initialize(options = {})
      raise MissingArgumentError, 'id' unless options[:id]
      @id   = options[:id]
      @name = options[:name] || options[:displayName]
    end
  end
end<commit_msg>Added documentation and using keywork arguments<commit_after>module Ic
  # This class represents country information
  #
  # @see http://www.iso.org/iso/country_codes.htm Country codes (ISO 3166)
  class Country
    # return [String] The country identifier
    attr_reader :id

    # return [String] The country name
    attr_reader :name

    # Initializes a new Country
    # @overload initialize(id,name)
    #   @param id          [String] The country identifier (ISO 3166)
    #   @param name        [String] A human readable name (e.g.: 'France')
    #   @param displayName [String] A synonym for parameter name
    def initialize(id:, name: nil, displayName: nil)
      @id   = id
      @name = name || displayName || @id # IC API key: displayName
    end
  end
end
{'fraction_non_alphanumeric': 0.0977948226270374, 'fraction_numerical': 0.007670182166826462, 'mean_word_length': 2.96958174904943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '1154254', 'n_tokens_mistral': 318, 'n_tokens_neox': 305, 'n_words': 105}