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

require 'yaml'

rails_versions = ["5.1.1".."5.1.6", "5.0.2".."5.0.6", "4.2.10"].flat_map {|spec| Array(spec).collect {|v| v.gsub /.0(\d)/, '.\\1'}}
rails_envs = YAML.load(File.read("test/database.yml")).keys

rails_versions.each do |version|
  puts "*"*40
  system "RAILS_VERSION=#{version} bundle update rails" or exit(1)

  rails_envs.each do |env|
    system "RAILS_ENV=#{env} bundle exec rake" or exit(2)
  end
end<commit_msg>make it clearer what targets test_all.rb is currently running against<commit_after>#!/usr/bin/env ruby

require 'yaml'

rails_versions = ["5.1.1".."5.1.6", "5.0.2".."5.0.6", "4.2.10"].flat_map {|spec| Array(spec).collect {|v| v.gsub /.0(\d)/, '.\\1'}}
rails_envs = YAML.load(File.read("test/database.yml")).keys

rails_versions.each do |version|
  puts "*"*40
  system "RAILS_VERSION=#{version} bundle update rails" or exit(1)

  rails_envs.each do |env|
    puts "Rails #{version}, #{env}"
    system "RAILS_ENV=#{env} bundle exec rake" or exit(2)
  end
end
{'fraction_non_alphanumeric': 0.208984375, 'fraction_numerical': 0.04296875, 'mean_word_length': 4.099502487562189, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '855218', 'n_tokens_mistral': 451, 'n_tokens_neox': 424, 'n_words': 92}