<commit_before>require 'hoptoad_notifier'
require 'rails'

module HoptoadNotifier
  class Railtie < Rails::Railtie
    railtie_name :hoptoad_notifier

    rake_tasks do
      require "hoptoad_notifier/rails3_tasks"
    end

    config.app_middleware.insert_after ActionDispatch::ShowExceptions, HoptoadNotifier::Rack

    config.after_initialize do
      HoptoadNotifier.configure(true) do |config|
        config.logger           = Rails.logger
        # config.environment_name = Rails.env
        # config.project_root     = Rails.root
        config.framework        = "Rails: #{::Rails::VERSION::STRING}"
      end
    end
  end
end<commit_msg>railtie_name is deprecated<commit_after>require 'hoptoad_notifier'
require 'rails'

module HoptoadNotifier
  class Railtie < Rails::Railtie
    rake_tasks do
      require "hoptoad_notifier/rails3_tasks"
    end

    config.app_middleware.insert_after ActionDispatch::ShowExceptions, HoptoadNotifier::Rack

    config.after_initialize do
      HoptoadNotifier.configure(true) do |config|
        config.logger           = Rails.logger
        # config.environment_name = Rails.env
        # config.project_root     = Rails.root
        config.framework        = "Rails: #{::Rails::VERSION::STRING}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08078431372549019, 'fraction_numerical': 0.001568627450980392, 'mean_word_length': 3.08974358974359, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6516550', 'n_tokens_mistral': 411, 'n_tokens_neox': 384, 'n_words': 73}