<commit_before>/*
 *
 * A logging function
 * Please be aware that this does not output the correct line
 *
 */

// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/

window.log = function f() {
	log.history = log.history || [];
	log.history.push(arguments);
	if (this.console) {
		var args = arguments;
		var newarr;

		try {
			args.callee = f.caller;
		} catch(e) {

		}

		newarr = [].slice.call(args);

		if (typeof console.log === 'object') {
			log.apply.call(console.log, console, newarr);
		} else {
			console.log.apply(console, newarr);
		}
	}
};

// make it safe to use console.log always

(function(a) {
	function b() {}
	var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn";
	var d;
	for (c = c.split(","); !!(d = c.pop());) {
		a[d] = a[d] || b;
	}
})(function() {
	try {
		console.log();
		return window.console;
	} catch(a) {
		return (window.console = {});
	}
}());

// place any jQuery/helper plugins in here, instead of separate, slower script files.<commit_msg>Update logging-function to reflect HTML5BP's<commit_after>/*
 *
 * A logging function
 * Please be aware that this does not output the correct line
 *
 */

// Avoid `console` errors in browsers that lack a console
if (!(window.console && console.log)) {
	(function() {
		var noop = function() {};
		var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'markTimeline', 'profile', 'profileEnd', 'markTimeline', 'table', 'time', 'timeEnd', 'timeStamp', 'trace', 'warn'];
		var length = methods.length;
		var console = window.console = {};
		while (length--) {
			console[methods[length]] = noop;
		}
	}());
}
{'fraction_non_alphanumeric': 0.18433931484502447, 'fraction_numerical': 0.0027188689505165853, 'mean_word_length': 4.013623978201635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5170659', 'n_tokens_mistral': 663, 'n_tokens_neox': 626, 'n_words': 162}