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

if ENV['WARNING']
  require 'warning'
  Warning.ignore([:missing_ivar, :method_redefined, :not_reached], File.dirname(File.dirname(__FILE__)))
end

if ENV['COVERAGE']
  require 'coverage'
  require 'simplecov'

  def SimpleCov.roda_coverage(opts = {})
    start do
      enable_coverage :branch if ENV['BRANCH_COVERAGE']<commit_msg>Dedup warnings if that is supported<commit_after>$:.unshift(File.expand_path("../lib", File.dirname(__FILE__)))

if ENV['WARNING']
  require 'warning'
  Warning.ignore([:missing_ivar, :method_redefined, :not_reached], File.dirname(File.dirname(__FILE__)))
  Warning.dedup if Warning.respond_to?(:dedup)
end

if ENV['COVERAGE']
  require 'coverage'
  require 'simplecov'

  def SimpleCov.roda_coverage(opts = {})
    start do
      enable_coverage :branch if ENV['BRANCH_COVERAGE']
{'fraction_non_alphanumeric': 0.14590347923681257, 'fraction_numerical': 0.0, 'mean_word_length': 5.809160305343512, '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': '5858679', 'n_tokens_mistral': 319, 'n_tokens_neox': 314, 'n_words': 57}