<commit_before>// load the mindmap
        $(document).ready(function() {
            // enable the mindmap in the body
            $('body').mindmap();

            // add the data to the mindmap
            var root = $('body>ul>li').get(0).mynode = $('body').addRootNode($('body>ul>li>a').text(), {
                href:'/',
                url:'/',
                onclick:function(node) {
                    $(node.obj.activeNode.content).each(function() {
                        this.hide();
                    });
                }
            });
            $('body>ul>li').hide();
            var addLI = function() {
                var parentnode = $(this).parents('li').get(0);
                if (typeof(parentnode)=='undefined') parentnode=root;
                    else parentnode=parentnode.mynode;
                
                this.mynode = $('body').addNode(parentnode, $('a:eq(0)',this).text(), {
                    href:$('a:eq(0)',this).text().toLowerCase(),
                    onclick:function(node) {
                        $(node.obj.activeNode.content).each(function() {
                            this.hide();
                        });
                        $(node.content).each(function() {
                            this.show();
                        });
                    }
                });
                $(this).hide();
                $('>ul>li', this).each(addLI);
            };
            $('body>ul>li>ul').each(function() { 
                $('>li', this).each(addLI);<commit_msg>corrected demo links<commit_after>// load the mindmap
        $(document).ready(function() {
            // enable the mindmap in the body
            $('body').mindmap();

            // add the data to the mindmap
            var root = $('body>ul>li').get(0).mynode = $('body').addRootNode($('body>ul>li>a').text(), {
                href:'/',
                url:'/',
                onclick:function(node) {
                    $(node.obj.activeNode.content).each(function() {
                        this.hide();
                    });
                }
            });
            $('body>ul>li').hide();
            var addLI = function() {
                var parentnode = $(this).parents('li').get(0);
                if (typeof(parentnode)=='undefined') parentnode=root;
                    else parentnode=parentnode.mynode;
                
                this.mynode = $('body').addNode(parentnode, $('a:eq(0)',this).text(), {
//                    href:$('a:eq(0)',this).text().toLowerCase(),
                    href:$('a:eq(0)',this).attr('href'),
                    onclick:function(node) {
                        $(node.obj.activeNode.content).each(function() {
                            this.hide();
                        });
                        $(node.content).each(function() {
                            this.show();
                        });
                    }
                });
                $(this).hide();
                $('>ul>li', this).each(addLI);
            };
            $('body>ul>li>ul').each(function() { 
                $('>li', this).each(addLI);
{'fraction_non_alphanumeric': 0.1731135066582118, 'fraction_numerical': 0.0028535193405199747, 'mean_word_length': 1.1360866621530128, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '6452625', 'n_tokens_mistral': 847, 'n_tokens_neox': 790, 'n_words': 110}