<commit_before>(function (document) {
    'use strict';

    document.addEventListener('DOMContentLoaded', function()
    {
        // Rich Text Editor
        var rte = document.querySelectorAll('[data-type=rte]');

        for (var i = 0; i < rte.length; ++i) {
            new RTE(rte[i]);
        }

        // Toggle
        var toggle = document.querySelectorAll('[data-toggle]');

        for (var i = 0; i < toggle.length; ++i) {
            toggle[i].addEventListener('change', function () {
                var cb = document.querySelectorAll('input[type=checkbox][data-toggle-id=' + this.getAttribute('data-toggle') + ']');

                for (var i = 0; i < cb.length; ++i) {
                    cb[i].click();
                }
            });
        }
    });
})(document);<commit_msg>Clean up<commit_after>(function (document) {
    'use strict';

    document.addEventListener('DOMContentLoaded', function()
    {
        // Rich Text Editor
        const rte = document.querySelectorAll('[data-type=rte]');

        for (let i = 0; i < rte.length; ++i) {
            new RTE(rte[i]);
        }

        // Toggle
        const toggles = document.querySelectorAll('[data-toggle]');

        for (let i = 0; i < toggles.length; ++i) {
            let toggle = toggles[i];

            toggle.addEventListener('change', function () {
                const cb = document.querySelectorAll('input[type=checkbox][data-toggle-id=' + this.getAttribute('data-toggle') + ']');

                for (let i = 0; i < cb.length; ++i) {
                    cb[i].checked = toggle.checked;
                }
            });
        }
    });
})(document);
{'fraction_non_alphanumeric': 0.16173808086904043, 'fraction_numerical': 0.003621001810500905, 'mean_word_length': 1.8487972508591066, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5499443', 'n_tokens_mistral': 493, 'n_tokens_neox': 476, 'n_words': 98}