<commit_before>/**
 * Loads images, scripts, styles, iframes, videos and audios asynchronously.
 * @param {NodeList} [nodes] - A NodeList of elements. By default, it is the result of `querySelectorAll('[data-async]'.
 * @returns {NodeList}
 */
module = module.exports = function (nodes) {

    nodes = nodes || window.document.querySelectorAll('[data-async]');

    var i = 0,
        len = nodes.length,
        src,
        node;

    for (i; i < len; i += 1) {
        node = nodes[i];
        src = (node.tagName) !== 'LINK' ? 'src' : 'href';
        node[src] = node.getAttribute('data-async');
        node.removeAttribute('data-async');
    }

    return nodes;
};<commit_msg>Converte one nodeElement to Array.<commit_after>/**
 * Loads images, scripts, styles, iframes, videos and audios asynchronously.
 * @param {NodeList} [nodes] - A NodeList of elements. By default, it is the result of `querySelectorAll('[data-async]'.
 * @returns {NodeList}
 */
module = module.exports = function (nodes) {

    nodes = nodes || window.document.querySelectorAll('[data-async]');

    if (nodes.length === undefined) {
         nodes = [nodes];
    }

    var i = 0,
        len = nodes.length,
        src,
        node;

    for (i; i < len; i += 1) {
        node = nodes[i];
        src = (node.tagName) !== 'LINK' ? 'src' : 'href';
        node[src] = node.getAttribute('data-async');
        node.removeAttribute('data-async');
    }

    return nodes;
};
{'fraction_non_alphanumeric': 0.1598079561042524, 'fraction_numerical': 0.0027434842249657062, 'mean_word_length': 2.6658291457286434, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2024727', 'n_tokens_mistral': 466, 'n_tokens_neox': 455, 'n_words': 127}