<commit_before>ENV["RAILS_ENV"] = "test"

require 'test/unit'
require 'rails'
require 'action_controller'
require 'rails/test_help'

class FakeApplication < Rails::Application; end

Rails.application = FakeApplication
Rails.configuration.action_controller = ActiveSupport::OrderedOptions.new

module ActionController
  SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
  SharedTestRoutes.draw do
    match ':controller(/:action)'
  end

  class Base
    include ActionController::Testing
    include SharedTestRoutes.url_helpers
  end

  class ActionController::TestCase
    setup do
      @routes = SharedTestRoutes
    end
  end
end

require 'stronger_parameters'
require 'byebug'
require 'minitest/rails'
require 'minitest/autorun'

class MiniTest::Spec
  def params(hash)
    ActionController::Parameters.new(hash)<commit_msg>do not blow up then byebug is gone<commit_after>ENV["RAILS_ENV"] = "test"

require 'test/unit'
require 'rails'
require 'action_controller'
require 'rails/test_help'

class FakeApplication < Rails::Application; end

Rails.application = FakeApplication
Rails.configuration.action_controller = ActiveSupport::OrderedOptions.new

module ActionController
  SharedTestRoutes = ActionDispatch::Routing::RouteSet.new
  SharedTestRoutes.draw do
    match ':controller(/:action)'
  end

  class Base
    include ActionController::Testing
    include SharedTestRoutes.url_helpers
  end

  class ActionController::TestCase
    setup do
      @routes = SharedTestRoutes
    end
  end
end

begin
  require 'byebug'
rescue LoadError => e
end
require 'stronger_parameters'
require 'minitest/rails'
require 'minitest/autorun'

class MiniTest::Spec
  def params(hash)
    ActionController::Parameters.new(hash)
{'fraction_non_alphanumeric': 0.08444187391555813, 'fraction_numerical': 0.0, 'mean_word_length': 5.360294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '5069116', 'n_tokens_mistral': 529, 'n_tokens_neox': 516, 'n_words': 123}