<commit_before>/*
 * MD5
 *
 * Takes a file and callsback with a MD5
 * hash. Spawns a web worker to keep
 * hasing off of the UI thread.
 */
export default function (file, callback) {

	var worker = new Worker('md5worker.js');
	worker.postMessage(file);
	worker.onmessage = function (e) {
		console.log(e.data);
	};

}<commit_msg>changed console to callback<commit_after>/*
 * MD5
 *
 * Takes a file and callsback with a MD5
 * hash. Spawns a web worker to keep
 * hasing off of the UI thread.
 */
export default function (file, callback) {

	var worker = new Worker('md5worker.js');
	worker.postMessage(file);
	worker.onmessage = function (e) {
		callback(e.data);
	};

}
{'fraction_non_alphanumeric': 0.12332838038632987, 'fraction_numerical': 0.008915304606240713, 'mean_word_length': 3.6482758620689655, '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': '2454038', 'n_tokens_mistral': 234, 'n_tokens_neox': 228, 'n_words': 77}