<commit_before>class Wallaby::Map
  def self.mode_map(modes = Wallaby::Mode.subclasses)
    Rails.cache.fetch 'wallaby/mode_map' do
      {}.tap do |map|
        modes.each do |mode_class|
          mode_class.model_finder.new.all.each do |model_class|
            map[model_class] = mode_class
          end
        end
      end
    end
  end

  def self.model_classes(configuration = Wallaby.configuration)
    Rails.cache.fetch 'wallaby/model_classes' do
      models          = configuration.models
      full_list       = mode_map.keys
      configed_models = models.presence

      return full_list - models.excludes unless configed_models
<commit_msg>do not use default value for map<commit_after>class Wallaby::Map
  def self.mode_map(modes = nil)
    Rails.cache.fetch 'wallaby/mode_map' do
      {}.tap do |map|
        (modes || Wallaby::Mode.subclasses).each do |mode_class|
          mode_class.model_finder.new.all.each do |model_class|
            map[model_class] = mode_class
          end
        end
      end
    end
  end

  def self.model_classes(configuration = nil)
    Rails.cache.fetch 'wallaby/model_classes' do
      models          = (configuration || Wallaby.configuration).models
      full_list       = mode_map.keys
      configed_models = models.presence

      return full_list - models.excludes unless configed_models

{'fraction_non_alphanumeric': 0.08265682656826569, 'fraction_numerical': 0.0, 'mean_word_length': 2.503875968992248, 'pattern_counts': {'":': 0, '<': 3, '<?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': '330728', 'n_tokens_mistral': 420, 'n_tokens_neox': 408, 'n_words': 90}