<commit_before>module Selenium
  module WebDriver
    module Remote
      module Http
        class Common
          MAX_REDIRECTS   = 20 # same as chromium/gecko
          CONTENT_TYPE    = "application/json"
          DEFAULT_HEADERS = { "Accept" => CONTENT_TYPE }

          # deprecated.
          def self.timeout=()
            raise Error::WebDriver, "Configuration of HTTP timeouts has changed. See http://code.google.com/p/selenium/wiki/RubyBindings for intructions."
          end

          attr_accessor :timeout
          attr_writer :server_url

          def call(verb, url, command_hash)
            url      = server_url.merge(url) unless url.kind_of?(URI)
            headers  = DEFAULT_HEADERS.dup

            if command_hash<commit_msg>JariBakken: Fix problems in Http::Common.timeout=<commit_after>module Selenium
  module WebDriver
    module Remote
      module Http
        class Common
          MAX_REDIRECTS   = 20 # same as chromium/gecko
          CONTENT_TYPE    = "application/json"
          DEFAULT_HEADERS = { "Accept" => CONTENT_TYPE }

          # deprecated.
          def self.timeout=(timeout)
            raise Error::WebDriverError,
              "Configuration of HTTP timeouts has changed. See http://code.google.com/p/selenium/wiki/RubyBindings for updated intructions."
          end

          attr_accessor :timeout
          attr_writer :server_url

          def call(verb, url, command_hash)
            url      = server_url.merge(url) unless url.kind_of?(URI)
            headers  = DEFAULT_HEADERS.dup

            if command_hash
{'fraction_non_alphanumeric': 0.0726010101010101, 'fraction_numerical': 0.0025252525252525255, 'mean_word_length': 2.0305927342256216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4221883', 'n_tokens_mistral': 452, 'n_tokens_neox': 423, 'n_words': 108}