<commit_before>/**
 * curl (cujo resource loader)
 *
 * (c) copyright 2011, unscriptable.com / <NAME>
 * Licnsed under the MIT License at:
 * 		http://www.opensource.org/licenses/mit-license.php
 *
 */

(function (global, doc, userCfg) {

	/*
	 * Overall operation:
	 * When a dependency is encountered and it already exists, it's returned.
	 * If it doesn't already exist, it is created and the dependency's script
	 * is loaded. If there is a define call in the loaded script with a name,
	 * it is resolved asap (i.e. as soon as the dependency's dependencies are
	 * resolved). If there is a (single) define call with no name (anonymous),
	 * the resource in the resNet is resolved after the script's onload fires.
	 * IE requires a slightly different tactic. IE marks the readyState of the
	 * currently executing script to 'interactive'. If we can find this script
	 * while a define() is being called, we can match the define() to its name.
	 * Opera, why are you being so difficult!?!?!?!?
	 */


	var
		version = '0.3.1',
		head = doc.head || doc.getElementsByTagName('head')[0],
		// configuration information
		baseUrl,
		pluginPath,
		paths = {},
		// local cache of resource definitions (lightweight promises)
		cache = {},
		// net to catch anonymous define calls' arguments (non-IE browsers)
		argsNet,
		// this is the list of scripts that IE is loading. one of these will
		// be the "interactive" script. too bad IE doesn't send a readystatechange
		// event to tell us exactly which one.
		activeScripts = {},
		// these are always handy :)
		toString = ({}).toString,
		undef,
		aslice = [].slice,
		// RegExp's used later, "cached" here
		pathRe = /(?:\/|^)[^\/$]*/g, // /(?:\/|^).*(?:\/|$)/g,
		absUrlRe = /^\/|^[^:]*:\/\//,
		normalizeRe = /^\.\//,
		findCurlRe = /(.*\/curl)\.js$/,
		readyStates = { 'loaded': 1, 'interactive': 1, 'complete': 1 },
		// reused strings
		errorSuffix = '. Syntax error or name mismatch.' ;

	function isType (obj, type) {
		return toString.call(obj).indexOf('[object ' + type) == 0;
	}

	function extractCfg (cfg) {<commit_msg>bumping the version in anticipation :)<commit_after>/**
 * curl (cujo resource loader)
 *
 * (c) copyright 2011, unscriptable.com / <NAME>
 * Licnsed under the MIT License at:
 * 		http://www.opensource.org/licenses/mit-license.php
 *
 */

(function (global, doc, userCfg) {

	/*
	 * Overall operation:
	 * When a dependency is encountered and it already exists, it's returned.
	 * If it doesn't already exist, it is created and the dependency's script
	 * is loaded. If there is a define call in the loaded script with a name,
	 * it is resolved asap (i.e. as soon as the dependency's dependencies are
	 * resolved). If there is a (single) define call with no name (anonymous),
	 * the resource in the resNet is resolved after the script's onload fires.
	 * IE requires a slightly different tactic. IE marks the readyState of the
	 * currently executing script to 'interactive'. If we can find this script
	 * while a define() is being called, we can match the define() to its name.
	 * Opera, why are you being so difficult!?!?!?!?
	 */


	var
		version = '0.3.2',
		head = doc.head || doc.getElementsByTagName('head')[0],
		// configuration information
		baseUrl,
		pluginPath,
		paths = {},
		// local cache of resource definitions (lightweight promises)
		cache = {},
		// net to catch anonymous define calls' arguments (non-IE browsers)
		argsNet,
		// this is the list of scripts that IE is loading. one of these will
		// be the "interactive" script. too bad IE doesn't send a readystatechange
		// event to tell us exactly which one.
		activeScripts = {},
		// these are always handy :)
		toString = ({}).toString,
		undef,
		aslice = [].slice,
		// RegExp's used later, "cached" here
		pathRe = /(?:\/|^)[^\/$]*/g, // /(?:\/|^).*(?:\/|$)/g,
		absUrlRe = /^\/|^[^:]*:\/\//,
		normalizeRe = /^\.\//,
		findCurlRe = /(.*\/curl)\.js$/,
		readyStates = { 'loaded': 1, 'interactive': 1, 'complete': 1 },
		// reused strings
		errorSuffix = '. Syntax error or name mismatch.' ;

	function isType (obj, type) {
		return toString.call(obj).indexOf('[object ' + type) == 0;
	}

	function extractCfg (cfg) {
{'fraction_non_alphanumeric': 0.14473369954621448, 'fraction_numerical': 0.005732027704800574, 'mean_word_length': 3.1630218687872764, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6107073', 'n_tokens_mistral': 1401, 'n_tokens_neox': 1270, 'n_words': 505}