<commit_before>require 'rails/all'

require 'acts_as_indexed'
require 'authlogic'
require 'awesome_nested_set'
require 'dragonfly'
require 'friendly_id'
require 'truncate_html'
require 'will_paginate'
require 'rails/generators'
require 'rails/generators/migration'

module Refinery

  autoload :Activity, File.expand_path('../refinery/activity', __FILE__)
  autoload :Application, File.expand_path('../refinery/application', __FILE__)
  autoload :Generators, File.expand_path('../refinery/generators', __FILE__)
  autoload :Plugin,  File.expand_path('../refinery/plugin', __FILE__)
  autoload :Plugins, File.expand_path('../refinery/plugins', __FILE__)

  module Core
    class << self
      def attach_to_application!
        ::Rails::Application.subclasses.each do |subclass|
          begin
            subclass.send :include, ::Refinery::Application
          rescue
            $stdout.puts "Refinery CMS couldn't attach to #{subclass.name}."
            $stdout.puts "Error was: #{$!.message}"
            $stdout.puts $!.backtrace
          end
        end
      end
    end

    class Engine < Rails::Engine

      config.autoload_paths += %W( #{config.root}/lib )

      initializer "static assets" do |app|
        app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"<commit_msg>And don't include this, either.<commit_after>require 'rails/all'

require 'acts_as_indexed'
require 'authlogic'
require 'awesome_nested_set'
require 'dragonfly'
require 'friendly_id'
require 'truncate_html'
require 'will_paginate'
require 'rails/generators'
require 'rails/generators/migration'

module Refinery

  autoload :Activity, File.expand_path('../refinery/activity', __FILE__)
  autoload :Application, File.expand_path('../refinery/application', __FILE__)
  autoload :Plugin,  File.expand_path('../refinery/plugin', __FILE__)
  autoload :Plugins, File.expand_path('../refinery/plugins', __FILE__)

  module Core
    class << self
      def attach_to_application!
        ::Rails::Application.subclasses.each do |subclass|
          begin
            subclass.send :include, ::Refinery::Application
          rescue
            $stdout.puts "Refinery CMS couldn't attach to #{subclass.name}."
            $stdout.puts "Error was: #{$!.message}"
            $stdout.puts $!.backtrace
          end
        end
      end
    end

    class Engine < Rails::Engine

      config.autoload_paths += %W( #{config.root}/lib )

      initializer "static assets" do |app|
        app.middleware.insert_after ::ActionDispatch::Static, ::ActionDispatch::Static, "#{root}/public"
{'fraction_non_alphanumeric': 0.12466436517069429, 'fraction_numerical': 0.0, 'mean_word_length': 3.4734133790737562, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5347824', 'n_tokens_mistral': 809, 'n_tokens_neox': 779, 'n_words': 175}