<commit_before>module Bolt #:nodoc:    
  module Adapters #:nodoc:    
    module Rails #:nodoc:    
    end
  end
end

puts '** Rails found, loading adapter'
ENV['RAILS_ENV'] = 'test'
# make sure the rails root is to the dir we're working in
RAILS_ROOT = ENV['PWD'] if !defined?(RAILS_ROOT)
# the environment has to be loaded here or we end up with a stack level too deep error
case Bolt::Runner.pick
  when 'test_unit'
    require 'test/test_helper'
  when 'legacy_test_unit'
    require 'test/test_helper'
  when 'rspec'
    require 'spec/spec_helper'
  when 'cucumber'
    require 'config/environment.rb'
  else
    # ??
end

# This is a hack for Rails Test::Unit to prevent raising errors when a test file is loaded again
module ActiveSupport #:nodoc:    <commit_msg>removing correction after incorrect error report<commit_after>module Bolt #:nodoc:    
  module Adapters #:nodoc:    
    module Rails #:nodoc:    
    end
  end
end

puts '** Rails found, loading adapter'
ENV['RAILS_ENV'] = 'test'

# the environment has to be loaded here or we end up with a stack level too deep error
case Bolt::Runner.pick
  when 'test_unit'
    require 'test/test_helper'
  when 'legacy_test_unit'
    require 'test/test_helper'
  when 'rspec'
    require 'spec/spec_helper'
  when 'cucumber'
    require 'config/environment.rb'
  else
    # ??
end

# This is a hack for Rails Test::Unit to prevent raising errors when a test file is loaded again
module ActiveSupport #:nodoc:    
{'fraction_non_alphanumeric': 0.08621860149355058, 'fraction_numerical': 0.0, 'mean_word_length': 3.5634674922600618, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7430163', 'n_tokens_mistral': 486, 'n_tokens_neox': 476, 'n_words': 177}