<commit_before>$('.scrollup').click(function(){
    $('html, body').animate({ scrollTop: 0 }, 600);
    return false;
});

$('.toc').click(function(e) {
    e.preventDefault();
    var target = $(this).attr('href');
    $('html, body').animate({ scrollTop: $(target).offset().top - 160}, 600);
});

$('.testing-button').on('click', function() {
    var pathname = window.location.pathname;
    pathname += 'testing';
    window.location = pathname;
});

$('.active-button').on('click', function() {
    var pathname = window.location.pathname;<commit_msg>Use variable to determine how much the scroll should be offset<commit_after>$('.scrollup').click(function(){
    $('html, body').animate({ scrollTop: 0 }, 600);
    return false;
});

$('.toc').click(function(e) {
    e.preventDefault();
    var target = $(this).attr('href');
    if (user != 'None') {
        $('html, body').animate({ scrollTop: $(target).offset().top - 200}, 600);
    } else {
        $('html, body').animate({ scrollTop: $(target).offset().top - 160}, 600);
    }
});

$('.testing-button').on('click', function() {
    var pathname = window.location.pathname;
    pathname += 'testing';
    window.location = pathname;
});

$('.active-button').on('click', function() {
    var pathname = window.location.pathname;
{'fraction_non_alphanumeric': 0.22790697674418606, 'fraction_numerical': 0.020155038759689922, 'mean_word_length': 3.8352059925093633, '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': '2611970', 'n_tokens_mistral': 432, 'n_tokens_neox': 397, 'n_words': 85}