<commit_before>$(window).scroll(function(){
    if ( $(this).scrollTop() > 1){
        $('body').addClass("scroll");
    } else if($(this).scrollTop() <= 1 && $('body').hasClass("scroll")) {
        $('body').removeClass("scroll");
    }
});//scroll

$(function () {
    if (Array.prototype.forEach) {
        var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
        elems.forEach(function(html) {
            var switchery = new Switchery(html);
        });
    } else {
        var elems = document.querySelectorAll('.js-switch');
        for (var i = 0; i < elems.length; i++) {
            var switchery = new Switchery(elems[i]);
        }
    }

    if ($(window).width() < 800) {
        $('body').addClass('aside-collapse');
    }

    $('.caret-aside').click(function() {
        $('body').toggleClass('aside-collapse');

        $.post("mskSaveNavMenuState", {isNavMenuCollapsed : $('body').hasClass('aside-collapse')}, function(resp){
            if (resp.status == 'ERROR'){
                //console.log(resp);
            }
        });
        setTimeout(function() {
            $('.box').each(
                function() {
                    resize_table($(this));
                }
            );
        }, 200);
    });

    $('.tooltip-bottom').tooltip({placement:'bottom'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-top').tooltip({placement:'top'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-left').tooltip({placement:'left'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-right').tooltip({placement:'right'}).on('show', function (e) {e.stopPropagation();});
    $('.aside-collapse .sidebar-tooltip-right').tooltip({placement:'right'}).on('show', function (e) {e.stopPropagation();});

    $(".tablesorter").tablesorter();

    $(".select2").select2();

    $(".scrollbar").mCustomScrollbar();

    $(".hscrollbar").mCustomScrollbar({
        advanced:{
            updateOnContentResize: true
        },
        horizontalScroll:true
    });

    $('.hscrollbar .mCSB_scrollTools').css('position','fixed');
    $('.hscrollbar').mCustomScrollbar("update");
<commit_msg>main menu collapse tooltip fix<commit_after>$(window).scroll(function(){
    if ( $(this).scrollTop() > 1){
        $('body').addClass("scroll");
    } else if($(this).scrollTop() <= 1 && $('body').hasClass("scroll")) {
        $('body').removeClass("scroll");
    }
});//scroll

$(function () {
    if (Array.prototype.forEach) {
        var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch'));
        elems.forEach(function(html) {
            var switchery = new Switchery(html);
        });
    } else {
        var elems = document.querySelectorAll('.js-switch');
        for (var i = 0; i < elems.length; i++) {
            var switchery = new Switchery(elems[i]);
        }
    }

    if ($(window).width() < 800) {
        $('body').addClass('aside-collapse');
    }

    $('.caret-aside').click(function() {
        $('body').toggleClass('aside-collapse');

        $.post("mskSaveNavMenuState", {isNavMenuCollapsed : $('body').hasClass('aside-collapse')}, function(resp){
            if (resp.status == 'ERROR'){
                //console.log(resp);
            }
        });
        setTimeout(function() {
            $('.box').each(
                function() {
                    resize_table($(this));
                }
            );
        }, 200);
    });

    $('.tooltip-bottom').tooltip({placement:'bottom'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-top').tooltip({placement:'top'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-left').tooltip({placement:'left'}).on('show', function (e) {e.stopPropagation();});
    $('.tooltip-right').tooltip({placement:'right'}).on('show', function (e) {e.stopPropagation();});
    $('.aside-collapse .sidebar-tooltip-right').tooltip({placement:'right', container: 'body'}).on('show', function (e) {e.stopPropagation();});

    $(".tablesorter").tablesorter();

    $(".select2").select2();

    $(".scrollbar").mCustomScrollbar();

    $(".hscrollbar").mCustomScrollbar({
        advanced:{
            updateOnContentResize: true
        },
        horizontalScroll:true
    });

    $('.hscrollbar .mCSB_scrollTools').css('position','fixed');
    $('.hscrollbar').mCustomScrollbar("update");

{'fraction_non_alphanumeric': 0.2217687074829932, 'fraction_numerical': 0.004988662131519274, 'mean_word_length': 2.7036104114189756, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3611281', 'n_tokens_mistral': 1335, 'n_tokens_neox': 1304, 'n_words': 182}