<commit_before>class Net::PTTH
  IncomingRequest = Struct.new(:method, :path, :headers, :body) do
    def to_env
      env = {
        "PATH_INFO" => path,
        "SCRIPT_NAME" => "",
        "rack.input" => StringIO.new(body || ""),
        "REQUEST_METHOD" => method,
      }

      env.tap { |h| h["CONTENT_LENGTH"] = body.length if !body.nil? }

      env.merge!(headers) if headers<commit_msg>Remove unnecessary tap usage<commit_after>class Net::PTTH
  IncomingRequest = Struct.new(:method, :path, :headers, :body) do
    def to_env
      env = {
        "PATH_INFO" => path,
        "SCRIPT_NAME" => "",
        "rack.input" => StringIO.new(body || ""),
        "REQUEST_METHOD" => method,
      }

      env["CONTENT_LENGTH"] = body.length unless body.nil?

      env.merge!(headers) if headers
{'fraction_non_alphanumeric': 0.1596009975062344, 'fraction_numerical': 0.0, 'mean_word_length': 2.6334841628959276, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5194616', 'n_tokens_mistral': 270, 'n_tokens_neox': 260, 'n_words': 54}