<commit_before>if defined?(Rails) && Rails.version >= "3.1"
  class JsRoutes
    class Engine < Rails::Engine
      JS_ROUTES_ASSET = 'js-routes'

      initializer 'js-routes.dependent_on_routes', :after => "sprockets.environment" do
        if Rails.application.assets.respond_to?(:register_preprocessor)
          routes = Rails.root.join('config','routes.rb')
          Rails.application.assets.register_preprocessor 'application/javascript', :'js-routes_dependent_on_routes' do |ctx,data|
            ctx.depend_on(routes) if ctx.logical_path == JS_ROUTES_ASSET
            data
          end
        end
      end
    end<commit_msg>Remove unnecessary version check<commit_after>class JsRoutes
  class Engine < Rails::Engine
    JS_ROUTES_ASSET = 'js-routes'

    initializer 'js-routes.dependent_on_routes', :after => "sprockets.environment" do
      if Rails.application.assets.respond_to?(:register_preprocessor)
        routes = Rails.root.join('config','routes.rb')
        Rails.application.assets.register_preprocessor 'application/javascript', :'js-routes_dependent_on_routes' do |ctx,data|
          ctx.depend_on(routes) if ctx.logical_path == JS_ROUTES_ASSET
          data
        end
      end
    end
{'fraction_non_alphanumeric': 0.10573770491803279, 'fraction_numerical': 0.001639344262295082, 'mean_word_length': 3.314487632508834, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '5360040', 'n_tokens_mistral': 380, 'n_tokens_neox': 387, 'n_words': 65}