<commit_before>Ext.namespace('Kwc.Directories.Item.Directory');
Kwc.Directories.Item.Directory.TabsPanel = Ext.extend(Kwf.Binding.ProxyPanel,
{
    initComponent: function()
    {
        this.layout = 'border';
        
        this.grid = new Kwf.Auto.GridPanel({
            controllerUrl: this.controllerUrl,
            region: 'west',
            width: this.width,
            split: true
        });

        if (this.componentPlugins) {
            this.plugins = [ ];
            this.componentPlugins.each(function(v) {
                var pluginClass = eval(v.pluginClass);
                var plugin = new pluginClass(v);
                this.plugins.push(plugin);
            }, this);
        }

        this.detailsForm = Ext.ComponentMgr.create({
            xtype: this.detailsXtype,
            controllerUrl: this.detailsControllerUrl,
            title: trlKwf('Details')
        });
        this.grid.addBinding(this.detailsForm);

        var editPanels = [this.detailsForm];
        this.contentEditComponents.each(function(ec) {
            editPanels.push(Kwf.Binding.AbstractPanel.createFormOrComponentPanel(
                this.componentConfigs, ec, {}, this.grid
            ));
        }, this);

        var tabs = new Ext.TabPanel({
            region: 'center',
            activeTab: 0,
            items: editPanels
        });
        this.proxyItem = this.grid;
        this.items = [this.grid, tabs];

        Kwc.Directories.Item.Directory.TabsPanel.superclass.initComponent.call(this);
    },
    applyBaseParams: function(baseParams) {
        if (baseParams.id) delete baseParams.id;
        this.detailsForm.setBaseParams(baseParams);
        return Kwc.Directories.Item.Directory.TabsPanel.superclass.applyBaseParams.apply(this, arguments);
    },
    setBaseParams : function(baseParams) {
        if (baseParams.id) delete baseParams.id;
        this.detailsForm.setBaseParams(baseParams);
        return Kwc.Directories.Item.Directory.TabsPanel.superclass.setBaseParams.apply(this, arguments);
    }

});

Ext.reg('kwc.directories.item.directory.tabs', Kwc.Directories.Item.Directory.TabsPanel);<commit_msg>Item_Directory: FormPanel can be deactivated if not needed<commit_after>Ext.namespace('Kwc.Directories.Item.Directory');
Kwc.Directories.Item.Directory.TabsPanel = Ext.extend(Kwf.Binding.ProxyPanel,
{
    initComponent: function()
    {
        this.layout = 'border';
        
        this.grid = new Kwf.Auto.GridPanel({
            controllerUrl: this.controllerUrl,
            region: 'west',
            width: this.width,
            split: true
        });

        if (this.componentPlugins) {
            this.plugins = [ ];
            this.componentPlugins.each(function(v) {
                var pluginClass = eval(v.pluginClass);
                var plugin = new pluginClass(v);
                this.plugins.push(plugin);
            }, this);
        }

        var editPanels = [];
        if (!this.hideDetailsController) {
            this.detailsForm = Ext.ComponentMgr.create({
                xtype: this.detailsXtype,
                controllerUrl: this.detailsControllerUrl,
                title: trlKwf('Details')
            });
            this.grid.addBinding(this.detailsForm);
            editPanels.push(this.detailsForm);
        }

        this.contentEditComponents.each(function(ec) {
            editPanels.push(Kwf.Binding.AbstractPanel.createFormOrComponentPanel(
                this.componentConfigs, ec, {}, this.grid
            ));
        }, this);

        var tabs = new Ext.TabPanel({
            region: 'center',
            activeTab: 0,
            items: editPanels
        });
        this.proxyItem = this.grid;
        this.items = [this.grid, tabs];

        Kwc.Directories.Item.Directory.TabsPanel.superclass.initComponent.call(this);
    },
    applyBaseParams: function(baseParams) {
        if (baseParams.id) delete baseParams.id;
        if (this.detailsForm) this.detailsForm.setBaseParams(baseParams);
        return Kwc.Directories.Item.Directory.TabsPanel.superclass.applyBaseParams.apply(this, arguments);
    },
    setBaseParams : function(baseParams) {
        if (baseParams.id) delete baseParams.id;
        if (this.detailsForm) this.detailsForm.setBaseParams(baseParams);
        return Kwc.Directories.Item.Directory.TabsPanel.superclass.setBaseParams.apply(this, arguments);
    }

});

Ext.reg('kwc.directories.item.directory.tabs', Kwc.Directories.Item.Directory.TabsPanel);
{'fraction_non_alphanumeric': 0.11515420457066786, 'fraction_numerical': 0.00044375416019525185, 'mean_word_length': 2.2039800995024876, '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': '7380666', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1256, 'n_words': 186}