<commit_before>import Em from 'ember';
import LlamaBodyCell from 'llama-table/components/llama-body-cell/component';
import layout from 'dummy/templates/components/button-cell';
var computed = Em.computed;
var gt = computed.gt;
var not = computed.not;

var ButtonCell = LlamaBodyCell.extend({
	layout: layout,
	showButton: not('isFooter'),
	actions: {
		click: function () {
			var controller = this.get('root');
			var rows = controller.get('rows');
			var row = this.get('content');
			var index = rows.indexOf(row);
			controller.sendAction(this.get('actionName'), index);
		},
	},<commit_msg>Fix remove button in demo table<commit_after>import Em from 'ember';
import LlamaBodyCell from 'llama-table/components/llama-body-cell/component';
import layout from 'dummy/templates/components/button-cell';
var computed = Em.computed;
var gt = computed.gt;
var not = computed.not;

var ButtonCell = LlamaBodyCell.extend({
	layout: layout,
	showButton: not('isFooter'),
	actions: {
		click: function () {
			var controller = this.get('root');
			var rows = controller.get('rows');
			var rowController = this.get('content');
			var row = Em.get(rowController, 'content');
			var index = rows.indexOf(row);
			controller.sendAction(this.get('actionName'), index);
		},
	},
{'fraction_non_alphanumeric': 0.1468034727703236, 'fraction_numerical': 0.0, 'mean_word_length': 4.84331797235023, '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': '120649', 'n_tokens_mistral': 426, 'n_tokens_neox': 395, 'n_words': 99}