<commit_before>Ext.onReady(function() {
	Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);

	Ext.define('Person', {
		extend: 'Ext.data.Model',
		fields: [ 'lastName', 'firstName', 'id', 'street', 'city', 'state', 'zip' ],
		proxy: {
			type: 'direct',
			api: {
				read: person4Action.loadWithPaging,
				create: person4Action.create,
				update: person4Action.update,
				destroy: person4Action.destroy
			},
			reader: {
				root: 'records'
			},
		    writer : {
		        writeAllFields : true
		    }
		}
	});

	Ext.define('State', {
		extend: 'Ext.data.Model',
		fields: [ 'state' ],
		proxy: {
			type: 'direct',
			directFn: person4Action.getStates
		}
	});

	var store = Ext.create('Ext.data.Store', {
		autoDestroy: true,
		model: 'Person',
		pageSize: 50,
		remoteSort: true,
		autoLoad: true
	});

	var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
		clicksToMoveEditor: 1,
		autoCancel: false
	});

	var pagingToolbar = Ext.create('Ext.toolbar.Paging', {<commit_msg>Change root to rootProperty.  Both are supported in extjs5 but it's better to use the new one.<commit_after>Ext.onReady(function() {
	Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);

	Ext.define('Person', {
		extend: 'Ext.data.Model',
		fields: [ 'lastName', 'firstName', 'id', 'street', 'city', 'state', 'zip' ],
		proxy: {
			type: 'direct',
			api: {
				read: person4Action.loadWithPaging,
				create: person4Action.create,
				update: person4Action.update,
				destroy: person4Action.destroy
			},
			reader: {
				rootProperty: 'records'
			},
		    writer : {
		        writeAllFields : true
		    }
		}
	});

	Ext.define('State', {
		extend: 'Ext.data.Model',
		fields: [ 'state' ],
		proxy: {
			type: 'direct',
			directFn: person4Action.getStates
		}
	});

	var store = Ext.create('Ext.data.Store', {
		autoDestroy: true,
		model: 'Person',
		pageSize: 50,
		remoteSort: true,
		autoLoad: true
	});

	var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
		clicksToMoveEditor: 1,
		autoCancel: false
	});

	var pagingToolbar = Ext.create('Ext.toolbar.Paging', {
{'fraction_non_alphanumeric': 0.16113516113516113, 'fraction_numerical': 0.008177008177008177, 'mean_word_length': 3.388185654008439, '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': '4223430', 'n_tokens_mistral': 855, 'n_tokens_neox': 735, 'n_words': 144}