<commit_before>(function($, undefined) {
    $.KBWidget({
        name: 'kbaseNarrativeSidePanel',
        parent: 'kbaseWidget',
        options: {
            loadingImage: "static/kbase/images/ajax-loader.gif",
            autorender: true
        },
        dataPanel: null,
        methodsPanel: null,
        narrativesPanel: null,
        jobsPanel: null,

        /**
         * Does the initial panel layout - tabs and spots for each widget
         * It then instantiates them, but not until told to render (unless autorender = true)
         */
        init: function(options) {
            this._super(options);

            var $managePanel = this.buildPanelSet();
            var $analysisPanel = this.buildPanelSet();
            // set up tabs
            this.$elem.kbaseTabs({
                tabPosition: 'top',
                canDelete: false,
                tabs: [
                    {
                        tab: 'Analyze',
                        content : $analysisPanel,
                    },
                    {
                        tab: 'Manage',
                        content : $managePanel,
                    },
                ],
            });

            if (this.autorender) {
                this.render();
            }
            else {

            }
            // add the stuff to the tabs

            return this;
        },

        /**
         * Builds the general structure for a panel set.
         * These are intended to start with 2 panels, but we can move from there if needed.
         */
        buildPanelSet: function() {
            var panelSet = $('<div>')
                           .css({'height' : '100%'})
                           .append($('<div>')
                                   .css({'height' : '50%','border' : 'solid 1px #555'}))
                           .append($('<div>')
                                   .css({'height' : '50%','border' : 'solid 1px #555'}));
            return panelSet;
        },

        render: function() {

        }
    })
})( jQuery );<commit_msg>Temp workaround for box sizes in side panel.<commit_after>(function($, undefined) {
    $.KBWidget({
        name: 'kbaseNarrativeSidePanel',
        parent: 'kbaseWidget',
        options: {
            loadingImage: "static/kbase/images/ajax-loader.gif",
            autorender: true
        },
        dataPanel: null,
        methodsPanel: null,
        narrativesPanel: null,
        jobsPanel: null,

        /**
         * Does the initial panel layout - tabs and spots for each widget
         * It then instantiates them, but not until told to render (unless autorender = true)
         */
        init: function(options) {
            this._super(options);

            var $managePanel = this.buildPanelSet();
            var $analysisPanel = this.buildPanelSet();
            // set up tabs
            this.$elem.kbaseTabs({
                tabPosition: 'top',
                canDelete: false,
                tabs: [
                    {
                        tab: 'Analyze',
                        content : $analysisPanel,
                    },
                    {
                        tab: 'Manage',
                        content : $managePanel,
                    },
                ],
            });

            if (this.autorender) {
                this.render();
            }
            else {

            }
            // add the stuff to the tabs

            return this;
        },

        /**
         * Builds the general structure for a panel set.
         * These are intended to start with 2 panels, but we can move from there if needed.
         */
        buildPanelSet: function() {
            var panelSet = $('<div>')
                           .css({'height' : '80vh', 'min-height' : '500px'})
                           .append($('<div>')
                                   .css({'height' : '50%','border' : 'solid 1px #555'}))
                           .append($('<div>')
                                   .css({'height' : '50%','border' : 'solid 1px #555'}));
            return panelSet;
        },

        render: function() {

        }
    })
})( jQuery );
{'fraction_non_alphanumeric': 0.11423801574051991, 'fraction_numerical': 0.008108752683043167, 'mean_word_length': 1.0834575260804769, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5331776', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1009, 'n_words': 269}