<commit_before>import Ember from 'ember';
import layout from '../templates/components/techno-table';
import ColumnSpec from '../lib/column-spec';

export default Ember.Component.extend({
  layout: layout,
  columnSpecs: Ember.computed('columns', function() {
    let cols = this.get('columns');
    let specs = Ember.A();
    for (let c of cols) {
      let s = ColumnSpec.create(c);
      specs.push(s);
    }
    return specs;
  }),
  actions: {
    showCreateComponent: function(obj) {
      this.set('newObj', obj);
      this.set('showCreate',true);
    },
    newObjChanged: function() {
      this.get('objModified')(this.get('newObj'));
    }
  }
});
<commit_msg>Use passed object in objChanged rather than table held version, to pass along the change set<commit_after>import Ember from 'ember';
import layout from '../templates/components/techno-table';
import ColumnSpec from '../lib/column-spec';

export default Ember.Component.extend({
  layout: layout,
  columnSpecs: Ember.computed('columns', function() {
    let cols = this.get('columns');
    let specs = Ember.A();
    for (let c of cols) {
      let s = ColumnSpec.create(c);
      specs.push(s);
    }
    return specs;
  }),
  actions: {
    showCreateComponent: function(obj) {
      this.set('newObj', obj);
      this.set('showCreate',true);
    },
    newObjChanged: function(obj) {
      this.get('objModified')(obj);
    }
  }
});

{'fraction_non_alphanumeric': 0.1547196593328602, 'fraction_numerical': 0.0, 'mean_word_length': 3.234234234234234, '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': '2953513', 'n_tokens_mistral': 451, 'n_tokens_neox': 446, 'n_words': 107}