<commit_before>(function(window){
	
	//fn keeps an internal reference to avoid problems with rewritting the window.highlight
	var fn = window.highlight = function(element, lang){
		  
		if(element instanceof NodeList || element instanceof HTMLCollection)
		{
			for(var i = 0, l = element.length, results = []; i<l; i++)
			{
				try
				{
					retults[i] = fn( element[i], lang );
				}
				catch(e)
				{
					//logs the message, to give a chance to all the other elements
					( console.error || console.log ).call( console, e.message );

					retults[i] = false;
				}
			}
			return results;
		}
		
		if(!(element instanceof Element))
		{
			throw new TypeError( 'The 1st parameter must be an Element or NodeList' );
		}
		
		lang = lang || element.getAttribute('data-lang');
		
		if(!lang)
		{<commit_msg>Added strict mode, fixed spelling mistake in one of the variables.<commit_after>(function(window){
	
	'use strict';
	
	//fn keeps an internal reference to avoid problems with rewritting the window.highlight
	var fn = window.highlight = function(element, lang){
		
		'use strict';
		  
		if(element instanceof NodeList || element instanceof HTMLCollection)
		{
			for(var i = 0, l = element.length, results = []; i<l; i++)
			{
				try
				{
					results[i] = fn( element[i], lang );
				}
				catch(e)
				{
					//logs the message, to give a chance to all the other elements
					( console.error || console.log ).call( console, e.message );

					results[i] = false;
				}
			}
			return results;
		}
		
		if(!(element instanceof Element))
		{
			throw new TypeError( 'The 1st parameter must be an Element or NodeList' );
		}
		
		lang = lang || element.getAttribute('data-lang');
		
		if(!lang)
		{
{'fraction_non_alphanumeric': 0.12273524254821741, 'fraction_numerical': 0.0023378141437755697, 'mean_word_length': 2.8044444444444445, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1016489', 'n_tokens_mistral': 661, 'n_tokens_neox': 511, 'n_words': 170}