<commit_before>require "rubygems"
require "rbench"
require File.expand_path('../lib/unidecoder', __FILE__)

SAMPLE = "Ja, żołnierz <NAME>, przysięgam służyć wiernie Rzeczypospolitej Polskiej"
p SAMPLE.to_ascii

RBench.run(10_000) do

  column :times<commit_msg>Adds encoding comment for 1.9.<commit_after># encoding: utf-8
require "rubygems"
require "rbench"
require File.expand_path('../lib/unidecoder', __FILE__)

SAMPLE = "Ja, <NAME>, przysięgam służyć wiernie Rzeczypospolitej Polskiej"

RBench.run(10_000) do

  column :times
{'fraction_non_alphanumeric': 0.1169811320754717, 'fraction_numerical': 0.024528301886792454, 'mean_word_length': 6.08, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1473068', 'n_tokens_mistral': 221, 'n_tokens_neox': 217, 'n_words': 47}