<commit_before><commit_msg>Added bundler require<commit_after># patches Bundler.require specifically to print require times
require 'benchmark'
module Bundler
  class Runtime < Environment

    def require(*groups)
      groups.map! { |g| g.to_sym }
      groups = [:default] if groups.empty?

      @definition.dependencies.each do |dep|
        # Skip the dependency if it is not in any of the requested
        # groups
        next unless ((dep.groups & groups).any? && dep.current_platform?)

        required_file = nil

        begin
          # Loop through all the specified autorequires for the
          # dependency. If there are none, use the dependency's name
          # as the autorequire.
          Array(dep.autorequire || dep.name).each do |file|
            required_file = file
            total = Benchmark.realtime {
              Kernel.require file
            }
            puts "Bundler.require #{file}\t#{total}"
          end
        rescue LoadError => e
          REGEXPS.find { |r| r =~ e.message }
          raise if dep.autorequire || $1 != required_file
        end
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.0841452612931798, 'fraction_numerical': 0.0008857395925597874, 'mean_word_length': 2.021390374331551, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6856644', 'n_tokens_mistral': 310, 'n_tokens_neox': 299, 'n_words': 101}