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

GEMS = %w(
  redis-store
  redis-actionpack
  redis-activesupport
  redis-i18n
  redis-rack
  redis-rack-cache
  redis-rails
  redis-sinatra
).freeze

GEMS.each do |rubygem|
  Dir.chdir(rubygem) do
    system 'bundle'
    system 'bundle exec rake'
  end
end<commit_msg>New Travis CI build script<commit_after>#!/usr/bin/env ruby

GEMS = %w(
  redis-store
  redis-actionpack
  redis-activesupport
  redis-i18n
  redis-rack
  redis-rack-cache
  redis-rails
  redis-sinatra
).freeze

builds = GEMS.inject({}) do |result, rubygem|
  Dir.chdir(rubygem) do
    result[rubygem] = system('bundle exec rake')
  end

  result
end

if builds.values.all? { |success| success }
  puts
  puts "Redis Store build SUCCESS"
  exit(true)
else
  puts
  puts "Redis Store build FAILED"
  puts "Failed gems: #{builds.map {|rubygem, success| rubygem if not success }.compact.join(', ')}"
  exit(false)
end
{'fraction_non_alphanumeric': 0.11643090315560392, 'fraction_numerical': 0.004352557127312296, 'mean_word_length': 3.5320197044334973, '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': '4279682', 'n_tokens_mistral': 385, 'n_tokens_neox': 377, 'n_words': 87}