<commit_before>//     Zepto.js
//     (c) 2010, 2011 <NAME>
//     Zepto.js may be freely distributed under the MIT license.

(function($$) {

    var OBJ_PROTO   = Object.prototype;

    /**
     * Determine the internal JavaScript [[Class]] of an object.
     *
     * @param {object} obj to get the real type of itself.
     * @return {string} with the internal JavaScript [[Class]] of itself.
     */
    $$.toType = toType = function(obj) {
        return OBJ_PROTO.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase();
    }

    /**
     * ?
     */
     $$.mix = mix =  function() {
        var child = child || {};
        for (var arg = 0, len = arguments.length; arg < len; arg++) {
            var argument = arguments[arg];
            for (var prop in argument) {
                if (isOwnProperty(argument, prop)) {
                    child[prop] = argument[prop];
                }
            }
        }
        return child;
    };

    /**
     * ?
     */
    $$.isOwnProperty = isOwnProperty = function(object, property) {
        return OBJ_PROTO.hasOwnProperty.call(object, property);
    };


    /**
     * Realiza un casting del selector para saber si QuoJS puede trabajar o no
     *
     * @param {object} obj to get the real type of itself.
     * @return {string} with the internal JavaScript [[Class]] of itself.
     */
    $$.getDomainSelector = getDomainSelector = function(selector) {
        var domain = null;

        var elementTypes = [1, 9, 11];

        var type = toType(selector);
        if (type === 'string' || type === 'htmldocument') {
            domain = queryDOM(document, selector);
        } else if (type === 'array') {
            domain = _compact(selector);
        } else if (elementTypes.indexOf(selector.nodeType) >= 0 || selector === window) {
            domain = [selector];
            selector = null;
        } else {
            console.error('ERROR: The selector is invalid');
        }

        return domain;
    }

    /**
     * ?
     */
    $$.fn.pluck = function(property) {
        return this.map(function() {
            return this[property];
        });
    }

    var _compact = function(array) {
        return array.filter(function(item) {
            return item !== undefined && item !== null
        });<commit_msg>New selector<commit_after>//     Quo.js
//     (c) 2011, 2012 <NAME> (@soyjavi)
//     Quo.js may be freely distributed under the MIT license.

(function($$) {

    var OBJ_PROTO   = Object.prototype;

    /**
     * Determine the internal JavaScript [[Class]] of an object.
     *
     * @param {object} obj to get the real type of itself.
     * @return {string} with the internal JavaScript [[Class]] of itself.
     */
    $$.toType = toType = function(obj) {
        return OBJ_PROTO.toString.call(obj).match(/\s([a-z|A-Z]+)/)[1].toLowerCase();
    }

    /**
     * ?
     */
     $$.mix = mix =  function() {
        var child = child || {};
        for (var arg = 0, len = arguments.length; arg < len; arg++) {
            var argument = arguments[arg];
            for (var prop in argument) {
                if (isOwnProperty(argument, prop)) {
                    child[prop] = argument[prop];
                }
            }
        }
        return child;
    };

    /**
     * ?
     */
    $$.isOwnProperty = isOwnProperty = function(object, property) {
        return OBJ_PROTO.hasOwnProperty.call(object, property);
    };


    /**
     * Realiza un casting del selector para saber si QuoJS puede trabajar o no
     *
     * @param {object} obj to get the real type of itself.
     * @return {string} with the internal JavaScript [[Class]] of itself.
     */
    $$.getDomainSelector = getDomainSelector = function(selector) {
        var domain = null;

        var elementTypes = [1, 9, 11];

        var type = toType(selector);
        //if (type === 'string' || type === 'htmldocument') {
        if (type === 'string') {
            domain = queryDOM(document, selector);
        } else if (type === 'array') {
            domain = _compact(selector);
        } else if (elementTypes.indexOf(selector.nodeType) >= 0 || selector === window) {
            domain = [selector];
            selector = null;
        } else {
            console.error('ERROR: The selector is invalid');
        }

        return domain;
    }

    /**
     * ?
     */
    $$.fn.pluck = function(property) {
        return this.map(function() {
            return this[property];
        });
    }

    var _compact = function(array) {
        return array.filter(function(item) {
            return item !== undefined && item !== null
        });
{'fraction_non_alphanumeric': 0.14046751018657516, 'fraction_numerical': 0.0064336264207591675, 'mean_word_length': 1.8096385542168674, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1304130', 'n_tokens_mistral': 1361, 'n_tokens_neox': 1312, 'n_words': 369}