<commit_before>require 'rubygems'
require 'rake'
require 'fileutils'
require 'bundler'


desc "task for cruise control"
task :cruise do
  RAILS_ENV = ENV['RAILS_ENV'] = 'test'
  
  `bundle install`
  Bundler.setup(:default, :test)
  
  FileUtils.copy(Dir.pwd+"/config/database.cc.yml", Dir.pwd+"/config/database.yml")      
  
  begin
	Rake::Task["db:drop:all"].invoke
  rescue Exception => e
  	puts "Error dropping the database, probably it doesn't exist:#{e.message}"
  end
  
  Rake::Task["db:create:all"].invoke
  Rake::Task["db:test:load"].invoke
  Rake::Task["db:test:prepare"].invoke
  Rake::Task["seek:seed"].invoke
  Rake::Task["test"].invoke
  
end<commit_msg>changed seek:seed in tests to just include :refresh_controlled_vocabs and :default_tags<commit_after>require 'rubygems'
require 'rake'
require 'fileutils'
require 'bundler'


desc "task for cruise control"
task :cruise do
  RAILS_ENV = ENV['RAILS_ENV'] = 'test'
  
  `bundle install`
  Bundler.setup(:default, :test)
  
  FileUtils.copy(Dir.pwd+"/config/database.cc.yml", Dir.pwd+"/config/database.yml")      
  
  begin
	Rake::Task["db:drop:all"].invoke
  rescue Exception => e
  	puts "Error dropping the database, probably it doesn't exist:#{e.message}"
  end
  
  Rake::Task["db:create:all"].invoke
  Rake::Task["db:test:load"].invoke
  Rake::Task["db:test:prepare"].invoke
  Rake::Task["seek:refresh_controlled_vocabs"].invoke
  Rake::Task["seek:default_tags"].invoke
  Rake::Task["test"].invoke
  
end
{'fraction_non_alphanumeric': 0.15764546684709066, 'fraction_numerical': 0.0, 'mean_word_length': 4.963709677419355, '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': '2603236', 'n_tokens_mistral': 540, 'n_tokens_neox': 531, 'n_words': 101}