<commit_before>/*
==================================================================================================
  Core - JavaScript Foundation
  Copyright 2010-2011 <NAME>
==================================================================================================
*/

/**
 * Just a dump placeholder for environments without "console" object.
 */
(function(global)
{
	var methods = "log,clear,assert,debug,error,warn,info,trace".split(",");
	var console = global.console || (global.console = {});
	var log = console.log || new Function;

	for (var i=0, l=methods.length; i<l; i++)
	{
		var name = methods[i];
		if (!console[name]) {
			console[name] = log;
		}
	}
})(this);<commit_msg>Reduced number of emulated methods. Better assert() emulation.<commit_after>/*
==================================================================================================
  Core - JavaScript Foundation
  Copyright 2010-2011 <NAME>
==================================================================================================
*/

/**
 * Just a dump placeholder for environments without "console" object.
 *
 * Emulates just the basic logging methods with an empty function. Maps missing functions
 * to `console.log` automatically.
 */
(function(global)
{
	var methods = "log,debug,error,warn,info".split(",");
	var console = global.console || (global.console = {});
	var log = console.log || new Function;

	for (var i=0, l=methods.length; i<l; i++)
	{
		var name = methods[i];
		if (!console[name]) {
			console[name] = log;
		}
	}
	
	if (!console.assert) 
	{
		console.assert = function(expression) 
		{
			if (!expression) {
				throw new Error(Array.prototype.slice.call(arguments, 1).join(" "));
			}
		}
	}
})(this);
{'fraction_non_alphanumeric': 0.353757225433526, 'fraction_numerical': 0.010982658959537572, 'mean_word_length': 5.226618705035971, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4967199', 'n_tokens_mistral': 508, 'n_tokens_neox': 445, 'n_words': 118}