<commit_before>desc "Task to do some preparations for CruiseControl"
task :prepare do
  RAILS_ENV = 'test'
end

desc "Task for CruiseControl.rb"
task :cruise => ["prepare", "db:test:clone", "spec"] do<commit_msg>make cruise task show code coverage<commit_after>desc "Task to do some preparations for CruiseControl"
task :prepare do
  RAILS_ENV = 'test'
end

desc "Task for CruiseControl.rb"
task :cruise => ["prepare", "db:test:clone", "spec:rcov"] do
  out = ENV['CC_BUILD_ARTIFACTS']
  mkdir_p out unless File.directory? out if out

  # show code coverage in results
  mv 'coverage', "#{out}/coverage" if out
{'fraction_non_alphanumeric': 0.1180327868852459, 'fraction_numerical': 0.0, 'mean_word_length': 5.364583333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '76365', 'n_tokens_mistral': 211, 'n_tokens_neox': 198, 'n_words': 71}