<commit_before>import Ember from 'ember';
import StyleBindingsMixin from 'ember-table/mixins/style-bindings';

export default Ember.View.extend(StyleBindingsMixin, {
  templateName: 'grouped-row-indicator',

  classNameBindings: ['indicatorClass'],

  styleBindings: ['left'],

  hasChildren: false,

  isExpanded: false,

  row: Ember.computed.alias('parentView.row'),

  isShown: Ember.computed(function(){
    return this.get('hasChildren') && !this.get('row.isLoading');
  }).property('hasChildren'),

  expandLevel: 0,

  left: Ember.computed(function() {
    return this.get('expandLevel') * 10 + 5;
  }).property('expandLevel'),

  indicatorClass: Ember.computed(function() {
    var classNames = ['grouping-column-indicator'];
    if (this.get('isExpanded')) {
      classNames.push('unfold');
    }
    return classNames.join(' ');
  }).property('isExpanded'),

  click: function() {
    if(this.get('isShown')){
      this.get('parentView').send('toggleExpansionState');
    }
  }
});
<commit_msg>ond add property 'row.isloading' notify<commit_after>import Ember from 'ember';
import StyleBindingsMixin from 'ember-table/mixins/style-bindings';

export default Ember.View.extend(StyleBindingsMixin, {
  templateName: 'grouped-row-indicator',

  classNameBindings: ['indicatorClass'],

  styleBindings: ['left'],

  hasChildren: false,

  isExpanded: false,

  row: Ember.computed.alias('parentView.row'),

  isShown: Ember.computed(function(){
    return this.get('hasChildren') && !this.get('row.isLoading');
  }).property('hasChildren', 'row.isLoading'),

  expandLevel: 0,

  left: Ember.computed(function() {
    return this.get('expandLevel') * 10 + 5;
  }).property('expandLevel'),

  indicatorClass: Ember.computed(function() {
    var classNames = ['grouping-column-indicator'];
    if (this.get('isExpanded')) {
      classNames.push('unfold');
    }
    return classNames.join(' ');
  }).property('isExpanded'),

  click: function() {
    if(this.get('isShown')){
      this.get('parentView').send('toggleExpansionState');
    }
  }
});

{'fraction_non_alphanumeric': 0.17160913952357804, 'fraction_numerical': 0.003889158969372873, 'mean_word_length': 4.562162162162162, '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': '2870529', 'n_tokens_mistral': 694, 'n_tokens_neox': 665, 'n_words': 111}