<commit_before>Ext.ns("org.systemsbiology.addama.js");

org.systemsbiology.addama.js.TreePanel = null;

org.systemsbiology.addama.js.WorkspacesTabPanel = Ext.extend(Object, {
    constructor: function(config) {
        Ext.apply(this, config);

        org.systemsbiology.addama.js.WorkspacesTabPanel.superclass.constructor.call(this);

        org.systemsbiology.addama.js.TreePanel = this;

        this.loadPanels();
        this.loadTree();
    },

    loadPanels: function() {
        this.startPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_start"
        });

        this.folderViewPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_folder_content"
        });

        this.fileViewPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_file_content"
        });

        this.contentPanel = new Ext.Panel({
            id: "panel-content-control",
            title: "Main",
            layout: "card",
            region: "center",
            activeItem: 0,
            border: false,
            items: [ this.startPanel, this.folderViewPanel, this.fileViewPanel ]
        });

        this.treePanel = new Ext.tree.TreePanel({
            id: "tree-panel",
            title: "Workspaces",
            contentEl: "container_tree",
            region:"west",
            split: true,
            minSize: 150,
            autoScroll: true,
            border: true,
            margins: "5 0 5 5",
            width: 275,
            maxSize: 500,
            layout: "fit",
            layoutConfig: {
                titleCollapse: true,
                hideCollapseTool: true,
                animate: true,
                activeOnTop: false
            },
            // tree-specific configs:
            rootVisible: false,
            lines: false,
            singleExpand: true,
            useArrows: true,
            loader: new Ext.tree.TreeLoader(),
            root: new Ext.tree.AsyncTreeNode()
        });
        this.treePanel.on("expandnode", this.lookupNodeItems, this);
        this.treePanel.on("expandnode", this.displayNodeInContentPanel, this);
        this.treePanel.on("expandnode", this.displayNodeProperties, this);

        this.fileUploadControl = new org.systemsbiology.addama.js.FileUploadControl({ treePanel: this.treePanel });

        this.propertyGrid = new Ext.grid.GridPanel({
            title: "Properties",
            border:true,
            width: 320,
            region: "south",
            minSize: 100,
            maxSize: 500,
            autoScroll: true,
            collapsed: true,
            collapsible: true,
            titleCollapse: true,
            autoHeight: true,
            autoWidth: true,
            store: new Ext.data.JsonStore()
        });

        this.mainPanel = new Ext.Panel({
            title: "Main",
            margins: "5 5 5 0",
            layout: "border",
            border: true,<commit_msg>set property grid back to PropertyGrid<commit_after>Ext.ns("org.systemsbiology.addama.js");

org.systemsbiology.addama.js.TreePanel = null;

org.systemsbiology.addama.js.WorkspacesTabPanel = Ext.extend(Object, {
    constructor: function(config) {
        Ext.apply(this, config);

        org.systemsbiology.addama.js.WorkspacesTabPanel.superclass.constructor.call(this);

        org.systemsbiology.addama.js.TreePanel = this;

        this.loadPanels();
        this.loadTree();
    },

    loadPanels: function() {
        this.startPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_start"
        });

        this.folderViewPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_folder_content"
        });

        this.fileViewPanel = new Ext.Panel({
            layout: "fit",
            bodyStyle: "padding:25px",
            contentEl: "container_file_content"
        });

        this.contentPanel = new Ext.Panel({
            id: "panel-content-control",
            title: "Main",
            layout: "card",
            region: "center",
            activeItem: 0,
            border: false,
            items: [ this.startPanel, this.folderViewPanel, this.fileViewPanel ]
        });

        this.treePanel = new Ext.tree.TreePanel({
            id: "tree-panel",
            title: "Workspaces",
            contentEl: "container_tree",
            region:"west",
            split: true,
            minSize: 150,
            autoScroll: true,
            border: true,
            margins: "5 0 5 5",
            width: 275,
            maxSize: 500,
            layout: "fit",
            layoutConfig: {
                titleCollapse: true,
                hideCollapseTool: true,
                animate: true,
                activeOnTop: false
            },
            // tree-specific configs:
            rootVisible: false,
            lines: false,
            singleExpand: true,
            useArrows: true,
            loader: new Ext.tree.TreeLoader(),
            root: new Ext.tree.AsyncTreeNode()
        });
        this.treePanel.on("expandnode", this.lookupNodeItems, this);
        this.treePanel.on("expandnode", this.displayNodeInContentPanel, this);
        this.treePanel.on("expandnode", this.displayNodeProperties, this);

        this.fileUploadControl = new org.systemsbiology.addama.js.FileUploadControl({ treePanel: this.treePanel });

        this.propertyGrid = new Ext.grid.PropertyGrid({
            title: "Properties",
            border:true,
            width: 320,
            region: "south",
            minSize: 100,
            maxSize: 500,
            autoScroll: true,
            collapsed: true,
            collapsible: true,
            titleCollapse: true,
            autoHeight: true,
            autoWidth: true,
            store: new Ext.data.JsonStore()
        });

        this.mainPanel = new Ext.Panel({
            title: "Main",
            margins: "5 5 5 0",
            layout: "border",
            border: true,
{'fraction_non_alphanumeric': 0.11107564634535588, 'fraction_numerical': 0.01053303542930099, 'mean_word_length': 1.6376262626262625, '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': '3835414', 'n_tokens_mistral': 1771, 'n_tokens_neox': 1666, 'n_words': 350}