<commit_before>#!/usr/bin/env ruby

require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'

Dir[File.dirname(__FILE__) + '/tasks/*'].each { |t| require(t) }

task :default => 'dm:spec'

task :environment => 'dm:environment'

dm = namespace :dm do

  desc "Setup Environment"
  task :environment do
    require 'environment'
  end
  
  desc "Run specifications"
  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_opts = ["--format", "specdoc", "--colour"]
    t.spec_files = FileList[(ENV['FILES'] || 'spec/**/*_spec.rb')]
    t.rcov = true
    t.rcov_opts = ['--exclude', 'examples']
  end
  
  desc "Run comparison with ActiveRecord"
  task :perf do
    load 'performance.rb'
  end<commit_msg>updated the rcov task to exclude the spec files<commit_after>#!/usr/bin/env ruby

require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'

Dir[File.dirname(__FILE__) + '/tasks/*'].each { |t| require(t) }

task :default => 'dm:spec'

task :environment => 'dm:environment'

dm = namespace :dm do

  desc "Setup Environment"
  task :environment do
    require 'environment'
  end
  
  desc "Run specifications"
  Spec::Rake::SpecTask.new('spec') do |t|
    t.spec_opts = ["--format", "specdoc", "--colour"]
    t.spec_files = FileList[(ENV['FILES'] || 'spec/**/*_spec.rb')]
    unless ENV['NO_RCOV']
      t.rcov = true
      t.rcov_opts = ['--exclude', 'examples,spec']
    end
  end
  
  desc "Run comparison with ActiveRecord"
  task :perf do
    load 'performance.rb'
  end
{'fraction_non_alphanumeric': 0.1592128801431127, 'fraction_numerical': 0.0, 'mean_word_length': 3.9064327485380117, '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': '4761813', 'n_tokens_mistral': 603, 'n_tokens_neox': 579, 'n_words': 144}