<commit_before>import Em from 'ember';
var get = Em.get;

var LlamaColumngroup = Em.View.extend({
	classNames: 'llama-columngroup',
	columns: null,

	width: function () {
		var total = 0;
		this.get('columns').forEach(function (column) {
			if (!get(column, 'isHidden')) {
				total += get(column, 'width');
			}
		});
		return total;
	}.property('columns.@each'),

	setWidth: function () {
		var width = this.get('width');
		this.$().width(width);
	}.observes('width').on('didInsertElement')
});

export default LlamaColumngroup;
<commit_msg>Recalculate columngroup width on column width/visibility change<commit_after>import Em from 'ember';
var get = Em.get;

var LlamaColumngroup = Em.View.extend({
	classNames: 'llama-columngroup',
	columns: null,

	width: function () {
		var total = 0;
		this.get('columns').forEach(function (column) {
			if (!get(column, 'isHidden')) {
				total += get(column, 'width');
			}
		});
		return total;
	}.property('columns.@each.width', 'columns.@each.isHidden'),

	setWidth: function () {
		var width = this.get('width');
		this.$().width(width);
	}.observes('width').on('didInsertElement')
});

export default LlamaColumngroup;

{'fraction_non_alphanumeric': 0.1815068493150685, 'fraction_numerical': 0.0017123287671232876, 'mean_word_length': 4.566666666666666, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1052913', 'n_tokens_mistral': 438, 'n_tokens_neox': 386, 'n_words': 87}