<commit_before>import Ember from 'ember';
import ParentMixin from 'ember-paper/mixins/parent-mixin';

const { Component, computed, on, observer } = Ember;

export default Component.extend(ParentMixin, {
  tagName: '',
  isValid: computed('childComponents.@each.isInvalid', function() {
    return !this.get('childComponents').isAny('isInvalid');
  }),
  isInvalid: computed.not('isValid'),
  sendToParent: on('init', observer('isValid', function() {
    if (!this.get('parentAction')) {
      return;
    }
    this.get('parentAction')(this.get('isValid'));
  })),
  actions: {
    submit() {<commit_msg>Simplified form<commit_after>import Ember from 'ember';
import ParentMixin from 'ember-paper/mixins/parent-mixin';

const { Component, computed, on, observer } = Ember;

export default Component.extend(ParentMixin, {
  tagName: '',
  isValid: computed.not('isInvalid'),
  isInvalid: computed('childComponents.@each.isInvalid', function() {
    return this.get('childComponents').isAny('isInvalid');
  }),
  sendToParent: on('init', observer('isValid', function() {
    if (!this.get('parentAction')) {
      return;
    }
    this.get('parentAction')(this.get('isValid'));
  })),
  actions: {
    submit() {
{'fraction_non_alphanumeric': 0.17423616845582163, 'fraction_numerical': 0.0, 'mean_word_length': 4.883495145631068, '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': '1758316', 'n_tokens_mistral': 374, 'n_tokens_neox': 378, 'n_words': 71}