<commit_before>desc 'clean all examples'
task :clean_all do
  run_rakefiles("rake clobber")
end

desc 'build all examples'
task :all_examples do
  run_rakefiles("rake")
end

task :default => :all_examples

def run_rakefiles(c)
  Dir.glob('**/Rakefile.rb').each do |p|
    dir = File.dirname(p)
    cd(dir,:verbose => false)  do
      sh "#{c}"
    end
  end<commit_msg>corrected automatic execution of all examples (so we do not end up calling ourself recursively)<commit_after>desc 'clean all examples'
task :clean_all do
  run_rakefiles("rake clobber")
end

desc 'build all examples'
task :all_examples do
  run_rakefiles("rake")
end

task :default => :all_examples

def run_rakefiles(c)
  Dir.glob('**/Rakefile.rb').each do |p|
    dir = File.dirname(p)
    if (dir != ".")
      FileUtils.cd(dir,:verbose => false)  do
        sh "#{c}"
      end
    end
  end
{'fraction_non_alphanumeric': 0.12731481481481483, 'fraction_numerical': 0.0, 'mean_word_length': 3.7527472527472527, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6496202', 'n_tokens_mistral': 309, 'n_tokens_neox': 303, 'n_words': 88}