<commit_before>import Em from 'ember';
import RemoveButton from '../views/remove-button-cell';
var set = Em.set;
var get = Em.get;

var IndexController = Em.Controller.extend({
	tableColumns: [
		{
			name: 'a',
			label: 'A',
			order: 1,
			type: 'number',
			width: 80
		},
		{
			name: 'b',
			label: 'B',
			order: 2,
			type: 'number',
			width: 80
		},
		{
			name: 'c',
			label: 'C',
			order: 3,
			type: 'number',
			width: 80
		},
		{
			name: 'd',
			label: 'D',
			order: 4,
			type: 'number',
			width: 80
		},
		{
			name: 'e',
			label: 'E',
			order: 5,
			type: 'number',
			width: 80
		}
	],
	tableData: [],
	tableConfig: {
		maxHeight: 200,
		isSortable: false,
		isResizable: false
	},
	actions: {
		add: function (num) {
			var label = 'Add %@ rows'.fmt(num);
			console.profile('Adding rows');
			console.time(label);
			for (var i = 0; i < num; i++) {
				this.get('tableData').pushObject({
					a: Math.random(),
					b: Math.random(),
					c: Math.random(),
					d: Math.random(),
					e: Math.random()
				});
			}
			console.timeEnd(label);
			label = 'Render %@ rows'.fmt(num);
			console.time(label);
			Em.run.next(function () {
				console.timeEnd(label);
			});
			console.profileEnd();
		},
		clear: function () {
			console.profile('Clearing rows');
			var len = this.get('tableData.length');
			var label = 'Clear %@ rows'.fmt(len);
			console.time(label);
			this.get('tableData').clear();
			console.timeEnd(label);
			console.profileEnd();
		}
	}
});

export default IndexController;
<commit_msg>Push stress test data as single payload<commit_after>import Em from 'ember';
import RemoveButton from '../views/remove-button-cell';
var set = Em.set;
var get = Em.get;

var IndexController = Em.Controller.extend({
	tableColumns: [
		{
			name: 'a',
			label: 'A',
			order: 1,
			type: 'number',
			width: 80
		},
		{
			name: 'b',
			label: 'B',
			order: 2,
			type: 'number',
			width: 80
		},
		{
			name: 'c',
			label: 'C',
			order: 3,
			type: 'number',
			width: 80
		},
		{
			name: 'd',
			label: 'D',
			order: 4,
			type: 'number',
			width: 80
		},
		{
			name: 'e',
			label: 'E',
			order: 5,
			type: 'number',
			width: 80
		}
	],
	tableData: [],
	tableConfig: {
		maxHeight: 200,
		isSortable: false,
		isResizable: false
	},
	actions: {
		add: function (num) {
			var label = 'Add %@ rows'.fmt(num);
			console.profile('Adding rows');
			console.time(label);
			var data = [];
			for (var i = 0; i < num; i++) {
				data.push({
					a: Math.random(),
					b: Math.random(),
					c: Math.random(),
					d: Math.random(),
					e: Math.random()
				});
			}
			this.get('tableData').pushObjects(data);
			console.timeEnd(label);
			label = 'Render %@ rows'.fmt(num);
			console.time(label);
			Em.run.next(function () {
				console.timeEnd(label);
			});
			console.profileEnd();
		},
		clear: function () {
			console.profile('Clearing rows');
			var len = this.get('tableData.length');
			var label = 'Clear %@ rows'.fmt(len);
			console.time(label);
			this.get('tableData').clear();
			console.timeEnd(label);
			console.profileEnd();
		}
	}
});

export default IndexController;

{'fraction_non_alphanumeric': 0.18871533312081606, 'fraction_numerical': 0.012113484220592923, 'mean_word_length': 2.678780773739742, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3816271', 'n_tokens_mistral': 1477, 'n_tokens_neox': 1166, 'n_words': 271}