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

ENV['PRX_HOST'] = 'www.prx.org'
ENV['CMS_HOST'] = 'cms.prx.org'
ENV['META_HOST'] = 'meta.prx.org'

require 'simplecov' if !ENV['GUARD'] || ENV['GUARD_COVERAGE']

ENV['action_dispatch.logger'] = Rails.logger

if ENV['TRAVIS']
  require 'codeclimate-test-reporter'
  require 'coveralls'
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov.formatter,
    Coveralls::SimpleCov::Formatter,
    CodeClimate::TestReporter::Formatter
  ]
end

require File.expand_path("../../config/environment", __FILE__)

require 'rails/test_help'
require 'factory_girl'
require 'minitest/reporters'
require 'minitest/autorun'
require 'minitest/spec'
require 'minitest/pride'
require 'announce'
require 'announce/testing'<commit_msg>Check for rails, in case running tests directly through 'ruby -I /test' syntax<commit_after>ENV['RAILS_ENV'] = 'test'

ENV['PRX_HOST'] = 'www.prx.org'
ENV['CMS_HOST'] = 'cms.prx.org'
ENV['META_HOST'] = 'meta.prx.org'

require 'simplecov' if !ENV['GUARD'] || ENV['GUARD_COVERAGE']

ENV['action_dispatch.logger'] = Rails.logger if defined? Rails

if ENV['TRAVIS']
  require 'codeclimate-test-reporter'
  require 'coveralls'
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov.formatter,
    Coveralls::SimpleCov::Formatter,
    CodeClimate::TestReporter::Formatter
  ]
end

require File.expand_path("../../config/environment", __FILE__)

require 'rails/test_help'
require 'factory_girl'
require 'minitest/reporters'
require 'minitest/autorun'
require 'minitest/spec'
require 'minitest/pride'
require 'announce'
require 'announce/testing'
{'fraction_non_alphanumeric': 0.15168195718654434, 'fraction_numerical': 0.0, 'mean_word_length': 6.175438596491228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3176208', 'n_tokens_mistral': 597, 'n_tokens_neox': 581, 'n_words': 106}