<commit_before>module MWS
  module API

    class Feed < Base
      def_request(:get_feed_submission_list,
                 :verb => :get,
                 :uri => '/',
                 :version => '2009-01-01',
                 :lists => {
                   :feed_submission_id_list => "FeedSubmissionIdList.FeedSubmmissionId"})

      def_request(:get_feed_submission_result,
                 :verb => :get,
                 :uri => '/',
                 :version => '2009-01-01')

      def submit_feed(params={})
        raise ArgumentError, 'Must supply hash param' unless params.is_a?(Hash)
        content = params.delete(:feed_content) { '' }

        params[:options] = { :body => content,
                             :headers => {
                              'Content-MD5' => Base64.encode64(Digest::MD5.digest(content)).strip
                             }
        }
        send_request(:submit_feed, params, {
          :verb => :post,
          :uri => '/',
          :version => '2009-01-01'
        })
      end
    end

  end
end<commit_msg>Update feed.rb<commit_after>module MWS
  module API

    class Feed < Base
      def_request(:get_feed_submission_list,
                 :verb => :get,
                 :uri => '/',
                 :version => '2009-01-01')

      def_request(:get_feed_submission_result,
                 :verb => :get,
                 :uri => '/',
                 :version => '2009-01-01')

      def submit_feed(params={})
        raise ArgumentError, 'Must supply hash param' unless params.is_a?(Hash)
        content = params.delete(:feed_content) { '' }

        params[:options] = { :body => content,
                             :headers => {
                              'Content-MD5' => Base64.encode64(Digest::MD5.digest(content)).strip
                             }
        }
        send_request(:submit_feed, params, {
          :verb => :post,
          :uri => '/',
          :version => '2009-01-01'
        })
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.1321036889332004, 'fraction_numerical': 0.02991026919242273, 'mean_word_length': 1.3836104513064134, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '3592160', 'n_tokens_mistral': 603, 'n_tokens_neox': 554, 'n_words': 99}