<commit_before>var CallbackTimer = (function () {
    "use strict";

    function CallbackTimer() {
        this.todos = [];
    }

    CallbackTimer.prototype.update = function () {

        for (var i = this.todos.length - 1; i >= 0; i--) {
            var toAdd = this.todos[i];

            if (toAdd.duration < toAdd.time) {
                toAdd.callback();

                this.todos.splice(i, 1);

            } else {
                toAdd.time++;
            }
        }
    };

    CallbackTimer.prototype.doLater = function (callback, duration) {
        this.todos.push({
            duration: duration,
            time: 0,
            callback: callback
        });
    };

    CallbackTimer.prototype.pause = function () {
        if (this.paused) {
            this.paused.push.apply(this.paused, this.todos.splice(0, this.todos.length));
        } else {<commit_msg>shop tutorial refs #74 #core (cherry picked from commit b985cbc)<commit_after>var CallbackTimer = (function () {
    "use strict";

    function CallbackTimer() {
        this.todos = [];
    }

    CallbackTimer.prototype.update = function () {
        if (this.todos.length == 0)
            return;
        for (var i = this.todos.length - 1; i >= 0; i--) {
            var toAdd = this.todos[i];
            if (!toAdd)
                continue;
            if (toAdd.duration < toAdd.time) {
                toAdd.callback();

                this.todos.splice(i, 1);

            } else {
                toAdd.time++;
            }
        }
    };

    CallbackTimer.prototype.doLater = function (callback, duration) {
        this.todos.push({
            duration: duration,
            time: 0,
            callback: callback
        });
    };

    CallbackTimer.prototype.pause = function () {
        if (this.paused) {
            this.paused.push.apply(this.paused, this.todos.splice(0, this.todos.length));
        } else {
{'fraction_non_alphanumeric': 0.1303896103896104, 'fraction_numerical': 0.008311688311688312, 'mean_word_length': 1.5209424083769634, 'pattern_counts': {'":': 0, '<': 5, '<?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': '522639', 'n_tokens_mistral': 621, 'n_tokens_neox': 575, 'n_words': 112}