<commit_before>/*
 * jQuery Highlight plugin
 *
 */

jQuery.extend({
    highlight: function (node, patterns, classes, nodeName) {
        if (node.nodeType === 3) {
            for (var i = 0 ; i < patterns.length; i++) {
                var match = node.data.match(patterns[i]);
                if (match) {
                    var highlight = document.createElement(nodeName || 'span');

                    highlight.className = classes[i];

                    var wordNode = node.splitText(match.index);

                    wordNode.splitText(match[0].length);

                    var wordClone = wordNode.cloneNode(true);

                    highlight.appendChild(wordClone);
                    wordNode.parentNode.replaceChild(highlight, wordNode);
                }
            }

            return 1; //skip added node in parent
        } else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
                !/(script|style)/i.test(node.tagName) && // ignore script and style nodes
                !(node.tagName === nodeName.toUpperCase() && $.inArray(className, classes) > -1)) { // skip if already highlighted
            for (var j = 0; j < node.childNodes.length; j++) {
                j += $.highlight(node.childNodes[j], patterns, classes, nodeName);
            }
        }
        return 0;
    }
});

+function ($) {
    'use strict';<commit_msg>Fix node className undefined error.<commit_after>/*
 * jQuery Highlight plugin
 *
 */

jQuery.extend({
    highlight: function (node, patterns, classes, nodeName) {
        if (node.nodeType === 3) {
            for (var i = 0 ; i < patterns.length; i++) {
                var match = node.data.match(patterns[i]);
                if (match) {
                    var highlight = document.createElement(nodeName || 'span');

                    highlight.className = classes[i];

                    var wordNode = node.splitText(match.index);

                    wordNode.splitText(match[0].length);

                    var wordClone = wordNode.cloneNode(true);

                    highlight.appendChild(wordClone);
                    wordNode.parentNode.replaceChild(highlight, wordNode);
                }
            }

            return 1; //skip added node in parent
        } else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children
                !/(script|style)/i.test(node.tagName) && // ignore script and style nodes
                !(node.tagName === nodeName.toUpperCase() && $.inArray(node.className, classes) > -1)) { // skip if already highlighted
            for (var j = 0; j < node.childNodes.length; j++) {
                j += $.highlight(node.childNodes[j], patterns, classes, nodeName);
            }
        }
        return 0;
    }
});

+function ($) {
    'use strict';
{'fraction_non_alphanumeric': 0.13038906414300735, 'fraction_numerical': 0.005608131791097091, 'mean_word_length': 1.7155090390104661, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3263060', 'n_tokens_mistral': 777, 'n_tokens_neox': 728, 'n_words': 187}