<commit_before>Ext.define('MyCustomer.view.customer.CustomerPanel', {
	extend: 'Ext.grid.Panel',

	reference: 'customerGrid',

	title: 'Customers',
	bind: {
		store: '{customers}',
		selection: '{selectedCustomer}'
	},

	listeners: {
		itemclick: 'onItemClick'
	},

	columns: [ {
		dataIndex: 'firstName',
		text: '<NAME>',
		flex: 1
	}, {
		dataIndex: 'lastName',
		text: '<NAME>',
		flex: 1
	}, {
		dataIndex: 'email',
		text: 'Email',
		flex: 1
	}, {
		dataIndex: 'sex',
		text: 'Gender',
		renderer: function(value) {
			if (value === 'M') {
				return 'male';
			}
			return 'female';
		}
	}, {
		dataIndex: 'zipCode',
		text: 'ZIP'
	}, {
		dataIndex: 'city',
		text: 'City',
		flex: 1
	}, {
		dataIndex: 'category',
		text: 'Category'
	}, {
		dataIndex: 'newsletter',
		text: 'Newsletter',
		xtype: 'booleancolumn',
		trueText: 'Yes',
		falseText: ''
	} ],

	dockedItems: [ {
		xtype: 'toolbar',
		dock: 'top',
		items: [ {
			text: 'New',
			handler: 'newCustomer'
		}, {
			text: 'Delete',
			handler: 'deleteCustomer',
			bind: {
				disabled: '{!selectedCustomer}'
			}
		}, '-', {
			xtype: 'label',
			bind: {
				text: 'Number of Customers: {numberOfCustomers}'
			}
		}, '->', {
			fieldLabel: 'Category',
			xtype: 'combobox',
			labelWidth: 60,
			displayField: 'name',
			valueField: 'value',
			editable: false,
			value: 'All',
			bind: {
				store: '{categories}',
				selection: '{selectedCategory}'
			},
			listeners: {
				change: 'onCategoryChange'
			}
		}, {
			fieldLabel: 'Name',
			labelWidth: 40,
			xtype: 'textfield',
			bind: '{nameFilter}',
			listeners: {
				change: {
					fn: 'onNameChange',
					buffer: 350
				}
			},
			triggers: {
				clear: {
					cls: 'x-form-clear-trigger',
					handler: function(tf) {
						tf.setValue('');
					}
				}
			}
		} ]
	}, {
		xtype: 'pagingtoolbar',
		dock: 'bottom',
		reference: 'pagingtoolbar',
		bind: {
			store: '{customers}'
		}
	} ]

});<commit_msg>Remove unnecessary reference<commit_after>Ext.define('MyCustomer.view.customer.CustomerPanel', {
	extend: 'Ext.grid.Panel',

	reference: 'customerGrid',

	title: 'Customers',
	bind: {
		store: '{customers}',
		selection: '{selectedCustomer}'
	},

	listeners: {
		itemclick: 'onItemClick'
	},

	columns: [ {
		dataIndex: 'firstName',
		text: '<NAME>',
		flex: 1
	}, {
		dataIndex: 'lastName',
		text: '<NAME>',
		flex: 1
	}, {
		dataIndex: 'email',
		text: 'Email',
		flex: 1
	}, {
		dataIndex: 'sex',
		text: 'Gender',
		renderer: function(value) {
			if (value === 'M') {
				return 'male';
			}
			return 'female';
		}
	}, {
		dataIndex: 'zipCode',
		text: 'ZIP'
	}, {
		dataIndex: 'city',
		text: 'City',
		flex: 1
	}, {
		dataIndex: 'category',
		text: 'Category'
	}, {
		dataIndex: 'newsletter',
		text: 'Newsletter',
		xtype: 'booleancolumn',
		trueText: 'Yes',
		falseText: ''
	} ],

	dockedItems: [ {
		xtype: 'toolbar',
		dock: 'top',
		items: [ {
			text: 'New',
			handler: 'newCustomer'
		}, {
			text: 'Delete',
			handler: 'deleteCustomer',
			bind: {
				disabled: '{!selectedCustomer}'
			}
		}, '-', {
			xtype: 'label',
			bind: {
				text: 'Number of Customers: {numberOfCustomers}'
			}
		}, '->', {
			fieldLabel: 'Category',
			xtype: 'combobox',
			labelWidth: 60,
			displayField: 'name',
			valueField: 'value',
			editable: false,
			value: 'All',
			bind: {
				store: '{categories}',
				selection: '{selectedCategory}'
			},
			listeners: {
				change: 'onCategoryChange'
			}
		}, {
			fieldLabel: 'Name',
			labelWidth: 40,
			xtype: 'textfield',
			bind: '{nameFilter}',
			listeners: {
				change: {
					fn: 'onNameChange',
					buffer: 350
				}
			},
			triggers: {
				clear: {
					cls: 'x-form-clear-trigger',
					handler: function(tf) {
						tf.setValue('');
					}
				}
			}
		} ]
	}, {
		xtype: 'pagingtoolbar',
		dock: 'bottom',
		bind: {
			store: '{customers}'
		}
	} ]

});
{'fraction_non_alphanumeric': 0.19331433013734128, 'fraction_numerical': 0.005700958797615963, 'mean_word_length': 2.848454636091725, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '7319320', 'n_tokens_mistral': 1823, 'n_tokens_neox': 1471, 'n_words': 294}