<commit_before>import Ember from 'ember';
import layout from '../templates/components/simple-table-cell';

export default Ember.Component.extend({
  layout,
  tagName: 'th',

  classNameBindings: ['columnsClass'],
  attributeBindings: ['rowspan', 'colspan', 'columnsStyle:style'],

  columnsClass: Ember.computed.alias('columns.classes'),
  columnsStyle: Ember.computed('columns.style', {
    get() {
      return Ember.String.htmlSafe(this.get('columns.style'));
    }
  }),

  actions: {
    sortBy(key) {
      return this.get('sortAction')(key);
    }
  }

});
<commit_msg>Fix styles and classes for grouped columns<commit_after>import Ember from 'ember';
import layout from '../templates/components/simple-table-cell';

export default Ember.Component.extend({
  layout,
  tagName: 'th',

  classNameBindings: ['columnsClass'],
  attributeBindings: ['rowspan', 'colspan', 'columnsStyle:style'],

  columnsClass: Ember.computed('columns.classes', {
    get() {
      let columns = this.get('columns');
      let column = Ember.isArray(columns) ? columns[0] : columns;
      return Ember.String.htmlSafe(column.classes);
    }
  }),
  columnsStyle: Ember.computed('columns.style', {
    get() {
      let columns = this.get('columns');
      let column = Ember.isArray(columns) ? columns[0] : columns;
      return Ember.String.htmlSafe(column.style);
    }
  }),

  actions: {
    sortBy(key) {
      return this.get('sortAction')(key);
    }
  }

});

{'fraction_non_alphanumeric': 0.16013745704467353, 'fraction_numerical': 0.0013745704467353953, 'mean_word_length': 3.8052805280528053, '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': '113263', 'n_tokens_mistral': 461, 'n_tokens_neox': 455, 'n_words': 87}