<commit_before>require 'spree/rackspace_cloud_files_configuration'

module Spree::RackSpaceCloudFiles; end

module SpreeRackspaceCloudFiles
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_rackspace_cloud_files'

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

    initializer "spree.rackspace_cloud_files.preferences", :before => :load_config_initializers do |app|
      Spree::RackSpaceCloudFiles::Config = Spree::RackspaceCloudFilesConfiguration.new
    end

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end
end<commit_msg>Made additional refinements to engine.<commit_after>require 'spree/rackspace_cloud_files_configuration'

module Spree::RackspaceCloudFiles; end

module SpreeRackspaceCloudFiles
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name 'spree_rackspace_cloud_files'

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

    initializer "spree.rackspace_cloud_files.preferences", :after => "spree.environment" do |app|
      Spree::RackspaceCloudFiles::Config = Spree::RackspaceCloudFilesConfiguration.new
    end

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc
  end
end
{'fraction_non_alphanumeric': 0.10806270996640538, 'fraction_numerical': 0.0, 'mean_word_length': 3.977715877437326, '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': '7379362', 'n_tokens_mistral': 583, 'n_tokens_neox': 564, 'n_words': 107}