<commit_before>module Faraday
  module ForTest
    class Proxy < BasicObject
      def initialize(client)
        @client = client
      end

      # proxy every method
      def method_missing(name, *args, &block)
        if @client.respond_to?(name)
          maybe_response = @client.__send__(name, *args, &block)

          if maybe_response.is_a?(::Faraday::Response)
            response = ::Faraday::ForTest::Response.new(maybe_response)
            response.request_params = args.find {|e| e.is_a?(::Array) || e.is_a?(::Hash) || e.is_a?(::NilClass) }
            response
          else
            maybe_response
          end
        else
          raise ::NoMethodError.new("#{name} seems not defined or publid", name)
        end
      end
    end
  end
end<commit_msg>super!<commit_after>module Faraday
  module ForTest
    class Proxy < BasicObject
      def initialize(client)
        @client = client
      end

      # proxy every method
      def method_missing(name, *args, &block)
        if @client.respond_to?(name)
          maybe_response = @client.__send__(name, *args, &block)

          if maybe_response.is_a?(::Faraday::Response)
            response = ::Faraday::ForTest::Response.new(maybe_response)
            response.request_params = args.find {|e| e.is_a?(::Array) || e.is_a?(::Hash) || e.is_a?(::NilClass) }
            response
          else
            maybe_response
          end
        else
          super
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11006711409395974, 'fraction_numerical': 0.0, 'mean_word_length': 2.0869565217391304, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6485670', 'n_tokens_mistral': 452, 'n_tokens_neox': 446, 'n_words': 98}