<commit_before>import Ember from 'ember';

export default Ember.Controller.extend({
  needs: ['people', 'application'],
  selectedPerson: Ember.computed.alias('controllers.people.selectedPerson'),
  errorMessage: null,
  titleIsValid: function() {
    var title = this.get('model.title');

    return (!Ember.isEmpty(title) && title.length > 2);
  }.property('model.title'),
  emailIsValid: function() {
    var email = this.get('model.user.email'),
        re = new RegExp(/\S+@\S+\.\S+/);

    return (!Ember.isEmpty(email) && re.test(email));
  }.property('model.user.email'),
  isValid: function() {
    return (this.get('titleIsValid') && this.get('emailIsValid'));
  }.property('titleIsValid', 'emailIsValid')
});<commit_msg>Update computed property used via ember-watson<commit_after>import Ember from 'ember';

export default Ember.Controller.extend({
  needs: ['people', 'application'],
  selectedPerson: Ember.computed.alias('controllers.people.selectedPerson'),
  errorMessage: null,
  titleIsValid: Ember.computed('model.title', function() {
    var title = this.get('model.title');

    return (!Ember.isEmpty(title) && title.length > 2);
  }),
  emailIsValid: Ember.computed('model.user.email', function() {
    var email = this.get('model.user.email'),
        re = new RegExp(/\S+@\S+\.\S+/);

    return (!Ember.isEmpty(email) && re.test(email));
  }),
  isValid: Ember.computed('titleIsValid', 'emailIsValid', function() {
    return (this.get('titleIsValid') && this.get('emailIsValid'));
  })
});
{'fraction_non_alphanumeric': 0.18997361477572558, 'fraction_numerical': 0.0013192612137203166, 'mean_word_length': 4.536496350364963, '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': '3845313', 'n_tokens_mistral': 494, 'n_tokens_neox': 480, 'n_words': 91}