<commit_before>module Cogy
  class Engine < ::Rails::Engine
    isolate_namespace Cogy

    config.after_initialize do
      if Cogy.executable_path.nil?
        raise "You must set the :executable_path setting"
      end

      Cogy.command_load_paths.each do |path|
        files = Dir[Rails.root.join(path,"*.rb")]
        files.each { |f| require_relative(f) }
      end
    end<commit_msg>Evaluate command files in the context of Cogy<commit_after>module Cogy
  class Engine < ::Rails::Engine
    isolate_namespace Cogy

    config.after_initialize do
      if Cogy.executable_path.nil?
        raise "You must set the :executable_path setting"
      end

      Cogy.command_load_paths.each do |path|
        files = Dir[Rails.root.join(path,"*.rb")]
        files.each { |f| Cogy.module_eval(File.read(f)) }
      end
    end
{'fraction_non_alphanumeric': 0.09626955475330927, 'fraction_numerical': 0.0, 'mean_word_length': 2.7818181818181817, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3992396', 'n_tokens_mistral': 269, 'n_tokens_neox': 263, 'n_words': 64}