<commit_before>class Mws::Signer

    def initialize(options={})
      @verb = (options[:verb] || 'POST').to_s.upcase
      @host = (options[:verb] || 'https://mws.amazonservices.com').to_s.downcase
      @path = options[:path] || '/'
      @secret = options[:secret]
    end

    def signature(query, secret=@secret)
      digest = OpenSSL::Digest::Digest.new 'sha256'
      message = [ @verb, @host, @path, query ].join '\n'
      Base64::encode64(OpenSSL::HMAC.digest(digest, secret, message)).chomp
    end

    def sign(query, secret=@secret)
      "#{query}&Signature=#{signature query, secret}"
    end

  end<commit_msg>fixed more silly formatting issues<commit_after>class Mws::Signer

  def initialize(options={})
    @verb = (options[:verb] || 'POST').to_s.upcase
    @host = (options[:verb] || 'https://mws.amazonservices.com').to_s.downcase
    @path = options[:path] || '/'
    @secret = options[:secret]
  end

  def signature(query, secret=@secret)
    digest = OpenSSL::Digest::Digest.new 'sha256'
    message = [ @verb, @host, @path, query ].join '\n'
    Base64::encode64(OpenSSL::HMAC.digest(digest, secret, message)).chomp
  end

  def sign(query, secret=@secret)
    "#{query}&Signature=#{signature query, secret}"
  end

end
{'fraction_non_alphanumeric': 0.1764234161988773, 'fraction_numerical': 0.011226944667201283, 'mean_word_length': 3.8185328185328187, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6492896', 'n_tokens_mistral': 433, 'n_tokens_neox': 418, 'n_words': 83}