<commit_before>require 'simplecov'

if ENV['CIRCLE_ARTIFACTS']
  dir = File.join(ENV['CIRCLE_ARTIFACTS'], "coverage")
  SimpleCov.coverage_dir(dir)
end

require 'coveralls'
SimpleCov.formatters = [
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
  add_filter 'test/'
  add_filter 'app/'
  add_filter 'config/'
  add_filter 'lib/collate.rb'
  add_filter 'lib/collate/engine.rb'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
ENV['RAILS_ENV'] ||= 'test'
require 'collate'
require File.expand_path('../../config/environment', __FILE__)

require 'haml'

require 'rails/test_help'
require 'minitest/pride'
require 'minitest/hell'
require 'pry-rescue/minitest' if ENV['PRY'].present?

require 'minitest/autorun'

require 'active_record'


load File.dirname(__FILE__) + '/schema.rb'

load File.dirname(__FILE__) + '/seeds.rb'<commit_msg>Excluded view extensions from coverage rating.<commit_after>require 'simplecov'

if ENV['CIRCLE_ARTIFACTS']
  dir = File.join(ENV['CIRCLE_ARTIFACTS'], "coverage")
  SimpleCov.coverage_dir(dir)
end

require 'coveralls'
SimpleCov.formatters = [
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
  add_filter 'test/'
  add_filter 'app/'
  add_filter 'config/'
  add_filter 'lib/collate.rb'
  add_filter 'lib/collate/engine.rb'
  add_filter 'lib/collate/action_view_extension.rb'
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
ENV['RAILS_ENV'] ||= 'test'
require 'collate'
require File.expand_path('../../config/environment', __FILE__)

require 'haml'

require 'rails/test_help'
require 'minitest/pride'
require 'minitest/hell'
require 'pry-rescue/minitest' if ENV['PRY'].present?

require 'minitest/autorun'

require 'active_record'


load File.dirname(__FILE__) + '/schema.rb'

load File.dirname(__FILE__) + '/seeds.rb'
{'fraction_non_alphanumeric': 0.14949279231179927, 'fraction_numerical': 0.0, 'mean_word_length': 5.598591549295775, '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': '5589152', 'n_tokens_mistral': 698, 'n_tokens_neox': 691, 'n_words': 124}