<commit_before>"use strict";

var
    esPhinx;

(function ($) {

    $.extend({

        prototype: {

            // <br>|<br\/>
            // text: function () {
            // },

            text: function (text) {
                var
                    first,
                    childNodes;

                if (typeof text === "string") {
                    if (this.any()) {
                        this.each(function (node) {
                            first = esPhinx(node).childNodes().first()
                            if (first instanceof Text) {
                                first.textContent = text;
                            } else {
                                $(node).prepend(text);
                            }
                        });
                    } else {
                        this.push(document.createTextNode(text));
                    }
                    return this;
                } else {
                    text = "";
                    childNodes = this.childNodes();
                    if (childNodes.any()) {
                        childNodes.each(function (node) {
                            if (node instanceof Text) {
                                text += $(node).textContent();
                            }
                        });

                        return text.trim();
                    } else {
                        return "";
                    }
                }
            },

            textContent: function () {
                var
                    tagName = this.tagName(),
                    node = this.asNode();

                if (tagName !== "pre") {
                    return node.textContent.replace(/\n[ \t]*/g, "\n")
                        .replace(/(\n){2,}/g, "\n");
                }

                return node.textContent;
            },

            constructorClass: function () {
                return window[$.type(this.asNode())];
            },

            constructorIs: function (constructor) {
                if (typeof constructor === "string") {
                    constructor = window[constructor];
                }

                if (this.constructorClass() === constructor) {
                    return true;
                }

                return false;
            },

            instanceOf: function (constructor) {
                if (this.asNode() instanceof constructor) {
                    return true;
                }

                return false;
            },

            remove: function (object, delay = 0) {
                var
                    instance = this;

                if (typeof object === "number") {
                    delay = object;
                    object = undefined;
                }

                if (object) {
                    $(object).remove(delay);
                } else {
                    setTimeout(function () {
                        instance.each(function (node) {<commit_msg>adequation remove<commit_after>"use strict";

var
    esPhinx;

(function ($) {

    $.extend({

        prototype: {

            // <br>|<br\/>
            // text: function () {
            // },

            text: function (text) {
                var
                    first,
                    childNodes;

                if (typeof text === "string") {
                    if (this.any()) {
                        this.each(function (node) {
                            first = esPhinx(node).childNodes().first()
                            if (first instanceof Text) {
                                first.textContent = text;
                            } else {
                                $(node).prepend(text);
                            }
                        });
                    } else {
                        this.push(document.createTextNode(text));
                    }
                    return this;
                } else {
                    text = "";
                    childNodes = this.childNodes();
                    if (childNodes.any()) {
                        childNodes.each(function (node) {
                            if (node instanceof Text) {
                                text += $(node).textContent();
                            }
                        });

                        return text.trim();
                    } else {
                        return "";
                    }
                }
            },

            textContent: function () {
                var
                    tagName = this.tagName(),
                    node = this.asNode();

                if (tagName !== "pre") {
                    return node.textContent.replace(/\n[ \t]*/g, "\n")
                        .replace(/(\n){2,}/g, "\n");
                }

                return node.textContent;
            },

            constructorClass: function () {
                return window[$.type(this.asNode())];
            },

            constructorIs: function (constructor) {
                if (typeof constructor === "string") {
                    constructor = window[constructor];
                }

                if (this.constructorClass() === constructor) {
                    return true;
                }

                return false;
            },

            instanceOf: function (constructor) {
                if (this.asNode() instanceof constructor) {
                    return true;
                }

                return false;
            },

            remove: function (object, delay = 0) {
                var
                    mainReference = this;

                if (typeof object === "number") {
                    delay = object;
                    object = undefined;
                }

                if (object) {
                    $(object).remove(delay);
                } else {
                    setTimeout(function () {
                        mainReference.each(function (node) {
{'fraction_non_alphanumeric': 0.10463178940353215, 'fraction_numerical': 0.0006664445184938354, 'mean_word_length': 0.7389918887601391, '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': '1067482', 'n_tokens_mistral': 1354, 'n_tokens_neox': 1202, 'n_words': 257}