<commit_before>module Jemquarie

  class Service < Base

    include Parser::Service

    def date
      response = @client.call :generate_xml_extract, :message => create_message
      parse_service_date(response) if response.success?
    rescue
      {:error => "An error has occured, please try again later"}
    end

private

    def create_message
      {
        :string  => hash_key(Jemquarie.api_key), # base64 encoded of the sha1 hashed api key
        :string0 => Jemquarie.app_key,
        :string1 => hash_key(@username),
        :string2 => hash_key(@password),
        :string3 => 'your.clients Service Date',
        :string4 => 'V1.1'
      }
    end

  end

end
<commit_msg>Fix bug on service message creation<commit_after>module Jemquarie

  class Service < Base

    include Parser::Service

    def date
      response = @client.call :generate_xml_extract, :message => create_message
      parse_service_date(response) if response.success?
    rescue
      {:error => "An error has occured, please try again later"}
    end

private

    def create_message
      {
        :string  => hash_key(Jemquarie.api_key), # base64 encoded of the sha1 hashed api key
        :string0 => Jemquarie.app_key,
        :string1 => hash_key(@username),
        :string2 => hash_key(@password),
        :string3 => 'your.clients Service Date',
        :string4 => 'V1.1',
        :strings => ''
      }
    end

  end

end

{'fraction_non_alphanumeric': 0.09957924263674614, 'fraction_numerical': 0.014025245441795231, 'mean_word_length': 2.6126582278481014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2849514', 'n_tokens_mistral': 452, 'n_tokens_neox': 435, 'n_words': 118}