<commit_before># encoding: utf-8

# manually hardcode timeouts for HTTPI to 5 minutes (300 seconds)
# HOTFIX there's no way how to do it properly through HTTPI

module HTTPI
  class Request
    def open_timeout
      300
    end

    def read_timeout
      300
    end
  end
end

# according to https://github.com/taf2/curb/issues/96, should be fixed in
# curb 0.8.0, so let's to comment it out
=begin

# disable ssl authentication in curb
# HOTFIX for bug in HTTPI

module HTTPI
  module Adapter
    class Curb

    private

      def setup_client(request)
        basic_setup request
        setup_http_auth request if request.auth.http?
        # setup_ssl_auth request.auth.ssl if request.auth.ssl?
        # setup_ntlm_auth request if request.auth.ntlm?

        # HOTFIX for bug in curb 0.7.16, see issue:
        # https://github.com/taf2/curb/issues/96
        client.resolve_mode = :ipv4
      end
      
    end
  end
end

=end<commit_msg>Removed obsolete commented-out curb monkeypatch<commit_after># encoding: utf-8

# manually hardcode timeouts for HTTPI to 5 minutes (300 seconds)
# TODO check if there's still no way to do it properly through HTTPI
# TODO enable user to set timeout in adapi configuration

module HTTPI
  class Request
    def open_timeout
      300
    end

    def read_timeout
      300
    end
  end
end
{'fraction_non_alphanumeric': 0.05601194921583271, 'fraction_numerical': 0.0268857356235997, 'mean_word_length': 2.6512261580381473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '797035', 'n_tokens_mistral': 453, 'n_tokens_neox': 419, 'n_words': 155}