<commit_before>require 'simplecov'
SimpleCov.start

# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rails/test_help'

require 'mocha/mini_test'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Load fixtures from the engine
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
end

require 'database_cleaner'
DatabaseCleaner.strategy = :deletion

class ActionDispatch::IntegrationTest
  # Don't wrap each test case in a transaction:
  if respond_to?(:use_transactional_fixtures=)
    self.use_transactional_fixtures = false
  else
    self.use_transactional_tests = false
  end

  # Instead, insert fixtures afresh between each test:
  setup    { DatabaseCleaner.start }<commit_msg># flip conditional to be optimistic about support<commit_after>require 'simplecov'
SimpleCov.start

# Configure Rails Environment
ENV['RAILS_ENV'] = 'test'

require File.expand_path('../dummy/config/environment.rb', __FILE__)
require 'rails/test_help'

require 'mocha/mini_test'

Rails.backtrace_cleaner.remove_silencers!

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }

# Load fixtures from the engine
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
  ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
end

require 'database_cleaner'
DatabaseCleaner.strategy = :deletion

class ActionDispatch::IntegrationTest
  # Don't wrap each test case in a transaction:
  if respond_to?(:use_transactional_tests=)
    self.use_transactional_tests = false
  else
    self.use_transactional_fixtures = false
  end

  # Instead, insert fixtures afresh between each test:
  setup    { DatabaseCleaner.start }
{'fraction_non_alphanumeric': 0.10938310005184033, 'fraction_numerical': 0.0, 'mean_word_length': 5.701388888888889, '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': '3351450', 'n_tokens_mistral': 619, 'n_tokens_neox': 600, 'n_words': 137}