<commit_before>ENV['MOCK_CORE'] ||= 'true'
ENV['CORE_URL'] ||= "http://api-development.localdev.engineyard.com:9292"

require 'tempfile'

Bundler.require(:default, :test)

require File.expand_path("../../lib/ey-core", __FILE__)
Dir[File.expand_path("../{shared,support}/*.rb", __FILE__)].each{|f| require(f)}

RSpec.configure do |config|
  config.order = "random"
end<commit_msg>Ensure std(in|out|err) is returned to normal<commit_after>ENV['MOCK_CORE'] ||= 'true'
ENV['CORE_URL'] ||= "http://api-development.localdev.engineyard.com:9292"

require 'tempfile'

Bundler.require(:default, :test)

require File.expand_path("../../lib/ey-core", __FILE__)
Dir[File.expand_path("../{shared,support}/*.rb", __FILE__)].each{|f| require(f)}

RSpec.configure do |config|
  config.order = "random"
  config.after(:each) do
    $stdout = STDOUT
    $stdin = STDIN
    $stderr = STDERR
  end
end
{'fraction_non_alphanumeric': 0.20204313280363223, 'fraction_numerical': 0.009080590238365494, 'mean_word_length': 5.25531914893617, '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': '3994938', 'n_tokens_mistral': 335, 'n_tokens_neox': 327, 'n_words': 53}