<commit_before>function bcbCountdown(element, config, theme) {
    var themes = 12, pressed = [], unlocked = false;
    (function init() {
        try {
            theme = theme == "0" ? 0 : parseInt(theme || '') || -1;
            var event = (Array.isArray(config) ? config : config.split("\n")).map(function (line) {
                var parts = line.split('~');
                return { time: new Date(parts.pop()), title: parts.shift(), subtitle: parts.join('~') };
            }).filter(function (event) { return event.time.valueOf() > Date.now(); })[0];
            if (!event) return $(element).slideUp();
            var $timeLeft = $('<div>').addClass('timeLeft');
            if (theme < 0 || theme >= themes) theme = Math.floor(Math.random() * themes);
            $(element).addClass('bcbCountdown').append($('<div>').addClass('title').append($('<span>').text(event.title || "New Episode")))
                .append($('<div>').addClass('subtitle').append($('<span>').text(event.subtitle || "The Feels Awaken")))
                .append($timeLeft).addClass('theme' + theme);
            function updateTime() {
                var duration = (event.time.valueOf() - Date.now()) / 1000;
                if (duration < 0) {
                    clearInterval(interval);
                    $(element).find('.title, .subtitle, .timeLeft').hide();
                    return bcbCountdown(element, config);
                }
                var timeSpans = [{ i: 24, d: "Days" }, { i: 60, d: "Hours" }, { i: 60, d: "Minutes" }, { i: 1, d: "Seconds" }].map(function (num, base, segments) {
                    for (var d = duration, i = base; i < segments.length; i++) d /= segments[i].i;
                    if (base) d %= segments[base - 1].i;
                    return $("<span>").attr('data-label', num.d).html((d < 10 ? "0" : "") + Math.floor(d));
                });
                if ($timeLeft.find("span").length < timeSpans.length)
                    timeSpans.forEach(function (e, i) {
                        if (i) $timeLeft.append(":");
                        $timeLeft.append(e);
                    });
                else
                    $timeLeft.find("span").each(function (i) {
                        $(this).html($(timeSpans[i]).html());
                    });
            }
            updateTime();

            function squishToFit($span) {
                var fontSize = parseFloat($span.css('font-size'));
                if ($span.width() > $timeLeft.width()) {
                    fontSize *= .9;
                    $span.css({
                        'font-size': fontSize,
                        'vertical-align': 'top',
                    });
                    setTimeout(function () {
                        squishToFit($span);
                    }, 0);
                }
            }
            squishToFit($(element).find('.title span'));
            squishToFit($(element).find('.subtitle span'));

            var interval = setInterval(updateTime, 1000);
            
        }
        catch (e) {
            if (typeof (debug) !== "undefined" && debug) {
                console.error(e);
            }
        }
    })();

    $(window).keydown(function (e) {
                pressed.push(String.fromCharCode(e.which).toUpperCase());
                if (pressed.length > 5) pressed.shift();
                if (pressed.join('') == "SUGAR") unlocked = true;
                if (pressed.join('') == "RIDOT") sneaky(1);
                if (pressed.join('') == "BEARS") bears(1);
                if (unlocked && [37, 39].indexOf(e.which) >= 0) {
                    $(element).removeClass("theme" + theme);
                    theme += e.which - 38;
                    theme %= themes;
                    while (theme < 0) theme += themes;
                    $(element).addClass("theme" + theme);
                }
            });

    $('<a>').addClass('info').attr('title', "Inspired by Doafhat's countdown designs").attr('href', "http://doafhat.com/post/135588250298/all-the-edited-stevenbomb-4-countdowns-for-your").attr('target', '_blank').append($('<i>').addClass('fa fa-info-circle')).appendTo(element);

    var numBears = 0;  
    function bears(skipNum) {
        if ((numBears += skipNum) > 3)
            $(document.head).append("<link rel='stylesheet' href='//thatswhatyouget.github.io/bcb-widgets/eggs/wbb.css'/>");
    }

    var peridinkles = 0;
    function sneaky(skipNum) {
        if ($('#nav-bar .peridot-egg, #nav-bar .peridot-peek').is('*')) return;
        if ((peridinkles += skipNum) < 3) return;
        peridinkles = 0;
        $('#nav-bar').addClass('egg');
        (function () {
            return $.when(
                (function () {
                    var d = $.Deferred();
                    $("<img>").attr('src', 'http://i.imgur.com/mN9KVNe.png').on('load', d.resolve);
                    return d;
                })(),
                (function () {
                    var d = $.Deferred();
                    $("<img>").attr('src', 'http://i.imgur.com/wvghkvg.png').on('load', d.resolve);
                    return d;
                })());
        })().then(function () {
            var $peek = $("<div class='peridot-peek'>").appendTo($("#nav-bar")).hide().slideDown(1000);
            function lookAway() {
                if ($(window).scrollTop() > 600) {<commit_msg>Fixed wbb activation<commit_after>function bcbCountdown(element, config, theme) {
    var themes = 12, pressed = [], unlocked = false;
    (function init() {
        try {
            theme = theme == "0" ? 0 : parseInt(theme || '') || -1;
            var event = (Array.isArray(config) ? config : config.split("\n")).map(function (line) {
                var parts = line.split('~');
                return { time: new Date(parts.pop()), title: parts.shift(), subtitle: parts.join('~') };
            }).filter(function (event) { return event.time.valueOf() > Date.now(); })[0];
            if (!event) return $(element).slideUp();
            var $timeLeft = $('<div>').addClass('timeLeft');
            if (theme < 0 || theme >= themes) theme = Math.floor(Math.random() * themes);
            $(element).addClass('bcbCountdown').append($('<div>').addClass('title').append($('<span>').text(event.title || "New Episode")))
                .append($('<div>').addClass('subtitle').append($('<span>').text(event.subtitle || "The Feels Awaken")))
                .append($timeLeft).addClass('theme' + theme);
            function updateTime() {
                var duration = (event.time.valueOf() - Date.now()) / 1000;
                if (duration < 0) {
                    clearInterval(interval);
                    $(element).find('.title, .subtitle, .timeLeft').hide();
                    return bcbCountdown(element, config);
                }
                var timeSpans = [{ i: 24, d: "Days" }, { i: 60, d: "Hours" }, { i: 60, d: "Minutes" }, { i: 1, d: "Seconds" }].map(function (num, base, segments) {
                    for (var d = duration, i = base; i < segments.length; i++) d /= segments[i].i;
                    if (base) d %= segments[base - 1].i;
                    return $("<span>").attr('data-label', num.d).html((d < 10 ? "0" : "") + Math.floor(d));
                });
                if ($timeLeft.find("span").length < timeSpans.length)
                    timeSpans.forEach(function (e, i) {
                        if (i) $timeLeft.append(":");
                        $timeLeft.append(e);
                    });
                else
                    $timeLeft.find("span").each(function (i) {
                        $(this).html($(timeSpans[i]).html());
                    });
            }
            updateTime();

            function squishToFit($span) {
                var fontSize = parseFloat($span.css('font-size'));
                if ($span.width() > $timeLeft.width()) {
                    fontSize *= .9;
                    $span.css({
                        'font-size': fontSize,
                        'vertical-align': 'top',
                    });
                    setTimeout(function () {
                        squishToFit($span);
                    }, 0);
                }
            }
            squishToFit($(element).find('.title span'));
            squishToFit($(element).find('.subtitle span'));

            var interval = setInterval(updateTime, 1000);
            
        }
        catch (e) {
            if (typeof (debug) !== "undefined" && debug) {
                console.error(e);
            }
        }
    })();

    $(window).keydown(function (e) {
                pressed.push(String.fromCharCode(e.which).toUpperCase());
                if (pressed.length > 5) pressed.shift();
                if (pressed.join('') == "SUGAR") unlocked = true;
                if (pressed.join('') == "RIDOT") sneaky(1);
                if (pressed.join('') == "BEARS") bears(1);
                if (unlocked && [37, 39].indexOf(e.which) >= 0) {
                    $(element).removeClass("theme" + theme);
                    theme += e.which - 38;
                    theme %= themes;
                    while (theme < 0) theme += themes;
                    $(element).addClass("theme" + theme);
                }
            });

    $('<a>').addClass('info').attr('title', "Inspired by Doafhat's countdown designs").attr('href', "http://doafhat.com/post/135588250298/all-the-edited-stevenbomb-4-countdowns-for-your").attr('target', '_blank').append($('<i>').addClass('fa fa-info-circle')).appendTo(element);

    var numBears = 0;  
    function bears(skipNum) {
        if ((numBears += skipNum) >= 3)
            $(document.head).append("<link rel='stylesheet' href='//thatswhatyouget.github.io/bcb-widgets/eggs/wbb.css'/>");
    }

    var peridinkles = 0;
    function sneaky(skipNum) {
        if ($('#nav-bar .peridot-egg, #nav-bar .peridot-peek').is('*')) return;
        if ((peridinkles += skipNum) < 3) return;
        peridinkles = 0;
        $('#nav-bar').addClass('egg');
        (function () {
            return $.when(
                (function () {
                    var d = $.Deferred();
                    $("<img>").attr('src', 'http://i.imgur.com/mN9KVNe.png').on('load', d.resolve);
                    return d;
                })(),
                (function () {
                    var d = $.Deferred();
                    $("<img>").attr('src', 'http://i.imgur.com/wvghkvg.png').on('load', d.resolve);
                    return d;
                })());
        })().then(function () {
            var $peek = $("<div class='peridot-peek'>").appendTo($("#nav-bar")).hide().slideDown(1000);
            function lookAway() {
                if ($(window).scrollTop() > 600) {
{'fraction_non_alphanumeric': 0.18661841128433557, 'fraction_numerical': 0.012249443207126948, 'mean_word_length': 1.5825545171339563, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4000364', 'n_tokens_mistral': 3242, 'n_tokens_neox': 2993, 'n_words': 574}