<commit_before>module Bundler
  class GemBundle < Array
    def download(directory)
      FileUtils.mkdir_p(directory)

      each do |spec|
        unless directory.join("cache", "#{spec.full_name}.gem").file?
          Bundler.logger.info "Downloading #{spec.full_name}.gem"
          Gem::RemoteFetcher.fetcher.download(spec, spec.source, directory)<commit_msg>Download gems alphabetically<commit_after>module Bundler
  class GemBundle < Array
    def download(directory)
      FileUtils.mkdir_p(directory)

      sort_by {|s| s.full_name.downcase }.each do |spec|
        unless directory.join("cache", "#{spec.full_name}.gem").file?
          Bundler.logger.info "Downloading #{spec.full_name}.gem"
          Gem::RemoteFetcher.fetcher.download(spec, spec.source, directory)
{'fraction_non_alphanumeric': 0.12195121951219512, 'fraction_numerical': 0.0, 'mean_word_length': 3.6706586826347305, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5970119', 'n_tokens_mistral': 237, 'n_tokens_neox': 236, 'n_words': 44}