<commit_before>import Ember from 'ember';
import getConfig from 'ember-authenticate-me/configuration';
const { run } = Ember;

export default Ember.ObjectController.extend({
  password: null,
  passwordConfirmation: null,
  error: null,

  checkPassword: Ember.observer('password', 'passwordConfirmation', function() {
    var callback = this.get('checkPasswordCallback');

    run(() => {
      run.cancel(callback);

      callback = run.later(this, function() {
        const password = this.get('password');
        const passwordConfirmation = this.get('passwordConfirmation');

        this.set('error', null);

        if (!password) {
          this.set('error', "Password cannot be blank.");
        }
        if (password && password !== passwordConfirmation) {
          this.set('error', "Passwords must match.");
        }
      }, 600);

      this.set('checkPasswordCallback', callback);
    });
  }),
<commit_msg>Remove invalid ObjectController<commit_after>import Ember from 'ember';
import getConfig from 'ember-authenticate-me/configuration';
const { run } = Ember;

export default Ember.Controller.extend({
  password: null,
  passwordConfirmation: null,
  error: null,

  checkPassword: Ember.observer('password', 'passwordConfirmation', function() {
    var callback = this.get('checkPasswordCallback');

    run(() => {
      run.cancel(callback);

      callback = run.later(this, function() {
        const password = this.get('password');
        const passwordConfirmation = this.get('passwordConfirmation');

        this.set('error', null);

        if (!password) {
          this.set('error', "Password cannot be blank.");
        }
        if (password && password !== passwordConfirmation) {
          this.set('error', "Passwords must match.");
        }
      }, 600);

      this.set('checkPasswordCallback', callback);
    });
  }),

{'fraction_non_alphanumeric': 0.14331550802139037, 'fraction_numerical': 0.0032085561497326204, 'mean_word_length': 3.1485587583148558, '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': '4209884', 'n_tokens_mistral': 517, 'n_tokens_neox': 492, 'n_words': 120}