<commit_before>namespace :test do
  desc 'a little shortcut for ci testing'
  task :ci => ['ci_env', 'db:drop', 'db:create', 'db:test:load', 'spec', 'jasmine_on_travis']
end

task :ci_env do
  ENV['CI'] = 'true'
  ENV['RAILS_ENV'] = 'test'
end

task :jasmine_on_travis do
  ENV['RAILS_ENV'] = 'test'
  require 'jasmine'
  load 'jasmine/tasks/jasmine.rake'
  puts "Starting to run jasmine:ci..."<commit_msg>update rake tasks to precompile assets for jasmine specs.<commit_after>namespace :test do
  desc 'a little shortcut for ci testing'
  task :ci => ['ci_env', 'db:drop', 'db:create', 'db:test:load', 'spec', 'jasmine_on_travis']
  task :jasmine => ['jasmine_on_travis']
end

task :ci_env do
  ENV['CI'] = 'true'
  ENV['RAILS_ENV'] = 'test'
end

task :jasmine_on_travis => ['ci_env', 'assets:clean', 'assets:precompile'] do
  require 'jasmine'
  load 'jasmine/tasks/jasmine.rake'
  puts "Starting to run jasmine:ci..."
{'fraction_non_alphanumeric': 0.1641304347826087, 'fraction_numerical': 0.0, 'mean_word_length': 5.099337748344371, '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': '3662547', 'n_tokens_mistral': 372, 'n_tokens_neox': 353, 'n_words': 93}