<commit_before>
// <NAME>
// Ported by <NAME>
// Variation to illustrated ideas for improvements on the API.
// * Deferred, Rejection, Reference instead of defer, reject, ref, and promise.
// * Promise constructor that takes a descriptor and fallback.
// * near has been changed to valueOf, and uses a valueOf operator instead
//   an undefined operator, to reduce special cases.
// * variadic arguments are used internally where applicable (POST arguments
//   have not yet been altered.

/*
 * Copyright 2007-2009 <NAME> under the terms of the MIT X license found
 * at http://www.opensource.org/licenses/mit-license.html
 *
 * ref_send.js version: 2009-05-11
 */

/*whatsupdoc*/

// - the enclosure ensures that this module will function properly both as a
// CommonJS module and as a script in the browser.  In CommonJS, this module
// exports the "Q" API.  In the browser, this script creates a "Q" object in
// global scope.
// - the use of "undefined" on the enclosure is a micro-optmization for
// compression systems, permitting every occurrence of the "undefined" keyword
// bo be replaced with a single-character.
(function (exports, undefined) {
"use strict";

// this provides an enqueue method in browsers, Narwhal, and NodeJS
var enqueue;
try {
    enqueue = require("event-loop").enqueue;
} catch(e) {
    enqueue = function (task) {
        setTimeout(task, 0);
    };
}

var print;
if (typeof require !== "undefined") {
    try {
        print = require("system").print; // CommonJS
    } catch (exception) {
        print = require("sys").puts; // Node
    }
} else if (typeof console !== "undefined") {
    print = function (message) {
        console.log(message);
    };
} else {
    print = function () {}
}

/**
 * Performs a task in a future turn of the event loop.<commit_msg>Module name is actually 'event-queue' not a 'event-loop'.<commit_after>
// Tyler Close
// Ported by <NAME>
// Variation to illustrated ideas for improvements on the API.
// * Deferred, Rejection, Reference instead of defer, reject, ref, and promise.
// * Promise constructor that takes a descriptor and fallback.
// * near has been changed to valueOf, and uses a valueOf operator instead
//   an undefined operator, to reduce special cases.
// * variadic arguments are used internally where applicable (POST arguments
//   have not yet been altered.

/*
 * Copyright 2007-2009 <NAME> under the terms of the MIT X license found
 * at http://www.opensource.org/licenses/mit-license.html
 *
 * ref_send.js version: 2009-05-11
 */

/*whatsupdoc*/

// - the enclosure ensures that this module will function properly both as a
// CommonJS module and as a script in the browser.  In CommonJS, this module
// exports the "Q" API.  In the browser, this script creates a "Q" object in
// global scope.
// - the use of "undefined" on the enclosure is a micro-optmization for
// compression systems, permitting every occurrence of the "undefined" keyword
// bo be replaced with a single-character.
(function (exports, undefined) {
"use strict";

// this provides an enqueue method in browsers, Narwhal, and NodeJS
var enqueue;
try {
    enqueue = require("event-queue").enqueue;
} catch(e) {
    enqueue = function (task) {
        setTimeout(task, 0);
    };
}

var print;
if (typeof require !== "undefined") {
    try {
        print = require("system").print; // CommonJS
    } catch (exception) {
        print = require("sys").puts; // Node
    }
} else if (typeof console !== "undefined") {
    print = function (message) {
        console.log(message);
    };
} else {
    print = function () {}
}

/**
 * Performs a task in a future turn of the event loop.
{'fraction_non_alphanumeric': 0.11357416529830323, 'fraction_numerical': 0.009304871373836891, 'mean_word_length': 3.1439909297052155, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '7399630', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1013, 'n_words': 435}