<commit_before>$:.push(File.expand_path(File.dirname(__FILE__)))
$:.push(File.expand_path(File.dirname(__FILE__)) + '/../lib')

require 'failsafe'

RSpec.configure do |config|
  config.mock_with :mocha
  config.after { Failsafe.error_backends.clear }
end<commit_msg>Add MockFailureBackend for test mode<commit_after>$:.push(File.expand_path(File.dirname(__FILE__)))
$:.push(File.expand_path(File.dirname(__FILE__)) + '/../lib')

require 'failsafe'

class MockFailureBackend < Failsafe::Backends::Base
end

RSpec.configure do |config|
  config.mock_with :mocha
  config.after { Failsafe.error_backends.clear }
end
{'fraction_non_alphanumeric': 0.15196078431372548, 'fraction_numerical': 0.0, 'mean_word_length': 6.385542168674699, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1262098', 'n_tokens_mistral': 221, 'n_tokens_neox': 215, 'n_words': 33}