<commit_before>require 'RMagick'
include Magick

def writecape(file, outpath)
	blob = file.read
	img = Image.from_blob(blob) {
		self.format = "PNG"
		self.background_color = "transparent"
	}[0]
	img2 = img.extent(64, 32)
	img2.write(outpath)
end<commit_msg>Reenable high-res capes<commit_after>require 'RMagick'
include Magick

def writecape(file, outpath)
	blob = file.read
	img = Image.from_blob(blob) {
		self.format = "PNG"
		self.background_color = "transparent"
	}[0]
	if img.columns >= 64 and img.rows >= 32
		File.copy_stream(file, outpath)
		return
	end
	img2 = img.extent(64, 32)
	img2.write(outpath)
end
{'fraction_non_alphanumeric': 0.12845528455284552, 'fraction_numerical': 0.02926829268292683, 'mean_word_length': 4.651376146788991, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3893612', 'n_tokens_mistral': 262, 'n_tokens_neox': 245, 'n_words': 53}