<commit_before>/**
 * Main JS application
 */

;
(function($) {

    var bootstrap = function() {

        var url = "admin/cms:nav.json";
        var tree = $('#nav-tree');

        tree.tree({
            autoEscape: false,
            data: [],
            dragAndDrop: false,
            autoOpen: false,
            dataUrl: url
        });

        var refreshTree = function() {

            $.get(url, function(data) {


                tree.tree('loadData', data);

                var nodeId = $('div[data-node-id]').data('node-id');
                if (nodeId) {
                    var node = tree.tree('getNodeById', nodeId);<commit_msg>nav.js bug<commit_after>/**
 * Main JS application
 */

;
(function($) {

    var bootstrap = function() {

        var url = "admin/cms:nav.json";
        var tree = $('#nav-tree');

        tree.tree({
            autoEscape: false,
            data: [],
            dragAndDrop: false,
            autoOpen: false,
            dataUrl: url
        });

        var refreshTree = function() {

            $.get(url, function(data) {

                tree.tree('loadData', data);

                var nodeId = $('div[data-node-id]').data('node-id');
                if (nodeId) {
                    var node = tree.tree('getNodeById', nodeId);
{'fraction_non_alphanumeric': 0.15200617283950618, 'fraction_numerical': 0.0, 'mean_word_length': 1.456439393939394, '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': '3621451', 'n_tokens_mistral': 387, 'n_tokens_neox': 359, 'n_words': 80}