<commit_before>$(function(){
    var $explorer = $('#explorer');
    var $body = $('body');

    // Dynamically load menu on request.
    $(document).on('click', '.dl-trigger', function(){
        var $this = $(this);
        
        // Close any submenuss
        $('.nav-main .submenu-active, .nav-wrapper').removeClass('submenu-active');

        if($explorer.data('dlmenu') && $explorer.dlmenu('isOpen')){
            // if it's already open, allow the menu plugin to close it
            return false;
        }else{
            $this.addClass('icon-spinner');

            if(!$explorer.children().length){
                $explorer.load($this.data('explorer-menu-url'), function() {
                    $this.removeClass('icon-spinner');

                    $explorer.addClass('dl-menuwrapper').dlmenu({
                        animationClasses : {
                            classin : 'dl-animate-in-2',
                            classout : 'dl-animate-out-2'
                        }
                    });
                    $explorer.dlmenu('openMenu');
                });
            }else{
                $explorer.dlmenu('openMenu');
                $this.removeClass('icon-spinner');
            }
        }
        return false;
    });

    // Close menu on ESC key
    $(document).on('keydown click', function(e){
        if($explorer.data('dlmenu') && $explorer.dlmenu('isOpen') && (e.keyCode == 27 || !e.keyCode)){
            $explorer.dlmenu('closeMenu');
        }
    });
});<commit_msg>tweaks<commit_after>$(function(){
    var $explorer = $('#explorer');
    var $body = $('body');

    // Dynamically load menu on request.
    $(document).on('click', '.dl-trigger', function(){
        var $this = $(this);
        
        // Close all submenus
        $('.nav-main .submenu-active, .nav-wrapper').removeClass('submenu-active');

        if($explorer.data('dlmenu') && $explorer.dlmenu('isOpen')){
            // if it's already open, allow the menu plugin to close it
            return false;
        }else{
            if(!$explorer.children().length){
                $this.addClass('icon-spinner');
                $explorer.load($this.data('explorer-menu-url'), function() {
                    $this.removeClass('icon-spinner');

                    $explorer.addClass('dl-menuwrapper').dlmenu({
                        animationClasses : {
                            classin : 'dl-animate-in-2',
                            classout : 'dl-animate-out-2'
                        }
                    });
                    $explorer.dlmenu('openMenu');
                });
            }else{
                $explorer.dlmenu('openMenu');
            }
        }
        return false;
    });

    // Close menu on ESC key
    $(document).on('keydown click', function(e){
        if($explorer.data('dlmenu') && $explorer.dlmenu('isOpen') && (e.keyCode == 27 || !e.keyCode)){
            $explorer.dlmenu('closeMenu');
        }
    });
});
{'fraction_non_alphanumeric': 0.16610850636302746, 'fraction_numerical': 0.0026791694574681848, 'mean_word_length': 1.5335029686174724, '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': '5215670', 'n_tokens_mistral': 848, 'n_tokens_neox': 807, 'n_words': 141}