<commit_before>Elm.Native = Elm.Native || {};
Elm.Native.WebAPI = Elm.Native.WebAPI || {};
Elm.Native.WebAPI.Event = Elm.Native.WebAPI.Event || {};

Elm.Native.WebAPI.Event.make = function (localRuntime) {
    localRuntime.Native = localRuntime.Native || {};
    localRuntime.Native.WebAPI = localRuntime.Native.WebAPI || {};
    localRuntime.Native.WebAPI.Event = localRuntime.Native.WebAPI.Event || {};

    if (!localRuntime.Native.WebAPI.Event.values) {
        var Task = Elm.Native.Task.make(localRuntime);
        var Utils = Elm.Native.Utils.make(localRuntime);
        var NS = Elm.Native.Signal.make(localRuntime);

        function Listener (phase, eventName, responder, target, callback) {
            this.phase = phase;
            this.eventName = eventName;
            this.responder = responder;
            this.target = target;
            this.callback = callback;
        }

        Listener.prototype.addEventListener = function () {
            this.target.addEventListener(this.eventName, this, this.useCapture);
        };

        Listener.prototype.removeEventListener = function () {
            this.target.removeEventListener(this.eventName, this, this.useCapture);
        };

        Listener.prototype.handleEvent = function (evt) {
            var responses = A2(this.responder, evt, this);

            this.applyResponses(evt, responses);

            if (this.callback) {
                // If we have a callback, then we're supposed to stop listening,
                // and use the callback<commit_msg>Actually initialize useCapture for addEventListener() ... woops!<commit_after>Elm.Native = Elm.Native || {};
Elm.Native.WebAPI = Elm.Native.WebAPI || {};
Elm.Native.WebAPI.Event = Elm.Native.WebAPI.Event || {};

Elm.Native.WebAPI.Event.make = function (localRuntime) {
    localRuntime.Native = localRuntime.Native || {};
    localRuntime.Native.WebAPI = localRuntime.Native.WebAPI || {};
    localRuntime.Native.WebAPI.Event = localRuntime.Native.WebAPI.Event || {};

    if (!localRuntime.Native.WebAPI.Event.values) {
        var Task = Elm.Native.Task.make(localRuntime);
        var Utils = Elm.Native.Utils.make(localRuntime);
        var NS = Elm.Native.Signal.make(localRuntime);

        function Listener (phase, eventName, responder, target, callback) {
            this.phase = phase;
            this.eventName = eventName;
            this.responder = responder;
            this.target = target;
            this.callback = callback;

            this.useCapture = (this.phase.ctor == 'Capture');
        }

        Listener.prototype.addEventListener = function () {
            this.target.addEventListener(this.eventName, this, this.useCapture);
        };

        Listener.prototype.removeEventListener = function () {
            this.target.removeEventListener(this.eventName, this, this.useCapture);
        };

        Listener.prototype.handleEvent = function (evt) {
            var responses = A2(this.responder, evt, this);

            this.applyResponses(evt, responses);

            if (this.callback) {
                // If we have a callback, then we're supposed to stop listening,
                // and use the callback
{'fraction_non_alphanumeric': 0.12163852407754847, 'fraction_numerical': 0.0006253908692933083, 'mean_word_length': 2.4583783783783786, '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': '3596528', 'n_tokens_mistral': 889, 'n_tokens_neox': 866, 'n_words': 167}