<commit_before>module What::Modules
  # load all modules defined in what/modules, in addition to any paths
  # specified in the config file.
  def self.load_all
    globs = [File.join(File.dirname(__FILE__), 'modules', '*.rb')]

    if What::Config['module_paths']
      What::Config['module_paths'].each do |module_path|
        globs << File.join(What::Config['base'], module_path, '*.rb')
      end
    end

    globs.each do |glob|
      Dir[glob].each do |fn|
        require fn
      end
    end
  end
end<commit_msg>fix module load order<commit_after>module What::Modules
  # load all modules defined in what/modules, in addition to any paths
  # specified in the config file.
  def self.load_all
    require 'what/modules/base'

    globs = ['what/modules/*.rb']

    if What::Config['module_paths']
      What::Config['module_paths'].each do |module_path|
        globs << File.join(What::Config['base'], module_path, '*.rb')
      end
    end

    globs.each do |glob|
      Dir[glob].each do |fn|
        require fn
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1252371916508539, 'fraction_numerical': 0.0, 'mean_word_length': 2.8644688644688645, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2534479', 'n_tokens_mistral': 335, 'n_tokens_neox': 331, 'n_words': 96}