<commit_before>$: << File.expand_path("../../lib", __FILE__)

ENV["EDITOR"] = nil

require 'coveralls'
Coveralls.wear! do
  add_filter 'spec/'
end

require 'bundler/setup'
Bundler.require(:default)<commit_msg>Disable coverage reporting with ruby 2.4.0/2.4.1<commit_after>$: << File.expand_path("../../lib", __FILE__)

ENV["EDITOR"] = nil

# Ruby 2.4.0 and 2.4.1 has a bug with its Coverage module that causes segfaults.
# https://bugs.ruby-lang.org/issues/13305
# 2.4.2 should include this patch.
unless RUBY_VERSION == '2.4.0' || RUBY_VERSION == '2.4.1'
  require 'coveralls'
  Coveralls.wear! do
    add_filter 'spec/'
  end
end

require 'bundler/setup'
Bundler.require(:default)
{'fraction_non_alphanumeric': 0.16740088105726872, 'fraction_numerical': 0.0381791483113069, 'mean_word_length': 4.08955223880597, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1314041', 'n_tokens_mistral': 265, 'n_tokens_neox': 248, 'n_words': 60}