<commit_before>ENV['RACK_ENV'] = 'test'

$LOAD_PATH << File.expand_path('../../', __FILE__)
$LOAD_PATH << File.expand_path('../../lib', __FILE__)

require "bundler/setup"
require "minitest/autorun"
require "rack/test"
require "mocha"
require "fixtures/default_mappings"
require "pp"

require "webmock/minitest"
WebMock.disable_net_connect!

if ENV["USE_SIMPLECOV"]
  require "simplecov"
  require "simplecov-rcov"
  SimpleCov.start
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
end

module TestHelpers
  def load_yaml_fixture(filename)
    YAML.load_file(File.expand_path("fixtures/#{filename}", File.dirname(__FILE__)))
  end
end

class MiniTest::Unit::TestCase
  include TestHelpers
end<commit_msg>Fix a deprecation warning in mocha.<commit_after>ENV['RACK_ENV'] = 'test'

$LOAD_PATH << File.expand_path('../../', __FILE__)
$LOAD_PATH << File.expand_path('../../lib', __FILE__)

require "bundler/setup"
require "minitest/autorun"
require "rack/test"
require "mocha/setup"
require "fixtures/default_mappings"
require "pp"

require "webmock/minitest"
WebMock.disable_net_connect!

if ENV["USE_SIMPLECOV"]
  require "simplecov"
  require "simplecov-rcov"
  SimpleCov.start
  SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
end

module TestHelpers
  def load_yaml_fixture(filename)
    YAML.load_file(File.expand_path("fixtures/#{filename}", File.dirname(__FILE__)))
  end
end

class MiniTest::Unit::TestCase
  include TestHelpers
end
{'fraction_non_alphanumeric': 0.13736263736263737, 'fraction_numerical': 0.0, 'mean_word_length': 6.0048076923076925, 'pattern_counts': {'":': 0, '<': 11, '<?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': '4470236', 'n_tokens_mistral': 513, 'n_tokens_neox': 509, 'n_words': 96}