<commit_before>export default Ember.Component.extend({
  didInsertElement() {
    this._super();

    const prefillUsername = $('#hidden-login-form input[name=username]').val();
    if (prefillUsername) {
      this.set('loginName', prefillUsername);
      this.set('loginPassword', $('#hidden-login-form input[name=password]').val());
    } else if ($.cookie('email')) {
      this.set('loginName', $.cookie('email'));
    }

    Ember.run.schedule('afterRender', function() {
      $('#login-account-password, #login-account-name').keydown(e => {
        if (e.keyCode === 13) {
          this.sendAction();
        }
      });
    });
  },

  mouseMove(e) {
    this.set('screenX', e.screenX);
    this.set('screenY', e.screenY);
  }
});
<commit_msg>FIX: Can't login with enter key.<commit_after>export default Ember.Component.extend({
  didInsertElement() {
    this._super();

    const prefillUsername = $('#hidden-login-form input[name=username]').val();
    if (prefillUsername) {
      this.set('loginName', prefillUsername);
      this.set('loginPassword', $('#<PASSWORD> input[name=password]').val());
    } else if ($.cookie('email')) {
      this.set('loginName', $.cookie('email'));
    }

    Ember.run.schedule('afterRender', () => {
      $('#login-account-password, #login-account-name').keydown(e => {
        if (e.keyCode === 13) {
          this.sendAction();
        }
      });
    });
  },

  mouseMove(e) {
    this.set('screenX', e.screenX);
    this.set('screenY', e.screenY);
  }
});

{'fraction_non_alphanumeric': 0.20687376074025116, 'fraction_numerical': 0.0026437541308658294, 'mean_word_length': 3.091891891891892, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, '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': '136850', 'n_tokens_mistral': 492, 'n_tokens_neox': 482, 'n_words': 72}