<commit_before>function initCounter() {
    "use strict";
    glow.count = {};

    var el = document.getElementById('bigcounter').firstChild;

    glow.count.playNext = function() {
        var response = glow.data.count.next,
            data = response.data,
            target = data[data.length - 1][1],
            current = data[data.length - 2][1],
            delta = 60 * (target - current);
        dbg('counter');
        dbg(current, target, delta);

        function drawCounter(i) {
            el.textContent = numberfmt(parseInt(current + i * delta));
        }

        vast.animate.over(response.interval * 1000, drawCounter, this,
                          {after: glow.count.playNext});
        glow.fetchCount(response.interval);
    };
}
<commit_msg>Revert "fake a fast counter"<commit_after>function initCounter() {
    "use strict";
    glow.count = {};

    var el = document.getElementById('bigcounter').firstChild;

    glow.count.playNext = function() {
        var response = glow.data.count.next,
            data = response.data,
            target = data[data.length - 1][1],
            current = data[data.length - 2][1],
            delta = target - current;
        dbg('counter');
        dbg(current, target, delta);

        function drawCounter(i) {
            el.textContent = numberfmt(parseInt(current + i * delta));
        }

        vast.animate.over(response.interval * 1000, drawCounter, this,
                          {after: glow.count.playNext});
        glow.fetchCount(response.interval);
    };
}

{'fraction_non_alphanumeric': 0.13320463320463322, 'fraction_numerical': 0.011583011583011582, 'mean_word_length': 2.0550098231827114, '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': '1497959', 'n_tokens_mistral': 450, 'n_tokens_neox': 429, 'n_words': 87}