<commit_before>Ext.require([
    'AIDRFM.common.AIDRFMFunctions',
    'AIDRFM.common.StandardLayout',
    'AIDRFM.common.Header',
    'AIDRFM.common.Footer'
]);

Ext.define('AIDRFM.collection-create.view.CollectionCreatePanel', {
    extend: 'AIDRFM.common.StandardLayout',
    alias: 'widget.collection-create',

    fieldDefaults: {
        labelAlign: 'left',
        msgTarget: 'side'
    },

    layout: {
        type: 'vbox',
        align: 'stretch'
    },

    initComponent: function () {

        this.breadcrumbs = Ext.create('Ext.container.Container', {
            html: '<div class="bread-crumbs"><a href="home">My Collections</a><span>&nbsp;>&nbsp;Create Collection</span></div>',
            margin: 0,
            padding: 0
        });

        this.pageTitle = Ext.create('Ext.form.Label', {
            text: 'Create New Collection',
            padding: '0 0 0 0',
            cls: 'header-h1 bold-text'
        });

        this.codeE = Ext.create('Ext.form.field.Text', {
            hidden:true,
            fieldLabel: 'Short name',
            name: 'code',
            allowBlank: false,
            width: 370,
            emptyText: 'e.g., Sandy2012 or EQJapan2011',
            maxLength: 64,
            maxLengthText: 'The maximum length for this field is 64',
            labelWidth: 130,
            maskRe: /[^ \\\/]/
        });

        this.nameE = Ext.create('Ext.form.field.Text', {
            fieldLabel: 'Crisis Name',
            id: 'nameTextField',
            name: 'name',
            allowBlank: false,
            labelWidth: 240,
            emptyText: 'e.g., Hurricane Sandy',
            flex:1 ,
            maskRe: /[ a-z0-9_-]/i,
            regex: /^[ a-zA-Z0-9_-]+$/,
            invalidText: 'Not a valid crisis name. Supports alphabets and numbers no special characters except underscore and hyphen".'
        });

        this.keywordsE = Ext.create('Ext.form.field.TextArea', {
            fieldLabel: 'Comma-Separated Terms and Hashtags (Tip: use many terms, and be specific)',<commit_msg>added white space<commit_after>Ext.require([
    'AIDRFM.common.AIDRFMFunctions',
    'AIDRFM.common.StandardLayout',
    'AIDRFM.common.Header',
    'AIDRFM.common.Footer'
]);

Ext.define('AIDRFM.collection-create.view.CollectionCreatePanel', {
    extend: 'AIDRFM.common.StandardLayout',
    alias: 'widget.collection-create',

    fieldDefaults: {
        labelAlign: 'left',
        msgTarget: 'side'
    },

    layout: {
        type: 'vbox',
        align: 'stretch'
    },

    initComponent: function () {

        this.breadcrumbs = Ext.create('Ext.container.Container', {
            html: '<div class="bread-crumbs"><a href="home">My Collections</a><span>&nbsp;>&nbsp;Create Collection</span></div>',
            margin: 0,
            padding: 0
        });

        this.pageTitle = Ext.create('Ext.form.Label', {
            text: 'Create New Collection',
            padding: '0 0 0 0',
            cls: 'header-h1 bold-text'
        });

        this.codeE = Ext.create('Ext.form.field.Text', {
            hidden:true,
            fieldLabel: 'Short name',
            name: 'code',
            allowBlank: false,
            width: 370,
            emptyText: 'e.g., Sandy2012 or EQJapan2011',
            maxLength: 64,
            maxLengthText: 'The maximum length for this field is 64',
            labelWidth: 130,
            maskRe: /[^ \\\/]/
        });

        this.nameE = Ext.create('Ext.form.field.Text', {
            fieldLabel: 'Crisis Name',
            id: 'nameTextField',
            name: 'name',
            allowBlank: false,
            labelWidth: 240,
            emptyText: 'e.g., H<NAME>',
            flex:1 ,
            maskRe: /[ a-z0-9-_ ]/i,
            regex: /^[ a-zA-Z0-9-_ ]+$/,
            invalidText: 'Not a valid crisis name. Supports alphabets and numbers no special characters except underscore and hyphen".'
        });

        this.keywordsE = Ext.create('Ext.form.field.TextArea', {
            fieldLabel: 'Comma-Separated Terms and Hashtags (Tip: use many terms, and be specific)',
{'fraction_non_alphanumeric': 0.14132553606237816, 'fraction_numerical': 0.01608187134502924, 'mean_word_length': 1.8827247191011236, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 18, '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': '539189', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1229, 'n_words': 265}