<commit_before>module VCR
  module HttpStubbingAdapters
    autoload :FakeWeb,          'vcr/http_stubbing_adapters/fakeweb'
    autoload :MultiObjectProxy, 'vcr/http_stubbing_adapters/multi_object_proxy'
    autoload :Typhoeus,         'vcr/http_stubbing_adapters/typhoeus'
    autoload :WebMock,          'vcr/http_stubbing_adapters/webmock'

    class UnsupportedRequestMatchAttributeError < ArgumentError; end

    module Common
      def self.add_vcr_info_to_exception_message(exception_klass)
        exception_klass.class_eval do
          def message
            super + ".  " + VCR::HttpStubbingAdapters::Common::RECORDING_INSTRUCTIONS
          end
        end
      end

      RECORDING_INSTRUCTIONS = "You can use VCR to automatically record this request and replay it later.  " +
                               "For more details, visit the VCR wiki at: http://github.com/myronmarston/vcr/wiki"

      def check_version!
        version_too_low, version_too_high = compare_version

        if version_too_low
          raise "You are using #{library_name} #{version}.  VCR requires version #{version_requirement}."
        elsif version_too_high
          warn "You are using #{library_name} #{version}.  VCR is known to work with #{library_name} #{version_requirement}.  It may not work with this version."<commit_msg>Fix FakeWeb error extension so that it works on JRuby.<commit_after>module VCR
  module HttpStubbingAdapters
    autoload :FakeWeb,          'vcr/http_stubbing_adapters/fakeweb'
    autoload :MultiObjectProxy, 'vcr/http_stubbing_adapters/multi_object_proxy'
    autoload :Typhoeus,         'vcr/http_stubbing_adapters/typhoeus'
    autoload :WebMock,          'vcr/http_stubbing_adapters/webmock'

    class UnsupportedRequestMatchAttributeError < ArgumentError; end

    module Common
      def self.add_vcr_info_to_exception_message(exception_klass)
        exception_klass.class_eval do
          def initialize(message)
            super(message + '.  ' + VCR::HttpStubbingAdapters::Common::RECORDING_INSTRUCTIONS)
          end
        end
      end

      RECORDING_INSTRUCTIONS = "You can use VCR to automatically record this request and replay it later.  " +
                               "For more details, visit the VCR wiki at: http://github.com/myronmarston/vcr/wiki"

      def check_version!
        version_too_low, version_too_high = compare_version

        if version_too_low
          raise "You are using #{library_name} #{version}.  VCR requires version #{version_requirement}."
        elsif version_too_high
          warn "You are using #{library_name} #{version}.  VCR is known to work with #{library_name} #{version_requirement}.  It may not work with this version."
{'fraction_non_alphanumeric': 0.07011747430249633, 'fraction_numerical': 0.0, 'mean_word_length': 2.9897510980966326, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5382607', 'n_tokens_mistral': 825, 'n_tokens_neox': 808, 'n_words': 200}