<commit_before>// Custom jQuery for theme

// Script to toggle copyright popup
$( "button" ).click(function() {
    $( "#sugarcopy" ).toggle();

});

// Custom JavaScript for copyright pop-ups
$(function() {
    $( "#dialog, #dialog2" ).dialog({
        autoOpen: false,
        show: {
            effect: "blind",
            duration: 100
        },
        hide: {
            effect: "fade",
            duration: 1000
        }
    });
    $( "#powered_by" ).click(function() {
        $( "#dialog" ).dialog( "open" );
        $("#overlay").show().css({"opacity": "0.5"});
    });
    $( "#admin_options" ).click(function() {
        $( "#dialog2" ).dialog( "open" );
    });
});

// Back to top animation
$('#backtotop').click(function(event) {
    event.preventDefault();
    $('html, body').animate({scrollTop:0}, 500); // Scroll speed to the top
});

// Refresh function for refresh button on sidebar
function refresh(reload)
{
    window.location.reload(true);
}

// Tabs jQuery for Admin panel
$(function() {
    var tabs = $( "#tabs" ).tabs();
    tabs.find( ".ui-tabs-nav" ).sortable({
        axis: "x",
        stop: function() {
            tabs.tabs( "refresh" );
        }
    });
});

// Function to call footable for responsive table functionality
$(function () {
    setTimeout(function() {
        $('#dashletPanel th:not(:first-child)').attr("data-hide","phone, tablet");
        $('#subPanel th:not(:first-child)').attr("data-hide","phone, tablet");
        $('.footable').footable();
        $(".footable").find("th:first").attr("data-toggle","true");
    },2000);
});

// JavaScript fix to remove unrequired classes on smaller screens where sidebar is obsolete
$( window ).resize(function () {
    $('#bootstrap-container').removeClass('col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main', $(window).width() < 768);
    if ($(window).width() > 979) {
        $('#bootstrap-container').addClass('col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main');
    }
});

// Button to toggle list view search<commit_msg>Small fixes for when bootstrap classes are added/removed.<commit_after>// Custom jQuery for theme

// Script to toggle copyright popup
$( "button" ).click(function() {
    $( "#sugarcopy" ).toggle();

});

// Custom JavaScript for copyright pop-ups
$(function() {
    $( "#dialog, #dialog2" ).dialog({
        autoOpen: false,
        show: {
            effect: "blind",
            duration: 100
        },
        hide: {
            effect: "fade",
            duration: 1000
        }
    });
    $( "#powered_by" ).click(function() {
        $( "#dialog" ).dialog( "open" );
        $("#overlay").show().css({"opacity": "0.5"});
    });
    $( "#admin_options" ).click(function() {
        $( "#dialog2" ).dialog( "open" );
    });
});

// Back to top animation
$('#backtotop').click(function(event) {
    event.preventDefault();
    $('html, body').animate({scrollTop:0}, 500); // Scroll speed to the top
});

// Refresh function for refresh button on sidebar
function refresh(reload)
{
    window.location.reload(true);
}

// Tabs jQuery for Admin panel
$(function() {
    var tabs = $( "#tabs" ).tabs();
    tabs.find( ".ui-tabs-nav" ).sortable({
        axis: "x",
        stop: function() {
            tabs.tabs( "refresh" );
        }
    });
});

// Function to call footable for responsive table functionality
$(function () {
    setTimeout(function() {
        $('#dashletPanel th:not(:first-child)').attr("data-hide","phone, tablet");
        $('#subPanel th:not(:first-child)').attr("data-hide","phone, tablet");
        $('.footable').footable();
        $(".footable").find("th:first").attr("data-toggle","true");
    },2000);
});

// JavaScript fix to remove unrequired classes on smaller screens where sidebar is obsolete
$(window).resize(function () {
    $('#bootstrap-container').removeClass('col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main', $(window).width() < 979);
    if ($(window).width() > 980) {
        $('#bootstrap-container').addClass('col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main');
    }
});

// Button to toggle list view search
{'fraction_non_alphanumeric': 0.20280735721200388, 'fraction_numerical': 0.016940948693126814, 'mean_word_length': 2.73014440433213, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, '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': '6261907', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1237, 'n_words': 295}