<commit_before>require 'hatt/http'
require 'faraday/adapter/test'

describe Hatt::HTTP do
  before(:each) do
    # require 'pry';binding.pry
    subject.logger.level = Logger::DEBUG
  end

  let(:test_configuration) do
    {
      name: 'test service',
      hostname: 'totallyfakedomainthatcouldnotpossiblyexist.com',
      port: 80,
      ssl: false,
      ignore_ssl_certificate: false,
      default_headers: {
        X_SomeHeader: 'some_default_value'
      },
      log_headers: true
    }
  end

  subject { described_class.new test_configuration }

  describe 'http methods' do<commit_msg>remove debug code<commit_after>require 'hatt/http'
require 'faraday/adapter/test'

describe Hatt::HTTP do

  let(:test_configuration) do
    {
      name: 'test service',
      hostname: 'totallyfakedomainthatcouldnotpossiblyexist.com',
      port: 80,
      ssl: false,
      ignore_ssl_certificate: false,
      default_headers: {
        X_SomeHeader: 'some_default_value'
      },
      log_headers: true
    }
  end

  subject { described_class.new test_configuration }

  describe 'http methods' do
{'fraction_non_alphanumeric': 0.09346642468239565, 'fraction_numerical': 0.003629764065335753, 'mean_word_length': 3.1622641509433964, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7354448', 'n_tokens_mistral': 362, 'n_tokens_neox': 343, 'n_words': 74}