<commit_before>module Warden
  module GitHub
    module Rails
      class Railtie < ::Rails::Railtie
        config.app_middleware.use Warden::Manager do |config|
          config.failure_app = lambda { |env| [403, {}, [env['warden'].message]] }
          Rails.scopes.each do |scope, scope_config|
            config.scope_defaults scope, :strategies => [:github],
                                         :config => scope_config
          end
        end

        initializer 'warden-github-rails.controller_helpers' do
          ActiveSupport.on_load(:action_controller) do
            include ControllerHelpers
          end

          ActiveSupport.on_load(:action_view) do
            include ViewHelpers
          end
        end
      end
    end
  end
end

<commit_msg>Rename railtie initializer<commit_after>module Warden
  module GitHub
    module Rails
      class Railtie < ::Rails::Railtie
        config.app_middleware.use Warden::Manager do |config|
          config.failure_app = lambda { |env| [403, {}, [env['warden'].message]] }
          Rails.scopes.each do |scope, scope_config|
            config.scope_defaults scope, :strategies => [:github],
                                         :config => scope_config
          end
        end

        initializer 'warden-github-rails.helpers' do
          ActiveSupport.on_load(:action_controller) do
            include ControllerHelpers
          end

          ActiveSupport.on_load(:action_view) do
            include ViewHelpers
          end
        end
      end
    end
  end
end


{'fraction_non_alphanumeric': 0.08087291399229782, 'fraction_numerical': 0.0038510911424903724, 'mean_word_length': 1.8397085610200363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '801064', 'n_tokens_mistral': 425, 'n_tokens_neox': 409, 'n_words': 98}