<commit_before>
require 'test/unit'
require 'tmpdir'

require 'rubygems'
require 'lib/music'

module TestHelper
	PATH_TO_IMAGES = File.join(File.dirname(__FILE__), 'images')
	PATH_TO_FONT   = File.join(File.dirname(__FILE__), '..', 'vendor', 'fonts', 'ttf', 'DejaVuSans.ttf')

	def new_image
		GD2::Image.new(256, 256)
	end

	def load_image(file_name)
	    GD2::Image.load(File.read(File.join(PATH_TO_IMAGES, file_name)))
	end
end<commit_msg>Require YAML.<commit_after>
require 'test/unit'
require 'tmpdir'

require 'rubygems'
require 'yaml'
require 'lib/music'

module TestHelper
	PATH_TO_IMAGES = File.join(File.dirname(__FILE__), 'images')
	PATH_TO_FONT   = File.join(File.dirname(__FILE__), '..', 'vendor', 'fonts', 'ttf', 'DejaVuSans.ttf')

	def new_image
		GD2::Image.new(256, 256)
	end

	def load_image(file_name)
	    GD2::Image.load(File.read(File.join(PATH_TO_IMAGES, file_name)))
	end
end
{'fraction_non_alphanumeric': 0.1546162402669633, 'fraction_numerical': 0.017797552836484983, 'mean_word_length': 5.666666666666667, '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': '725924', 'n_tokens_mistral': 381, 'n_tokens_neox': 355, 'n_words': 64}