<commit_before>#!/usr/bin/ruby

require 'Jamoma'

cpu_total = 0.0;

puts
puts "  TESTING SPAT THRU"
o = TTObject.new "spat.thru"
o.send "test"
err, cpu = o.send "getProcessingBenchmark", 1
cpu_total += cpu

puts
puts "  TESTING SPAT MATRIX"
o = TTObject.new "spat.matrix"<commit_msg>Updating ruby script for spat.test to test spat.snap rather than obsolete and nonexisting classes<commit_after>#!/usr/bin/ruby

require 'Jamoma'

cpu_total = 0.0;

puts
puts "  TESTING SPAT THRU"
o = TTObject.new "spat.snap"
{'fraction_non_alphanumeric': 0.11834319526627218, 'fraction_numerical': 0.009861932938856016, 'mean_word_length': 4.462365591397849, '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': '6857600', 'n_tokens_mistral': 220, 'n_tokens_neox': 201, 'n_words': 55}