<commit_before>import os
import shutil

to_delete = [
	'session_stats',
	'libtorrent_logs*',
	'round_trip_ms.log',
	'dht.log',
	'upnp.log',
	'natpmp.log',
	'bin',
	'test_tmp_*'
]

directories = [
	'examples',
	'test',
	'.',
	'tools'
]

for d in directories:
	for f in to_delete:
		path = os.path.join(d, f)
		print path
		try:
			shutil.rmtree(path)
		except:
			pass

<commit_msg>improve clean.py<commit_after>import os
import shutil
import glob

to_delete = [
	'session_stats',
	'libtorrent_logs*',
	'round_trip_ms.log',
	'dht.log',
	'upnp.log',
	'natpmp.log',
	'bin',
	'test_tmp_*',
	'bjam_build.*.xml'
]

directories = [
	'examples',
	'test',
	'.',
	'tools'
]

for d in directories:
	for f in to_delete:
		path = os.path.join(d, f)
		entries = glob.glob(path)
		for p in entries:
			print p
			try:
				shutil.rmtree(p)
			except:
				pass


{'fraction_non_alphanumeric': 0.16331360946745563, 'fraction_numerical': 0.0, 'mean_word_length': 3.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '7668068', 'n_tokens_mistral': 413, 'n_tokens_neox': 377, 'n_words': 78}