<commit_before>$(document).ready(function () {
    $('.dashboard-mozillians-reps-grid-button').click(function () {
        $('.dashboard-mozillians-reps-grid-block').removeClass('hidden');
        $('.dashboard-mozillians-reps-reports-block').addClass('hidden');

        $('.dashboard-mozillians-reps-grid-button').parent().addClass('active');
        $('.dashboard-mozillians-reps-grid-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-mozillians-reps-reports-button').click(function () {
        $('.dashboard-mozillians-reps-reports-block').removeClass('hidden');
        $('.dashboard-mozillians-reps-grid-block').addClass('hidden');

        $('.dashboard-mozillians-reps-reports-button').parent().addClass('active');
        $('.dashboard-mozillians-reps-reports-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-events-future-button').click(function () {
        $('.dashboard-events-future-block').show('fast');
        $('.dashboard-events-past-block').hide('fast');

        $('.dashboard-events-future-button').parent().addClass('active');
        $('.dashboard-events-future-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-events-past-button').click(function () {
        $('.dashboard-events-past-block').show('fast');
        $('.dashboard-events-future-block').hide('fast');

        $('.dashboard-events-past-button').parent().addClass('active');
        $('.dashboard-events-past-button').parent().siblings().removeClass('active');
    });



    $('table').each(function(index, item) { $(item).stupidtable(); });
    // Apply prettyDate on all elements with data-time attribute.
    $('*').find('*[data-time]').prettyDate({attribute:'data-time', interval: 60000, isUTC:true});
});<commit_msg>[fix bug 842375] Fixed JS error in switching future and past events in mozillians dashboard.<commit_after>$(document).ready(function () {
    $('.dashboard-mozillians-reps-grid-button').click(function () {
        $('.dashboard-mozillians-reps-grid-block').removeClass('hidden');
        $('.dashboard-mozillians-reps-reports-block').addClass('hidden');

        $('.dashboard-mozillians-reps-grid-button').parent().addClass('active');
        $('.dashboard-mozillians-reps-grid-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-mozillians-reps-reports-button').click(function () {
        $('.dashboard-mozillians-reps-reports-block').removeClass('hidden');
        $('.dashboard-mozillians-reps-grid-block').addClass('hidden');

        $('.dashboard-mozillians-reps-reports-button').parent().addClass('active');
        $('.dashboard-mozillians-reps-reports-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-events-future-button').click(function () {
        $('.dashboard-events-future-block').removeClass('hidden');
        $('.dashboard-events-past-block').addClass('hidden');

        $('.dashboard-events-future-button').parent().addClass('active');
        $('.dashboard-events-future-button').parent().siblings().removeClass('active');
    });

    $('.dashboard-events-past-button').click(function () {
        $('.dashboard-events-past-block').removeClass('hidden');
        $('.dashboard-events-future-block').addClass('hidden');

        $('.dashboard-events-past-button').parent().addClass('active');
        $('.dashboard-events-past-button').parent().siblings().removeClass('active');
    });



    $('table').each(function(index, item) { $(item).stupidtable(); });
    // Apply prettyDate on all elements with data-time attribute.
    $('*').find('*[data-time]').prettyDate({attribute:'data-time', interval: 60000, isUTC:true});
});
{'fraction_non_alphanumeric': 0.22836344028039904, 'fraction_numerical': 0.004313831221353465, 'mean_word_length': 3.9335106382978724, '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': '5379618', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1090, 'n_words': 86}