<commit_before>require 'action_controller/base'

module Responders
  autoload :FlashResponder,     'responders/flash_responder'
  autoload :HttpCacheResponder, 'responders/http_cache_responder'

  require 'responders/controller_method'
  ActionController::Base.extend Responders::ControllerMethod

  class Railtie < ::Rails::Railtie
    railtie_name :responders

    config.generators.scaffold_controller = :responders_controller

    # Add load paths straight to I18n, so engines and application can overwrite it.
    require 'active_support/i18n'
    I18n.load_path << File.expand_path('../responders/locales/en.yml', __FILE__)

    initializer "responders.flash_responder" do
      if config.responders.flash_keys
        Responders::FlashResponder.flash_keys = config.responders.flash_keys 
      end
    end
  end
end<commit_msg>Make it compatible with master.<commit_after>require 'action_controller/base'

module Responders
  autoload :FlashResponder,     'responders/flash_responder'
  autoload :HttpCacheResponder, 'responders/http_cache_responder'

  require 'responders/controller_method'
  ActionController::Base.extend Responders::ControllerMethod

  class Railtie < ::Rails::Railtie
    config.responders = ActiveSupport::OrderedOptions.new
    config.generators.scaffold_controller = :responders_controller

    # Add load paths straight to I18n, so engines and application can overwrite it.
    require 'active_support/i18n'
    I18n.load_path << File.expand_path('../responders/locales/en.yml', __FILE__)

    initializer "responders.flash_responder" do |app|
      if app.config.responders.flash_keys
        Responders::FlashResponder.flash_keys = app.config.responders.flash_keys
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08164447017950202, 'fraction_numerical': 0.006948465547191662, 'mean_word_length': 4.647058823529412, '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': '4466030', 'n_tokens_mistral': 551, 'n_tokens_neox': 508, 'n_words': 104}