<commit_before>require 'rspec'
require 'simplecov'
SimpleCov.start

RSpec.configure do |config|
  original_stderr = $stderr
  original_stdout = $stdout
  config.before(:all) do
    $stderr = StringIO.new
    $stdout = StringIO.new
  end
  config.after(:all) do
    $stderr = original_stderr
    $stdout = original_stdout
  end
end<commit_msg>INF-825: Adds environment variable to see output<commit_after>require 'rspec'
require 'simplecov'
SimpleCov.start

RSpec.configure do |config|
  original_stderr = $stderr
  original_stdout = $stdout
  config.before(:all) do
    $stderr = StringIO.new
    $stdout = StringIO.new
  end
  config.after(:all) do
    $stderr = original_stderr
    $stdout = original_stdout
  end
end unless ENV['TEST_OUTPUT']
{'fraction_non_alphanumeric': 0.09664429530201342, 'fraction_numerical': 0.004026845637583893, 'mean_word_length': 4.180555555555555, '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': '2715194', 'n_tokens_mistral': 244, 'n_tokens_neox': 240, 'n_words': 61}