<commit_before>Ext.namespace('Vps.Auto.Form');

Vps.Auto.Form.Window = Ext.extend(Ext.Window, {
    initComponent : function()
    {
        if (!this.editTitle) {
            this.editTitle = trlVps('Edit');
            if (this.title) {
                this.editTitle = trlVps('Edit {0}', this.title);
            }
        }
        if (!this.addTitle) {
            this.addTitle = trlVps('Add');
            if (this.title) {
                this.addTitle = trlVps('Add {0}', this.title);
            }
        }
        if (!this.autoForm) {
            if (!this.formConfig) this.formConfig = {};

            Ext.applyIf(this.formConfig, {
                baseCls: 'x-plain',
                controllerUrl: this.controllerUrl,
                autoLoad: false,
                checkDirty: false
            });
            this.autoForm = new Vps.Auto.FormPanel(this.formConfig);
        } else if (typeof this.autoForm == 'string') {
            try {
                var d = eval(this.autoForm);
            } catch (e) {
                throw new Error("Invalid autoForm \'"+this.autoForm+"': "+e);
            }
            this.autoForm = new d({ baseCls: 'x-plain' });<commit_msg>auch für eigene AutoForm die parameter verwenden<commit_after>Ext.namespace('Vps.Auto.Form');

Vps.Auto.Form.Window = Ext.extend(Ext.Window, {
    initComponent : function()
    {
        if (!this.editTitle) {
            this.editTitle = trlVps('Edit');
            if (this.title) {
                this.editTitle = trlVps('Edit {0}', this.title);
            }
        }
        if (!this.addTitle) {
            this.addTitle = trlVps('Add');
            if (this.title) {
                this.addTitle = trlVps('Add {0}', this.title);
            }
        }
        if (!this.autoForm) {
            if (!this.formConfig) this.formConfig = {};

            Ext.applyIf(this.formConfig, {
                baseCls: 'x-plain',
                controllerUrl: this.controllerUrl,
                autoLoad: false,
                checkDirty: false
            });
            this.autoForm = new Vps.Auto.FormPanel(this.formConfig);
        } else if (typeof this.autoForm == 'string') {
            try {
                var d = eval(this.autoForm);
            } catch (e) {
                throw new Error("Invalid autoForm \'"+this.autoForm+"': "+e);
            }
            this.autoForm = new d({
                baseCls: 'x-plain',
                controllerUrl: this.controllerUrl,
                autoLoad: false,
                checkDirty: false
            });
{'fraction_non_alphanumeric': 0.13434579439252337, 'fraction_numerical': 0.001557632398753894, 'mean_word_length': 1.4281663516068053, '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': '2456631', 'n_tokens_mistral': 757, 'n_tokens_neox': 740, 'n_words': 140}