<commit_before>Seed({
		name : "Mold.Lib.Worker",
		dna : "class",
		include : [
			"Mold.Lib.Event",
			"Mold.Lib.Info"
		]
	},
	function(workerFunction, name, test){
		
		Mold.mixin(this, new Mold.Lib.Event(this));
		var that = this;

		
		
		
		if(Mold.Lib.Info.isSupported("blob") && Mold.Lib.Info.isSupported("url")){
			var workerString = workerFunction.toString();
			workerString = "onmessage = "+workerString;
	 		var workerBlob = new Blob([workerString], { type : 'text/javascript' } );
			var workerURL = URL.createObjectURL(workerBlob);
			var worker = new Worker(workerURL);
			worker.onmessage = function(e) {

				that.trigger("message", e.data);
			};
			
		}<commit_msg>fix on worker<commit_after>Seed({
		name : "Mold.Lib.Worker",
		dna : "class",
		include : [
			"Mold.Lib.Event",
			"Mold.Lib.Info"
		],
		test : "Mold.Test.Lib.Worker"
	},
	function(workerFunction){
		
		Mold.mixin(this, new Mold.Lib.Event(this));
		var that = this;

		
		if(Mold.Lib.Info.isSupported("blob") && Mold.Lib.Info.isSupported("url")){
			var workerString = workerFunction.toString();
			workerString = "onmessage = function(incoming) { postMessage(" +workerString+"(incoming.data)); }";
	 		var workerBlob = new Blob([workerString], { type : 'text/javascript' } );
			var workerURL = URL.createObjectURL(workerBlob);
			var worker = new Worker(workerURL);
			worker.onmessage = function(e) {
				console.log("on message", e)
				that.trigger("message", e.data);
			};
			
		}else{

		}
{'fraction_non_alphanumeric': 0.1694687289845326, 'fraction_numerical': 0.0, 'mean_word_length': 3.606811145510836, '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': '1155812', 'n_tokens_mistral': 609, 'n_tokens_neox': 515, 'n_words': 92}