<commit_before>import Ember from 'ember';
import EmberValidations from 'ember-validations';

export default Ember.Controller.extend(EmberValidations, {
  isEditing: false,
  showBanner: Ember.computed("session.isAuthenticated", function() {
    return !this.get("session").get("isAuthenticated");
  }),
  actions: {
    startEditing() {
      this.set("isEditing", true);
      this.set("changeSet", this.get("model.wordset").generateInitialChangeSet());
    },
    cancel() {
      this.set("isEditing", false);
    },
    submitProposal() {
      var _this = this;
      this.store.createRecord('proposal', {
        wordset: this.get("model.wordset"),
        lang: this.get("model.wordset.lang"),
        changes: this.get("changeSet")
      }).save().then((proposal) => {
        _this.transitionTo("proposal.index", proposal.get("id"));
      });
    }
  }
});<commit_msg>alt spellings removes main spelling and presents seqs<commit_after>import Ember from 'ember';
import EmberValidations from 'ember-validations';

export default Ember.Controller.extend(EmberValidations, {
  isEditing: false,
  showBanner: Ember.computed("session.isAuthenticated", function() {
    return !this.get("session").get("isAuthenticated");
  }),
  altSpellings: Ember.computed("model.wordset.seqs", function() {
    var otherSeqs = this.get("model.wordset.seqs");
    return otherSeqs.removeObject(this.get("model"));
  }),
  actions: {
    startEditing() {
      this.set("isEditing", true);
      this.set("changeSet", this.get("model.wordset").generateInitialChangeSet());
    },
    cancel() {
      this.set("isEditing", false);
    },
    submitProposal() {
      var _this = this;
      this.store.createRecord('proposal', {
        wordset: this.get("model.wordset"),
        lang: this.get("model.wordset.lang"),
        changes: this.get("changeSet")
      }).save().then((proposal) => {
        _this.transitionTo("proposal.index", proposal.get("id"));
      });
    }
  }
});
{'fraction_non_alphanumeric': 0.1702127659574468, 'fraction_numerical': 0.0, 'mean_word_length': 3.582366589327146, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1839174', 'n_tokens_mistral': 623, 'n_tokens_neox': 621, 'n_words': 97}