<commit_before>/* JavaScript Selector and DOM manipulation library */
(function () {
    /* Initiate using 'Immediately Executing Function' model */
    //"use strict"; well, maybe not

    var _concat = function () {
        /*  this function accepts any number of library objects and 
            concatenates them together by appending arg 1-n to arg 0.  */
        
        if (arguments.length === 0) return null;

        var length = 0;
        for (var i = 0; i < arguments.length; i++) {
            for (var ii = 0; ii < arguments[i].length; ii++) {
                this[length++] = arguments[i][ii];
            }
        }
        
        this.length = length;
    }

    function _lib (selector, parent) {
        /* Avoid clobering the window scope by returning each instance as a new object */
        if (window === this) return new _lib(selector, parent);

        /* set __doc to document if not defined, should only be used by methods */
        parent = parent || document;

        /* set up 'this' as the return object to avoid an excessive amount of return statements */
        this.__islib__ = true;
        this.length    = 0;

        switch (true) {
            /* the function handles input differently based on type */
            case (selector instanceof HTMLElement):
                this[this.length++] = selector;
                break;
            case (selector instanceof String || typeof selector == "string"):
                /*  the selector string could be an element creation string or a DOM selection string,
                    element creation strings must be bracketted by '<' and '>'  */<commit_msg>fixed type checking<commit_after>/* JavaScript Selector and DOM manipulation library */
(function () {
    /* Initiate using 'Immediately Executing Function' model */
    //"use strict"; well, maybe not

    var _concat = function () {
        /*  this function accepts any number of library objects and 
            concatenates them together by appending arg 1-n to arg 0.  */
        
        if (arguments.length === 0) return null;

        var length = 0;
        for (var i = 0; i < arguments.length; i++) {
            for (var ii = 0; ii < arguments[i].length; ii++) {
                this[length++] = arguments[i][ii];
            }
        }
        
        this.length = length;
    }

    function _lib (selector, parent) {
        /* Avoid clobering the window scope by returning each instance as a new object */
        if (window === this) return new _lib(selector, parent);

        /* set __doc to document if not defined, should only be used by methods */
        parent = parent || document;

        /* set up 'this' as the return object to avoid an excessive amount of return statements */
        this.__islib__ = true;
        this.length    = 0;

        switch (true) {
            /* the function handles input differently based on type */
            case (selector instanceof HTMLElement || selector instanceof DocumentFragment || selector instanceof Element):
                this[this.length++] = selector;
                break;
            case (selector instanceof String || typeof selector == "string"):
                /*  the selector string could be an element creation string or a DOM selection string,
                    element creation strings must be bracketted by '<' and '>'  */
{'fraction_non_alphanumeric': 0.09368514675363178, 'fraction_numerical': 0.004150607767565965, 'mean_word_length': 1.967458223394899, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '2431232', 'n_tokens_mistral': 838, 'n_tokens_neox': 797, 'n_words': 352}