<commit_before>
// $(document).ready()
$(function(){
    // sidebar event
    (function(document) {
        var toggle = document.querySelector('.sidebar-toggle');
        var sidebar = document.querySelector('#sidebar');
        var checkbox = document.querySelector('#sidebar-checkbox');

        document.addEventListener('click', function(e) {
            var target = e.target;

            if(!checkbox.checked || sidebar.contains(target) || (target === checkbox || target === toggle)) {
                localStorage.sidebar_checked = checkbox.checked ? '1' : '0';
                return;
            }

            localStorage.sidebar_checked = '0';
            checkbox.checked = false;
        }, false);
    })(document);
    
    // load last remember status
    if ( localStorage.sidebar_checked == '1' ) {
        $(".sidebar-checkbox").prop('checked', true);
    }
});<commit_msg>update js<commit_after>
// $(document).ready()
$(function(){
    // sidebar event
    (function(document) {
        var toggle = document.querySelector('.sidebar-toggle');
        var sidebar = document.querySelector('#sidebar');
        var checkbox = document.querySelector('#sidebar-checkbox');

        document.addEventListener('click', function(e) {
            var target = e.target;

            if(!checkbox.checked || sidebar.contains(target) || (target === checkbox || target === toggle)) {
                return;
            }

            checkbox.checked = false;
        }, false);
    })(document);
    
});
{'fraction_non_alphanumeric': 0.1553653719552337, 'fraction_numerical': 0.0026333113890717576, 'mean_word_length': 2.3043478260869565, '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': '3898114', 'n_tokens_mistral': 388, 'n_tokens_neox': 369, 'n_words': 78}