<commit_before>/**
 * polyfill / shim plugin for AMD loaders
 *
 * (c) copyright 2011-2012 <NAME> and <NAME>
 *
 * poly is part of the cujo.js family of libraries (http://cujojs.com/)
 *
 * Licensed under the MIT License at:
 * 		http://www.opensource.org/licenses/mit-license.php
 *
 */

define(['exports'], function (exports) {

	exports.version = '0.2.5';

	exports.load = function (def, require, onload, config) {

		function success (module) {
			// check for curl.js's promise
			onload.resolve ? onload.resolve(module) : onload(module);
		}

		function fail (ex) {
			// check for curl.js's promise
			if (onload.reject) {
				onload.reject(ex)
			}
			else {
				throw ex;
			}
		}

		// load module
		require([def], function (module) {

			try {
				// augment native
				if (module['polyfill']) {
					module['polyfill']();
				}<commit_msg>pass AMD config to shim modules<commit_after>/**
 * polyfill / shim plugin for AMD loaders
 *
 * (c) copyright 2011-2012 <NAME> and <NAME>
 *
 * poly is part of the cujo.js family of libraries (http://cujojs.com/)
 *
 * Licensed under the MIT License at:
 * 		http://www.opensource.org/licenses/mit-license.php
 *
 */

define(['exports'], function (exports) {

	exports.version = '0.2.5';

	exports.load = function (def, require, onload, config) {

		function success (module) {
			// check for curl.js's promise
			onload.resolve ? onload.resolve(module) : onload(module);
		}

		function fail (ex) {
			// check for curl.js's promise
			if (onload.reject) {
				onload.reject(ex)
			}
			else {
				throw ex;
			}
		}

		// load module
		require([def], function (module) {

			try {
				// augment native
				if (module['polyfill']) {
					module['polyfill'](config);
				}
{'fraction_non_alphanumeric': 0.15063731170336037, 'fraction_numerical': 0.012746234067207415, 'mean_word_length': 2.803964757709251, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5635121', 'n_tokens_mistral': 689, 'n_tokens_neox': 574, 'n_words': 155}