<commit_before>require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'

spec_defaults = lambda do |spec|
  spec.pattern    = 'spec/**/*_spec.rb'
  spec.libs      << 'lib' << 'spec'
  spec.spec_opts << '--options' << 'spec/spec.opts'
end

Spec::Rake::SpecTask.new(:spec, &spec_defaults)

Spec::Rake::SpecTask.new(:rcov) do |rcov|
  spec_defaults.call(rcov)
  rcov.rcov       = true
  rcov.rcov_opts << File.readlines('spec/rcov.opts').map { |line| line.strip }
end

RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
  rcov.threshold = 94.73
end

task :default => :spec<commit_msg>Increased the coverage threshold to 98.78%<commit_after>require 'spec/rake/spectask'
require 'spec/rake/verify_rcov'

spec_defaults = lambda do |spec|
  spec.pattern    = 'spec/**/*_spec.rb'
  spec.libs      << 'lib' << 'spec'
  spec.spec_opts << '--options' << 'spec/spec.opts'
end

Spec::Rake::SpecTask.new(:spec, &spec_defaults)

Spec::Rake::SpecTask.new(:rcov) do |rcov|
  spec_defaults.call(rcov)
  rcov.rcov       = true
  rcov.rcov_opts << File.readlines('spec/rcov.opts').map { |line| line.strip }
end

RCov::VerifyTask.new(:verify_rcov => :rcov) do |rcov|
  rcov.threshold = 98.78
end

task :default => :spec
{'fraction_non_alphanumeric': 0.17593360995850624, 'fraction_numerical': 0.00995850622406639, 'mean_word_length': 4.220779220779221, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 7, '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': '2706603', 'n_tokens_mistral': 480, 'n_tokens_neox': 469, 'n_words': 84}