<commit_before>module Faraday
  class Request::Retry < Faraday::Middleware
    def initialize(app, retries = 2)
      @retries = retries
      super(app)
    end

    def call(env)
      retries = @retries
      begin
        @app.call(env)
      rescue => e
        if retries > 0
          retries -= 1
          retry
        end
        raise
      end
    end
  end
end
<commit_msg>Rescue Timeout::Error for Ruby 1.8.7<commit_after>module Faraday
  class Request::Retry < Faraday::Middleware
    def initialize(app, retries = 2)
      @retries = retries
      super(app)
    end

    def call(env)
      retries = @retries
      begin
        @app.call(env)
      rescue StandardError, Timeout::Error => e
        if retries > 0
          retries -= 1
          retry
        end
        raise
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.07859733978234583, 'fraction_numerical': 0.010882708585247884, 'mean_word_length': 1.662379421221865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3923235', 'n_tokens_mistral': 268, 'n_tokens_neox': 261, 'n_words': 72}