<commit_before>//- JavaScript source code

//- qspec.js ~~
//
//  Jasmine (http://pivotal.github.com/jasmine/) BDD Specs for Quanah, written
//  in an effort to:
//    * Provide a degree of documentation
//    * Learn the damn thing
//    * Provide a way to catch changes made in Quanah's API
//
//  The actually interesting, i.e. expressive of Quanah's use, code takes place
//  in the describe(...) blocks; everything prior is just helpers.
//
//                                                      ~~ (c) DER, 06 Apr 2012
//                                                      update SRW, 01 Jun 2012

(function () {
    'use strict';

 // Pragmas

    /*global
        beforeEach: false,
        console: false,
        describe: false,
        expect: false,
        it: false,
        jasmine: false,
        Q: false,
        runs: false,
        waitsFor: false,
        xit: false
    */

    /*jshint */

    /*jslint indent: 4, maxlen: 80 */

 // Prerequisites

    if (Object.prototype.hasOwnProperty('Q') === false) {
        throw new Error('Method Q is missing.');
    }

 // Declarations

    var getAvars, toType, onerror;

 // Definitions

    getAvars = function (x) {
     // Returns an avar whose val is an array of avars, with one for each
     // of the arguments (or each element of the first argument if it is
     // an array.
        var arg, args, avars, i, temp;
        avars = [];
        args = (toType(x) === 'array') ? x : arguments;
        for (i in args) {
            if (args.hasOwnProperty(i)) {
                arg = args[i];
                temp = Q.avar({val: arg});
                temp.onerror = onerror;
                avars.push(temp);<commit_msg>Removed global reference to `Q` from Jasmine test spec<commit_after>//- JavaScript source code

//- qspec.js ~~
//
//  Jasmine (http://pivotal.github.com/jasmine/) BDD Specs for Quanah, written
//  in an effort to:
//    * Provide a degree of documentation
//    * Learn the damn thing
//    * Provide a way to catch changes made in Quanah's API
//
//  The actually interesting, i.e. expressive of Quanah's use, code takes place
//  in the describe(...) blocks; everything prior is just helpers.
//
//                                                      ~~ (c) DER, 06 Apr 2012
//                                                      update SRW, 31 Jul 2012

(function () {
    'use strict';

 // Pragmas

    /*global
        beforeEach: false,
        console: false,
        describe: false,
        expect: false,
        it: false,
        jasmine: false,
        runs: false,
        waitsFor: false,
        xit: false
    */

    /*jshint */

    /*jslint indent: 4, maxlen: 80 */

 // Prerequisites

    if (Object.prototype.hasOwnProperty('Q') === false) {
        throw new Error('Method Q is missing.');
    }

 // Declarations

    var Q, getAvars, toType, onerror;

 // Definitions

    Q = Object.prototype.Q;

    getAvars = function (x) {
     // Returns an avar whose val is an array of avars, with one for each
     // of the arguments (or each element of the first argument if it is
     // an array.
        var arg, args, avars, i, temp;
        avars = [];
        args = (toType(x) === 'array') ? x : arguments;
        for (i in args) {
            if (args.hasOwnProperty(i)) {
                arg = args[i];
                temp = Q.avar({val: arg});
                temp.onerror = onerror;
                avars.push(temp);
{'fraction_non_alphanumeric': 0.11916497535517541, 'fraction_numerical': 0.008698173383589447, 'mean_word_length': 1.563150074294205, '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': 8, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2837233', 'n_tokens_mistral': 1059, 'n_tokens_neox': 994, 'n_words': 348}