<commit_before>module RocketPants
  class Railtie < Rails::Railtie
    
    config.rocket_pants = ActiveSupport::OrderedOptions.new
    config.rocket_pants.use_caching = nil
    
    config.i18n.railties_load_path << File.expand_path('../locale/en.yml', __FILE__)
    
    initializer "rocket_pants.logger" do
      ActiveSupport.on_load(:rocket_pants) { self.logger ||= Rails.logger }
    end
    
    initializer "rocket_pants.configuration" do
      rp_config = app.config.rocket_pants
      rp_config.use_caching = Rails.env.production? if rp_config.use_caching.nil?
      RocketPants.caching_enabled = rp_config.use_caching
      # Set the rocket pants cache if present.
      RocketPants.cache = rp_config.cache if rp_config.cache
    end

    initializer "rocket_pants.url_helpers" do |app|
      ActiveSupport.on_load(:rocket_pants) do
        include app.routes.url_helpers
      end
    end
    <commit_msg>Actually add a reference to app to the railtie<commit_after>module RocketPants
  class Railtie < Rails::Railtie
    
    config.rocket_pants = ActiveSupport::OrderedOptions.new
    config.rocket_pants.use_caching = nil
    
    config.i18n.railties_load_path << File.expand_path('../locale/en.yml', __FILE__)
    
    initializer "rocket_pants.logger" do
      ActiveSupport.on_load(:rocket_pants) { self.logger ||= Rails.logger }
    end
    
    initializer "rocket_pants.configuration" do |app|
      rp_config = app.config.rocket_pants
      rp_config.use_caching = Rails.env.production? if rp_config.use_caching.nil?
      RocketPants.caching_enabled = rp_config.use_caching
      # Set the rocket pants cache if present.
      RocketPants.cache = rp_config.cache if rp_config.cache
    end

    initializer "rocket_pants.url_helpers" do |app|
      ActiveSupport.on_load(:rocket_pants) do
        include app.routes.url_helpers
      end
    end
    
{'fraction_non_alphanumeric': 0.08328884143085959, 'fraction_numerical': 0.002135611318739989, 'mean_word_length': 3.220720720720721, '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': '6785943', 'n_tokens_mistral': 655, 'n_tokens_neox': 635, 'n_words': 113}