<commit_before>import Ember from 'ember';

export default Ember.Component.extend({
  actions: {
    toggleHelp: function () {
      this.toggleProperty('showHelp');
    },
    acknowledgeNoDataModal: function () {
      this.model.set('statement.noData', false);
    }
  }
});<commit_msg>Checks if the form is ready to "move along" and passes the action to the contoller if it is<commit_after>import Ember from 'ember';

export default Ember.Component.extend({
  actions: {
    toggleHelp: function () {
      this.toggleProperty('showHelp');
    },
    acknowledgeNoDataModal: function () {
      this.model.set('statement.noData', false);
      this.set('showNotReadyMessage', false);
    },

    nextStep: function () {
      if (this.isReady()) {
        this.sendAction();
      }
      else {
        this.set('showNotReadyMessage', true);
      }
    }
  },
  isReady: function () {

    //if any of this array is true, then we're ready to move forward
    var options = ['identityData', 'locationData', 'userBehaviourData', 'computerNetworkData', 'financialData', 'otherData'];
    for (var i = options.length - 1; i >= 0; i--) {
      if (this.get('model.statement.' + options[i])) {
        return true;
      }
    }
    return false;
  }


});
{'fraction_non_alphanumeric': 0.14262948207171314, 'fraction_numerical': 0.0015936254980079682, 'mean_word_length': 2.8646153846153846, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1058594', 'n_tokens_mistral': 383, 'n_tokens_neox': 377, 'n_words': 96}