<commit_before>gpf.require.define({}, function () {
    "use strict";

    function _addEventsListener (selector, eventName, handler) {
        [].slice.call(document.querySelectorAll(selector)).forEach(function (oElement) {
            oElement.addEventListener(eventName, handler);
        });
    }

    var api = {

        addEventsListener: function (events) {
            Object.keys(events).forEach(function (eventKey) {
                var eventParts = eventKey.split("@"),
                    selector = eventParts[0],
                    eventName = eventParts[1],
                    handler = events[eventKey];
                if (selector) {
                    _addEventsListener(selector, eventName, handler);
                } else {
                    document.addEventListener(eventName, handler);
                }
            });
        },

        clear: function (element) {
            element.innerHTML = "";
        }

    };

    ["div", "span", "li", "ul"].forEach(function (tagName) {
        api[tagName] = gpf.web.createTagFunction(tagName);
    });

    return api;

});<commit_msg>Adds other tags (#183)<commit_after>gpf.require.define({}, function () {
    "use strict";

    function _addEventsListener (selector, eventName, handler) {
        [].slice.call(document.querySelectorAll(selector)).forEach(function (oElement) {
            oElement.addEventListener(eventName, handler);
        });
    }

    var api = {

        addEventsListener: function (events) {
            Object.keys(events).forEach(function (eventKey) {
                var eventParts = eventKey.split("@"),
                    selector = eventParts[0],
                    eventName = eventParts[1],
                    handler = events[eventKey];
                if (selector) {
                    _addEventsListener(selector, eventName, handler);
                } else {
                    document.addEventListener(eventName, handler);
                }
            });
        },

        clear: function (element) {
            element.innerHTML = "";
        }

    };

    [
        "div",
        "span",
        "li",
        "ul",
        "label",
        "select",
        "optgroup",
        "option"

    ].forEach(function (tagName) {
        api[tagName] = gpf.web.createTagFunction(tagName);
    });

    return api;

});
{'fraction_non_alphanumeric': 0.12792180195495112, 'fraction_numerical': 0.0029749256268593286, 'mean_word_length': 1.6719636776390465, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1003743', 'n_tokens_mistral': 630, 'n_tokens_neox': 594, 'n_words': 108}