<commit_before>$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rspec'
require 'rspec/its'
require 'simplecov'
require 'vcr'
require 'webmock'
require 'marathon'
require 'codeclimate-test-reporter'

CodeClimate::TestReporter.start

VCR.configure do |c|
  c.ignore_hosts 'codeclimate.com'
  c.allow_http_connections_when_no_cassette = false
  c.cassette_library_dir = "fixtures/vcr"
  c.hook_into :webmock
  c.configure_rspec_metadata!
end

RSpec.shared_context "local paths" do
  def project_dir
    File.expand_path(File.join(File.dirname(__FILE__), '..'))
  end
end

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

RSpec.configure do |c|
  c.mock_with :rspec
  c.color = true
  c.formatter = :documentation
  c.tty = true
end
<commit_msg>clean ENV before running tests<commit_after>$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'rspec'
require 'rspec/its'
require 'simplecov'
require 'vcr'
require 'webmock'
require 'marathon'
require 'codeclimate-test-reporter'

%w[MARATHON_URL MARATHON_USER MARATHON_PASSWORD].each do |key|
  ENV.delete(key)
end

CodeClimate::TestReporter.start

VCR.configure do |c|
  c.ignore_hosts 'codeclimate.com'
  c.allow_http_connections_when_no_cassette = false
  c.cassette_library_dir = "fixtures/vcr"
  c.hook_into :webmock
  c.configure_rspec_metadata!
end

RSpec.shared_context "local paths" do
  def project_dir
    File.expand_path(File.join(File.dirname(__FILE__), '..'))
  end
end

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

RSpec.configure do |c|
  c.mock_with :rspec
  c.color = true
  c.formatter = :documentation
  c.tty = true
end

{'fraction_non_alphanumeric': 0.13558318531675548, 'fraction_numerical': 0.0, 'mean_word_length': 5.101083032490974, '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': '7206514', 'n_tokens_mistral': 651, 'n_tokens_neox': 642, 'n_words': 121}