<commit_before>Ext.define('Ozone.components.admin.StackExportWindow', {
    extend: 'Ext.window.Window',
    alias: ['widget.stackexportwindow', 'widget.StackExportWindow'],

    mixins: {
        widget: 'Ozone.components.focusable.CircularFocus'
    },

    title: 'Export',
    itemId: 'stackexportwindow',
    modal: true,
    closable: true,
    draggable: false,
    resizable: false,
    closeAction: 'hide',
    border: false,
    minWidth: 250,
    minHeight: 200,
    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    items: [{
        xtype: 'panel',
        itemId: 'stackexportpanel',
        cls: 'admineditoraddpanel',
        layout: 'fit',
        border: false,
        flex: 1,
        items: [{
            xtype: 'form',
            itemId: 'form',
            layout: 'anchor',
            bodyCls: 'properties-body',
            border: false,
            preventHeader: true,
            padding: 5,
            autoScroll: true,
            defaults: {
                anchor: '100%',
                msgTarget: 'side',
                labelSeparator: '',
                margin: '5 5 0 5'
            },
            items: [{
                xtype: 'textfield',
                itemId: 'filename',
                fieldLabel: 'Filename',
                labelWidth: 140,
                allowBlank: true,
                name: 'filename',
                maxLength: 200,
                regex: /^[a-zA-Z\d\-\_]+$/,
                regexText: 'Invalid characters! The Filename may only contain letters, numbers, dashes, and underscores.'
            }, {
                xtype: 'radiogroup',
                itemId: 'extension',
                fieldLabel: 'File Type',
                labelWidth: 140,
                columns: [100, 100],
                vertical: true,
                items: [
                    {
                        boxLabel: '.war',
                        name: 'val',
                        inputValue: 'war',
                        checked: true
                    }, {
                        boxLabel: '.zip',
                        name: 'val',
                        inputValue: 'zip'
                    }
                ]
            }]
        }]
    }],
    buttons: [{
        text: 'OK',
        itemId: 'ok'
    }, {
        text: 'Cancel',
        itemId: 'cancel'
    }],

    initComponent: function() {
        var me = this;
        
        var vpSize = Ext.getBody().getViewSize();
        me.setWidth(Math.round(vpSize.width * .9));
        me.setHeight(Math.round(vpSize.height * .5));
        
        me.on('beforeshow', function() {
            me.setTitle(me.generateTitle());
        });
        
        me.on('afterrender', function() {
            
            var form = me.down('#form');
            var filename = me.down('#filename');
            var extension = me.down('#extension');<commit_msg>OWF-6938: Create option to export to war or zip.<commit_after>Ext.define('Ozone.components.admin.StackExportWindow', {
    extend: 'Ext.window.Window',
    alias: ['widget.stackexportwindow', 'widget.StackExportWindow'],

    mixins: {
        widget: 'Ozone.components.focusable.CircularFocus'
    },

    title: 'Export',
    itemId: 'stackexportwindow',
    modal: true,
    closable: true,
    draggable: false,
    resizable: false,
    closeAction: 'hide',
    border: false,
    minWidth: 250,
    minHeight: 200,
    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    items: [{
        xtype: 'panel',
        itemId: 'stackexportpanel',
        cls: 'admineditoraddpanel',
        layout: 'fit',
        border: false,
        flex: 1,
        items: [{
            xtype: 'form',
            itemId: 'form',
            layout: 'anchor',
            bodyCls: 'properties-body',
            border: false,
            preventHeader: true,
            padding: 5,
            autoScroll: true,
            defaults: {
                anchor: '100%',
                msgTarget: 'side',
                labelSeparator: '',
                margin: '5 5 0 5'
            },
            items: [{
                xtype: 'textfield',
                itemId: 'filename',
                fieldLabel: 'Filename',
                labelWidth: 140,
                allowBlank: false,
                name: 'filename',
                maxLength: 200,
                regex: /^[a-zA-Z\d\-\_]+$/,
                regexText: 'Invalid characters! The Filename may only contain letters, numbers, dashes, and underscores.'
            }, {
                xtype: 'radiogroup',
                itemId: 'extension',
                fieldLabel: 'File Type',
                labelWidth: 140,
                columns: [100, 100],
                vertical: true,
                items: [
                    {
                        boxLabel: '.war',
                        name: 'val',
                        inputValue: 'war',
                        checked: true
                    }, {
                        boxLabel: '.zip',
                        name: 'val',
                        inputValue: 'zip'
                    }
                ]
            }]
        }]
    }],
    buttons: [{
        text: 'OK',
        itemId: 'ok',
        disabled: true
    }, {
        text: 'Cancel',
        itemId: 'cancel'
    }],

    initComponent: function() {
        var me = this;
        
        var vpSize = Ext.getBody().getViewSize();
        me.setWidth(Math.round(vpSize.width * .9));
        me.setHeight(Math.round(vpSize.height * .5));
        
        me.on('beforeshow', function() {
            me.setTitle(me.generateTitle());
        });
        
        me.on('afterrender', function() {
            
            var form = me.down('#form');
            var filename = me.down('#filename');
            var extension = me.down('#extension');
{'fraction_non_alphanumeric': 0.125723035045934, 'fraction_numerical': 0.011568560734943858, 'mean_word_length': 1.2093198045847426, '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': '3100592', 'n_tokens_mistral': 1697, 'n_tokens_neox': 1568, 'n_words': 347}