<commit_before>require "active_record"
require "sqlite3"
require "gastropod"

spec          = Gem::Specification.find_by_name("gastropod")
gem_root      = spec.gem_dir
db_path       = File.join(gem_root, "spec", "db")
db_file_name  = File.join(db_path, "activerecord.db")

Dir.mkdir db_path unless Dir.exists? db_path
SQLite3::Database.new db_path unless File.exist?(db_path)<commit_msg>Simplify fixing the test suite by adding /spec/db dir<commit_after>require "active_record"
require "gastropod"
{'fraction_non_alphanumeric': 0.11267605633802817, 'fraction_numerical': 0.004024144869215292, 'mean_word_length': 5.64, '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': '6676272', 'n_tokens_mistral': 178, 'n_tokens_neox': 172, 'n_words': 37}