<commit_before>require "standard_deviation"
require "bigdecimal"

RSpec::Matchers.define :be_close_to do |expected|
  match do |actual|
    actual.round(10) == expected.round(10)
  end
end
<commit_msg>Ruby 1.8 float doesn't have round(x).<commit_after>require "standard_deviation"
require "bigdecimal"

RSpec::Matchers.define :be_close_to do |expected|
  match do |actual|
    BigDecimal.new(actual.to_s).round(10) == BigDecimal.new(expected.to_s).round(10)
  end
end

{'fraction_non_alphanumeric': 0.12606837606837606, 'fraction_numerical': 0.021367521367521368, 'mean_word_length': 5.897058823529412, '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': '6136831', 'n_tokens_mistral': 176, 'n_tokens_neox': 167, 'n_words': 35}