<commit_before>namespace :janitor do
  desc "Find any 'debugger statements"
  task :cleanup do
    exec "rak debugger"
  end<commit_msg>Runs multiple tasks<commit_after>namespace :janitor do
  desc "Find any rogue statements"
  task :cleanup do
    @commands = []
    Rake::Task["janitor:find:all"].invoke
    
    exec @commands.join(";")
  end
  
  namespace :find do
    task :all => [:debugger, :console_log]
    
    desc "Find any 'debugger' statements"
    task :debugger do
      command = "rak -a debugger"
      @commands.nil? ? exec(command) : @commands << command
    end
    
    desc "Find any 'console.log' statements"
    task :console_log do
      command = "rak -a 'console.log' tmp/javascript"
      @commands.nil? ? exec(command) : @commands << command
    end
  end
{'fraction_non_alphanumeric': 0.11323155216284987, 'fraction_numerical': 0.0, 'mean_word_length': 2.99492385786802, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '5132827', 'n_tokens_mistral': 252, 'n_tokens_neox': 247, 'n_words': 75}