<commit_before>$TESTING=true
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'active_record'
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
load 'db/schema.rb'

require 'rspec/its'
require 'generator_spec'
require 'settingify'
require 'pry-nav'

if ENV['TRAVIS'] == true
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
end

Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec

  config.run_all_when_everything_filtered = true

  config.order = "random"
end

<commit_msg>Fixed condition for checking TRAVIS env<commit_after>$TESTING=true
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'active_record'
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
load 'db/schema.rb'

require 'rspec/its'
require 'generator_spec'
require 'settingify'
require 'pry-nav'

if ENV['TRAVIS']
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
end

Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }

RSpec.configure do |config|
  config.mock_with :rspec

  config.run_all_when_everything_filtered = true

  config.order = "random"
end


{'fraction_non_alphanumeric': 0.1484375, 'fraction_numerical': 0.0015625, 'mean_word_length': 5.961956521739131, 'pattern_counts': {'":': 2, '<': 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': '4077349', 'n_tokens_mistral': 456, 'n_tokens_neox': 441, 'n_words': 90}