<commit_before>require 'bundler/setup'
require 'test/unit'
require 'mocha/setup'
require 'active_support'
require 'action_controller'

require File.dirname(__FILE__) + '/../lib/action_controller/verification'

SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
SharedTestRoutes.draw do
  match ":controller(/:action(/:id))"
end

ActionController::Base.send :include, SharedTestRoutes.url_helpers

module ActionController
  class TestCase
    setup { @routes = SharedTestRoutes }
  end
end
<commit_msg>Require active_support/testing/autorun if if ActiveSupport::VERSION::MAJOR > 3<commit_after>require 'bundler/setup'
require 'test/unit'
require 'mocha/setup'
require 'active_support'
require 'action_controller'

if ActiveSupport::VERSION::MAJOR > 3
  require 'active_support/testing/autorun'
end

require File.dirname(__FILE__) + '/../lib/action_controller/verification'

SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
SharedTestRoutes.draw do
  match ":controller(/:action(/:id))"
end

ActionController::Base.send :include, SharedTestRoutes.url_helpers

module ActionController
  class TestCase
    setup { @routes = SharedTestRoutes }
  end
end

{'fraction_non_alphanumeric': 0.10996563573883161, 'fraction_numerical': 0.001718213058419244, 'mean_word_length': 6.516129032258065, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 5, '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': '616078', 'n_tokens_mistral': 359, 'n_tokens_neox': 358, 'n_words': 75}