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

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

    config.to_prepare do
      Dir.glob(AngularBlog::Engine.root + "app/concerns/**/*.rb").each do |c|
        require_dependency(c)
      end
    end

    initializer :survey_base_init do |app|
      AngularBlog.config = YAML.load(File.read(File.expand_path('config/angular_blog.yml',app.root)))
    end
  end
end<commit_msg>move loading of concerns to initailizer<commit_after>module AngularBlog
  class Engine < ::Rails::Engine
    isolate_namespace AngularBlog

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

    initializer :angular_blog_init do |app|
      AngularBlog.config = YAML.load(File.read(File.expand_path('config/angular_blog.yml',app.root)))

      Dir.glob(AngularBlog::Engine.root + "app/concerns/**/*.rb").each do |c|
        require_dependency(c)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11293103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 3.5, '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': '743168', 'n_tokens_mistral': 404, 'n_tokens_neox': 379, 'n_words': 75}