<commit_before><commit_msg>gen_gallery.py: quick hack to generate HTML gallery of patches<commit_after>#!/usr/bin/python
import os,sys,re

# this sucks

patches = [ x for x in os.listdir('.') if re.match(r'.*\.gif$', x) ]

print '''<style type="text/css">
	div {
		float: left;
		width: 20%;
	}
</style>
'''
print ''.join(['<div><img src="%s" /><br />%s</div>' % (x,x) for x in patches])
{'fraction_non_alphanumeric': 0.2248062015503876, 'fraction_numerical': 0.00516795865633075, 'mean_word_length': 4.243243243243243, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1961495', 'n_tokens_mistral': 158, 'n_tokens_neox': 150, 'n_words': 41}