<commit_before>require 'rake'

namespace :tarantula do

  desc 'Run tarantula tests.'
  task :test do
    rm_rf "tmp/tarantula"
    task = Rake::TestTask.new(:tarantula_test) do |t|
      t.libs << 'test'
      t.pattern = 'test/tarantula/**/*_test.rb'
      t.verbose = true
    end

    begin
      Rake::Task[:tarantula_test].invoke
    rescue RuntimeError => e
      puts e.message
    end
  end
  
  desc 'Run tarantula tests and open results in your browser.'
  task :report => :test do<commit_msg>Removed a begin/rescue block that was eating any exception making Rake always exit with a zero status.  This will make running Tarantula work on a continuous integration system (like RunCodeRun!).<commit_after>require 'rake'

namespace :tarantula do

  desc 'Run tarantula tests.'
  task :test do
    rm_rf "tmp/tarantula"
    task = Rake::TestTask.new(:tarantula_test) do |t|
      t.libs << 'test'
      t.pattern = 'test/tarantula/**/*_test.rb'
      t.verbose = true
    end

    Rake::Task[:tarantula_test].invoke
  end
  
  desc 'Run tarantula tests and open results in your browser.'
  task :report => :test do
{'fraction_non_alphanumeric': 0.10258697591436218, 'fraction_numerical': 0.0, 'mean_word_length': 3.050541516245487, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 6, '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': '894305', 'n_tokens_mistral': 373, 'n_tokens_neox': 367, 'n_words': 117}