<commit_before>/*global window */

var jsonpfu = {},
	jfu = jsonpfu; // shortcut
	
(function (window) {

	// define mah vars
	var	script, log,
		error,
		path = '/',
		libs = {},
		lib_opts = {},
		exception,
		ready_callbacks = {};
	
	/*
	 * Make my life easier while debugging and
	 * avoid issues with IE.
	 */
	if (!('console' in window)) {
		window.console = {
			log: function () { }
		};
	}
	
	log = function (text) {
		if (typeof(text) === 'string') {
			console.log('JSONP-Fu: ' + text);
		} else {
			console.log(text);
		}
	};
	
	error = function (text) {
		console.error('JSONP-Fu: ' + text);
	};
	
	exception = function (text) {
		throw 'JSONP-Fu: ' + text;
	};
	
	/*
	 * Utility functions to include and remove scripts from
	 * the page header.
	 */
	script = (function () {
		var head = document.getElementsByTagName('head')[0],
			scripts = {};
		
		return {
			/*
			 * If given a name, we can store the script object
			 * in a private variable so we can remove the script
			 * from the header later if we want *easily*
			 */
			include: function (url, callback, name) {
				var new_script = document.createElement('script');
				
				if (typeof(callback) !== 'function') {
					callback = function () {};
				}
				
				new_script.type = 'text/javascript';
				new_script.src = url;<commit_msg>Some bug fixes to the core clss<commit_after>/*global window */

var jsonpfu = {},
	jfu = jsonpfu; // shortcut
	
(function (window) {

	// define mah vars
	var	script, log,
		error,
		path = '/',
		libs = {},
		lib_opts = {},
		exception,
		ready_callbacks = {};
	
	/*
	 * Make my life easier while debugging and
	 * avoid issues with IE.
	 */
	if (!('console' in window)) {
		window.console = {
			log: function (msg) { },
			error: function (msg) { }
		};
	}
	
	log = function (text) {
		if (typeof(text) === 'string') {
			console.log('JSONP-Fu: ' + text);
		} else {
			console.log(text);
		}
	};
	
	error = function (text) {
		console.error('JSONP-Fu: ' + text);
	};
	
	exception = function (text) {
		throw 'JSONP-Fu: ' + text;
	};
	
	/*
	 * Utility functions to include and remove scripts from
	 * the page header.
	 */
	script = (function () {
		var head = document.getElementsByTagName('head')[0],
			scripts = {};
		
		return {
			/*
			 * If given a name, we can store the script object
			 * in a private variable so we can remove the script
			 * from the header later if we want *easily*
			 */
			include: function (url, callback, name) {
				var new_script = document.createElement('script');
				
				if (typeof(callback) !== 'function') {
					callback = function () {};
				}
				
				log("loading url " + url);
				
				new_script.type = 'text/javascript';
				new_script.src = url;
{'fraction_non_alphanumeric': 0.15311004784688995, 'fraction_numerical': 0.000736105999263894, 'mean_word_length': 2.5904887714663145, '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': '6470487', 'n_tokens_mistral': 1075, 'n_tokens_neox': 871, 'n_words': 258}