<commit_before>
puts "\n\n\n== in memory"
puts
puts `ruby test/unit/storage.rb`

puts "\n\n\n== fs_storage"
puts
puts `ruby test/unit/storage.rb --fs`

puts "\n\n\n== couch_storage"
puts
puts `ruby -r patron -r yajl test/unit/storage.rb --couch`

puts "\n\n\n== dm_storage"
puts
puts `ruby -r yajl test/unit/storage.rb --dm`

puts "\n\n\n== redis_storage"
puts
puts `ruby -r yajl test/unit/storage.rb --redis`
<commit_msg>test/unit/storages.rb now OK with 1.9.x and 1.8.x<commit_after>
dashdash = ''
dashdash = '--' unless `ruby -v`.match(/^ruby 1\.9\./)

puts "\n\n\n== in memory"
puts
puts `ruby test/unit/storage.rb`

puts "\n\n\n== fs"
puts
puts `ruby test/unit/storage.rb #{dashdash} --fs`

puts "\n\n\n== ruote-couch"
puts
#puts `ruby -r patron -r yajl test/unit/storage.rb #{dashdash} --couch`
puts `ruby test/unit/storage.rb #{dashdash} --couch`

puts "\n\n\n== ruote-dm"
puts
#puts `ruby -r yajl test/unit/storage.rb #{dashdash} --dm`
puts `ruby test/unit/storage.rb #{dashdash} --dm`

puts "\n\n\n== ruote-redis"
puts
#puts `ruby -r yajl test/unit/storage.rb #{dashdash} --redis`
puts `ruby test/unit/storage.rb #{dashdash} --redis`

puts "\n\n\n== ruote-beanstalk"
puts
#puts `ruby -r yajl test/unit/storage.rb #{dashdash} --beanstalk`
puts `ruby test/unit/storage.rb #{dashdash} --beanstalk`

{'fraction_non_alphanumeric': 0.19631901840490798, 'fraction_numerical': 0.004601226993865031, 'mean_word_length': 3.438775510204082, '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': '1838662', 'n_tokens_mistral': 605, 'n_tokens_neox': 579, 'n_words': 145}