<commit_before>$$('iframe').forEach(function(iframe) {
	(iframe.onload = function() {	
		var doc = iframe.contentDocument,
		    pre = $('pre', doc),
		    language = /.css$/.test(iframe.src)? 'css' : 'javascript',
		    depth = (iframe.getAttribute('src').match(/\//g) || []).length,
		    pathPrefix = Array(depth + 1).join('../');

		if(!pre) {
			return;
		}
		
		iframe.onload = null;

		pre.className = 'prism language-' + language;
		pre.style.whiteSpace = 'pre';
		pre.style.wordWrap = 'normal';
		
		var height = doc.documentElement.offsetHeight;
		if (height && iframe.offsetHeight > height) {
			iframe.style.height = height + 'px';
		}
		
		var link = {
			tag: 'link',
			properties: {
				rel: 'stylesheet'
			},
			inside: $('head', doc)
		}
		
		link.properties.href = 'style.css';
		$u.element.create(link);
		
		link.properties.href = 'prism.css';
		$u.element.create(link);
		
		link.properties.href = pathPrefix + 'style.css';
		$u.element.create(link);
		
		link.properties.href = pathPrefix + 'prism.css';
		$u.element.create(link);
		
		
		Prism.highlight(pre);
	})();
});

setTimeout(function(){
	var code = $('code', innerHTML);
	code.innerHTML = document.documentElement.innerHTML
		.replace(/&lt;/g, '&amp;lt;')
		.replace(/</g, '&lt;');
	Prism.highlight(code);
},1000);<commit_msg>Enabled web workers for iframed code snippets<commit_after>$$('iframe').forEach(function(iframe) {
	(iframe.onload = function() {	
		var doc = iframe.contentDocument,
		    pre = $('pre', doc),
		    language = /.css$/.test(iframe.src)? 'css' : 'javascript',
		    depth = (iframe.getAttribute('src').match(/\//g) || []).length,
		    pathPrefix = Array(depth + 1).join('../');

		if(!pre) {
			return;
		}
		
		iframe.onload = null;

		pre.className = 'prism language-' + language;
		pre.style.whiteSpace = 'pre';
		pre.style.wordWrap = 'normal';
		
		var height = doc.documentElement.offsetHeight;
		if (height && iframe.offsetHeight > height) {
			iframe.style.height = height + 'px';
		}
		
		var link = {
			tag: 'link',
			properties: {
				rel: 'stylesheet'
			},
			inside: $('head', doc)
		}
		
		link.properties.href = 'style.css';
		$u.element.create(link);
		
		link.properties.href = 'prism.css';
		$u.element.create(link);
		
		link.properties.href = pathPrefix + 'style.css';
		$u.element.create(link);
		
		link.properties.href = pathPrefix + 'prism.css';
		$u.element.create(link);
		
		
		Prism.highlight(pre,true);
	})();
});

setTimeout(function(){
	var code = $('code', innerHTML);
	code.innerHTML = document.documentElement.innerHTML
		.replace(/&lt;/g, '&amp;lt;')
		.replace(/</g, '&lt;');
	Prism.highlight(code);
},1000);
{'fraction_non_alphanumeric': 0.1992467043314501, 'fraction_numerical': 0.003766478342749529, 'mean_word_length': 3.263242375601926, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4676584', 'n_tokens_mistral': 1097, 'n_tokens_neox': 909, 'n_words': 163}