<commit_before>module HttpEventstore
  module Api
    class Connection
      APP_JSON = 'application/json'.freeze

      def initialize(endpoint)
        @endpoint = endpoint
      end

      def call
        Faraday.new(
            url: endpoint.url,
        ) do |builder|
          builder.request :retry, max: 4, interval: 0.05,
                           interval_randomness: 0.5, backoff_factor: 2, exceptions: [
                             Errno::ETIMEDOUT, 'Timeout::Error', Error::TimeoutError, 'HttpEventstore::ServerError'
                           ]
          builder.adapter Faraday.default_adapter
          builder.response :json, content_type: APP_JSON
          builder.response :mashify
          builder.use ErrorsHandler
        end
      end

      private
      attr_reader :endpoint
    end
  end
end<commit_msg>The Error constant is removed<commit_after>module HttpEventstore
  module Api
    class Connection
      APP_JSON = 'application/json'.freeze

      def initialize(endpoint)
        @endpoint = endpoint
      end

      def call
        Faraday.new(
            url: endpoint.url,
        ) do |builder|
          builder.request :retry, max: 4, interval: 0.05,
                           interval_randomness: 0.5, backoff_factor: 2, exceptions: [
                             Errno::ETIMEDOUT, 'Timeout::Error', 'HttpEventstore::ServerError'
                           ]
          builder.adapter Faraday.default_adapter
          builder.response :json, content_type: APP_JSON
          builder.response :mashify
          builder.use ErrorsHandler
        end
      end

      private
      attr_reader :endpoint
    end
  end
end
{'fraction_non_alphanumeric': 0.07121484141232795, 'fraction_numerical': 0.008378216636744464, 'mean_word_length': 1.740983606557377, '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': '3089110', 'n_tokens_mistral': 454, 'n_tokens_neox': 431, 'n_words': 108}