<commit_before>if ENV['COVERAGE']
  require 'simplecov'
  require 'simplecov-rcov'
  require 'simplecov-rcov-text'
  require 'codeclimate-test-reporter'

  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::RcovFormatter,
    SimpleCov::Formatter::RcovTextFormatter,
    CodeClimate::TestReporter::Formatter,
  ]
  if defined?(Rails)
    SimpleCov.start 'rails'
  else
    SimpleCov.start
  end
end<commit_msg>Filter spec directory from Code Coverage<commit_after>if ENV['COVERAGE']
  require 'simplecov'
  require 'simplecov-rcov'
  require 'simplecov-rcov-text'
  require 'codeclimate-test-reporter'

  SimpleCov.add_filter '/spec/'
  SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    SimpleCov::Formatter::RcovFormatter,
    SimpleCov::Formatter::RcovTextFormatter,
    CodeClimate::TestReporter::Formatter,
  ]
  if defined?(Rails)
    SimpleCov.start 'rails'
  else
    SimpleCov.start
  end
end
{'fraction_non_alphanumeric': 0.11154219204655674, 'fraction_numerical': 0.0, 'mean_word_length': 5.254545454545455, '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': '2987206', 'n_tokens_mistral': 343, 'n_tokens_neox': 338, 'n_words': 54}