<commit_before>$('.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;
    var temp_path = pathname.split('/');
    window.location = '/' + temp_path[1] + '/';
});

$('.panel-title #toggle_details').click(function(e) {
    var loop = $(this).data('loop');
    var title = $(this).data('title');
    var button = $(this);
    $('.' + title).toggle('slow', function() {
        if ( $('.' + title).is(':hidden') ) {
            button.text('Call Details');
        } else {
            button.text('Hide Details');
        }
    });
    e.stopPropagation();
});

$('.code-blocks-wrapper #toggle_results').click(function(e){
    var loop = $(this).data('loop');
    var title = $(this).data('title');
    var results = $(this).data('results');
    $('#api_results_wrapper_' + title).toggle('slow', function() {
        if ( $('#api_results_wrapper_' + title).is(':visible') === false) {
            // $('html, body').animate({ scrollTop: $('#' + title).offset().top - 160}, 10);
        }
    });
    e.stopPropagation();
});

$('#data_center').on('change', function () {
    $(this).removeClass('error');<commit_msg>Comment out surrounding code as the check is not neeed<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;
    var temp_path = pathname.split('/');
    window.location = '/' + temp_path[1] + '/';
});

$('.panel-title #toggle_details').click(function(e) {
    var loop = $(this).data('loop');
    var title = $(this).data('title');
    var button = $(this);
    $('.' + title).toggle('slow', function() {
        if ( $('.' + title).is(':hidden') ) {
            button.text('Call Details');
        } else {
            button.text('Hide Details');
        }
    });
    e.stopPropagation();
});

$('.code-blocks-wrapper #toggle_results').click(function(e){
    var loop = $(this).data('loop');
    var title = $(this).data('title');
    var results = $(this).data('results');
    $('#api_results_wrapper_' + title).toggle('slow', function() {
        // if ( $('#api_results_wrapper_' + title).is(':visible') === false) {
        //     $('html, body').animate({ scrollTop: $('#' + title).offset().top - 160}, 10);
        // }
    });
    e.stopPropagation();
});

$('#data_center').on('change', function () {
    $(this).removeClass('error');
{'fraction_non_alphanumeric': 0.24275466284074607, 'fraction_numerical': 0.012625538020086082, 'mean_word_length': 3.072429906542056, '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': '7117680', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1092, 'n_words': 202}