<commit_before>require "hello/manager"

module Hello
  class Engine < ::Rails::Engine
    isolate_namespace Hello

    initializer "hello.filter" do |app|
      app.config.filter_parameters += [:password, :token]
    end

    initializer "hello.add_middleware" do |app|
      app.config.app_middleware.use Hello::Manager::Middleware
    end

    config.hello            = ActiveSupport::OrderedOptions.new
    config.hello.extensions = ActiveSupport::OrderedOptions.new

    config.generators do |g|
      g.test_framework :rspec, view_specs: false,
                               controller_specs: false
      # g.fixture_replacement :factory_girl, :dir => 'spec/factories'
      g.assets false
      g.helper false
    end

  end
end
<commit_msg>Fix autoload issues<commit_after>require "hello/manager"

module Hello
  class Engine < ::Rails::Engine
    isolate_namespace Hello

    initializer "hello.filter" do |app|
      app.config.filter_parameters += [:password, :token]
    end

    initializer "hello.add_middleware" do |app|
      app.config.app_middleware.use Hello::Manager::Middleware
    end

    initializer "hello.load_config" do |app|
      app.config.autoload_paths += %W(#{Engine.root}/lib)
      app.config.watchable_dirs["#{Engine.root}/lib"] = [:rb]
    end
    
    config.hello            = ActiveSupport::OrderedOptions.new
    config.hello.extensions = ActiveSupport::OrderedOptions.new

    config.generators do |g|
      g.test_framework :rspec, view_specs: false,
                               controller_specs: false
      # g.fixture_replacement :factory_girl, :dir => 'spec/factories'
      g.assets false
      g.helper false
    end

  end
end

{'fraction_non_alphanumeric': 0.10119047619047619, 'fraction_numerical': 0.0, 'mean_word_length': 2.8031674208144794, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2534413', 'n_tokens_mistral': 515, 'n_tokens_neox': 507, 'n_words': 107}