<commit_before># Add the gem's lib folder to the load path
$:.unshift File.expand_path("../../lib", __FILE__)

require "bundler/setup"
require "minitest/autorun"
require "minitest/colorize"
require "manamana"<commit_msg>Add helper methods to test_helper.rb<commit_after># Add the gem's lib folder to the load path
$:.unshift File.expand_path("../../lib", __FILE__)

require "bundler/setup"
require "minitest/autorun"
require "minitest/colorize"
require "manamana"

def get_or_create_tmp_dir
  root_dir = get_root_dir
  Dir.mkdir 'tmp' unless root_dir.entries.include? 'tmp'
  Dir.chdir 'tmp'
  Dir.new(Dir.pwd)  
end

def get_root_dir
  unless Dir.new(Dir.pwd).entries.include? 'manamana.gemspec'
    Dir.chdir '..'
  end
  Dir.new(Dir.pwd)  
end
{'fraction_non_alphanumeric': 0.13136729222520108, 'fraction_numerical': 0.0, 'mean_word_length': 4.574626865671642, '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': '4398231', 'n_tokens_mistral': 280, 'n_tokens_neox': 278, 'n_words': 67}