<commit_before>require File.join(File.dirname(__FILE__), '../middleware/flash_session_cookie')

module Alchemy
  class Engine < Rails::Engine

    # Config defaults
    config.mount_at = '/'

		# Enabling assets precompiling under rails 3.1
		if Rails.version >= '3.1'
			initializer :assets do |config|
				Rails.application.config.assets.precompile += %w( alchemy/alchemy.js alchemy/alchemy.css )
			end
		end

    # Check the gem config
    initializer "check config" do |app|
      # make sure mount_at ends with trailing slash
      config.mount_at += '/'  unless config.mount_at.last == '/'
    end

    initializer :flash_cookie do |config|
      config.middleware.insert_after(
        'ActionDispatch::Cookies',
        Alchemy::Middleware::FlashSessionCookie,
        ::Rails.configuration.session_options[:key]
      )
    end

  end
end<commit_msg>Adding alchemy/print.css to precompileable assets<commit_after>require File.join(File.dirname(__FILE__), '../middleware/flash_session_cookie')

module Alchemy
  class Engine < Rails::Engine

    # Config defaults
    config.mount_at = '/'

		# Enabling assets precompiling under rails 3.1
		if Rails.version >= '3.1'
			initializer :assets do |config|
				Rails.application.config.assets.precompile += %w( alchemy/alchemy.js alchemy/alchemy.css alchemy/print.css )
			end
		end

    # Check the gem config
    initializer "check config" do |app|
      # make sure mount_at ends with trailing slash
      config.mount_at += '/'  unless config.mount_at.last == '/'
    end

    initializer :flash_cookie do |config|
      config.middleware.insert_after(
        'ActionDispatch::Cookies',
        Alchemy::Middleware::FlashSessionCookie,
        ::Rails.configuration.session_options[:key]
      )
    end

  end
end
{'fraction_non_alphanumeric': 0.10597519729425028, 'fraction_numerical': 0.004509582863585118, 'mean_word_length': 3.206161137440758, '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': '5682107', 'n_tokens_mistral': 589, 'n_tokens_neox': 531, 'n_words': 126}