<commit_before># coding: utf-8

require "simplecov"
require "coveralls"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]

SimpleCov.start do
  add_filter "/spec/"
  minimum_coverage 80
end

require "http"
require "rspec/its"
require "support/capture_warning"

# Are we in a flaky environment?
def flaky_env?
  defined?(JRUBY_VERSION) && ENV["CI"]
end

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4. It makes the `description`
    # and `failure_message` of custom matchers include text for helper methods
    # defined using `chain`, e.g.:<commit_msg>Use new SimpleCov::Formatter::MultiFormatter API<commit_after># coding: utf-8

require "simplecov"
require "coveralls"

SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
])

SimpleCov.start do
  add_filter "/spec/"
  minimum_coverage 80
end

require "http"
require "rspec/its"
require "support/capture_warning"

# Are we in a flaky environment?
def flaky_env?
  defined?(JRUBY_VERSION) && ENV["CI"]
end

# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
RSpec.configure do |config|
  config.expect_with :rspec do |expectations|
    # This option will default to `true` in RSpec 4. It makes the `description`
    # and `failure_message` of custom matchers include text for helper methods
    # defined using `chain`, e.g.:
{'fraction_non_alphanumeric': 0.1111111111111111, 'fraction_numerical': 0.004965859714463066, 'mean_word_length': 5.129277566539924, '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': '5858665', 'n_tokens_mistral': 529, 'n_tokens_neox': 516, 'n_words': 144}