<commit_before>Ext.define('AM.view.user.Form', {
  extend: 'Ext.window.Window',
  alias : 'widget.userform',

  title : 'Add / Edit User',
  layout: 'fit',
  autoShow: true,

  initComponent: function() {
    this.items = [{
      xtype: 'form',
      items: [{
        xtype: 'textfield',
        name : 'first_name',
        fieldLabel: '<NAME>'
      }, {
        xtype: 'textfield',
        name : 'last_name',
        fieldLabel: '<NAME>'
      }, {
        xtype: 'textfield',
        name : 'email',
        fieldLabel: 'Email'
      }]
    }];

    this.buttons = [{
      text: 'Save',
      action: 'save'
    }, {
      text: 'Cancel',
      scope: this,
      handler: this.close
    }];

    this.callParent(arguments);
  }
});
<commit_msg>Fix edit user form<commit_after>Ext.define('AM.view.user.Form', {
  extend: 'Ext.window.Window',
  alias : 'widget.userform',

  title : 'Add / Edit User',
  layout: 'fit',
  autoShow: true,

  initComponent: function() {
    this.items = [{
      xtype: 'form',
      items: [{
        xtype: 'hidden',
        name : 'id',
        fieldLabel: 'id'
      }, {
        xtype: 'textfield',
        name : 'first_name',
        fieldLabel: '<NAME>'
      }, {
        xtype: 'textfield',
        name : 'last_name',
        fieldLabel: '<NAME>'
      }, {
        xtype: 'textfield',
        name : 'email',
        fieldLabel: 'Email'
      }]
    }];

    this.buttons = [{
      text: 'Save',
      action: 'save'
    }, {
      text: 'Cancel',
      scope: this,
      handler: this.close
    }];

    this.callParent(arguments);
  }
});

{'fraction_non_alphanumeric': 0.17200251098556182, 'fraction_numerical': 0.0, 'mean_word_length': 1.8413547237076648, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5550828', 'n_tokens_mistral': 539, 'n_tokens_neox': 528, 'n_words': 107}