<commit_before>module StrongRoutes
  module Rails
    class Railtie < ::Rails::Railtie
      config.strong_routes = ::StrongRoutes.config

      initializer 'strong_routes.initialize' do |app|
        config.allowed_routes = ::StrongRoutes::Rails::RouteMapper.map(app.routes)

        case
        when config.strong_routes.insert_before? then
          app.config.middleware.insert_before(config.strong_routes.insert_before, ::StrongRoutes::Allow)
        when config.strong_routes.insert_after? then
          app.config.middleware.insert_after(config.strong_routes.insert_after, ::StrongRoutes::Allow)<commit_msg>Add Rails routes to the allowed routes list<commit_after>module StrongRoutes
  module Rails
    class Railtie < ::Rails::Railtie
      config.strong_routes = ::StrongRoutes.config

      initializer 'strong_routes.initialize' do |app|
        config.allowed_routes ||= []
        config.allowed_routes += ::StrongRoutes::Rails::RouteMapper.map(app.routes)

        case
        when config.strong_routes.insert_before? then
          app.config.middleware.insert_before(config.strong_routes.insert_before, ::StrongRoutes::Allow)
        when config.strong_routes.insert_after? then
          app.config.middleware.insert_after(config.strong_routes.insert_after, ::StrongRoutes::Allow)
{'fraction_non_alphanumeric': 0.09769230769230769, 'fraction_numerical': 0.0, 'mean_word_length': 4.003846153846154, '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': '7130510', 'n_tokens_mistral': 385, 'n_tokens_neox': 379, 'n_words': 59}