<commit_before># frozen_string_literal: true

require "active_support/core_ext/hash/indifferent_access"
require "rack/utils"

module ActionDispatch
  class TestRequest < Request
    DEFAULT_ENV = Rack::MockRequest.env_for("/",
      "HTTP_HOST"                => "test.host",
      "REMOTE_ADDR"              => "0.0.0.0",
      "HTTP_USER_AGENT"          => "Rails Testing",
    )

    # Create a new test request with default +env+ values.<commit_msg>Encode ActionDispatch::TestRequest::DEFAULT_ENV headers as ASCII-8BIT<commit_after># frozen_string_literal: true

require "active_support/core_ext/hash/indifferent_access"
require "rack/utils"

module ActionDispatch
  class TestRequest < Request
    DEFAULT_ENV = Rack::MockRequest.env_for("/",
      "HTTP_HOST"                => "test.host".b,
      "REMOTE_ADDR"              => "0.0.0.0".b,
      "HTTP_USER_AGENT"          => "Rails Testing".b,
    )

    # Create a new test request with default +env+ values.
{'fraction_non_alphanumeric': 0.11776859504132231, 'fraction_numerical': 0.009297520661157025, 'mean_word_length': 2.923076923076923, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6609845', 'n_tokens_mistral': 313, 'n_tokens_neox': 298, 'n_words': 63}