<commit_before>HERE = File.dirname(__FILE__) unless defined?(HERE)
ROOT = File.join(HERE, "..") unless defined?(ROOT)

$LOAD_PATH << File.join(ROOT, "lib")
$LOAD_PATH << File.join(HERE, "support")

if ENV["YAMLER"] && defined?(YAML::ENGINE)
  require "yaml"
  YAML::ENGINE.yamler = ENV["YAMLER"]
  puts "Running specs in Ruby #{RUBY_VERSION} with '#{YAML::ENGINE.yamler}' YAML engine."
end

require "safe_yaml"
require "ostruct"
require "hashie"
require "heredoc_unindent"

require File.join(HERE, "resolver_specs")<commit_msg>fixed a small mistake in the script to run specs for all (well, most) supported Ruby versions<commit_after>HERE = File.dirname(__FILE__) unless defined?(HERE)
ROOT = File.join(HERE, "..") unless defined?(ROOT)

$LOAD_PATH << File.join(ROOT, "lib")
$LOAD_PATH << File.join(HERE, "support")

require "yaml"
if ENV["YAMLER"] && defined?(YAML::ENGINE)
  YAML::ENGINE.yamler = ENV["YAMLER"]
  puts "Running specs in Ruby #{RUBY_VERSION} with '#{YAML::ENGINE.yamler}' YAML engine."
end

require "safe_yaml"
require "ostruct"
require "hashie"
require "heredoc_unindent"

require File.join(HERE, "resolver_specs")
{'fraction_non_alphanumeric': 0.1598939929328622, 'fraction_numerical': 0.0, 'mean_word_length': 6.405228758169935, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5588888', 'n_tokens_mistral': 426, 'n_tokens_neox': 416, 'n_words': 101}