<commit_before>AT.prototype.atNavButtonHelpers = {
    text: function(){
        var key = Meteor.userId() ? AccountsTemplates.texts.navSignOut : AccountsTemplates.texts.navSignIn;
        return T9n.get(key, markIfMissing=false);
    }
};

AT.prototype.atNavButtonEvents = {
    'click #at-nav-button': function(event){
        event.preventDefault();
        if (Meteor.userId())
            AccountsTemplates.logout();
        else
            AccountsTemplates.linkClick("signIn");
    },
};<commit_msg>Syntax refactoring NavButton helpers and events<commit_after>AT.prototype.atNavButtonHelpers = {
  text: function() {
    var key;

    if (Meteor.userId()) {
      key = AccountsTemplates.texts.navSignOut;
    } else {
      key = AccountsTemplates.texts.navSignIn;
    }

    return T9n.get(key, markIfMissing = false);
  }
};

AT.prototype.atNavButtonEvents = {
  'click #at-nav-button': function(event){
    event.preventDefault();

    if (Meteor.userId()){
      AccountsTemplates.logout();
    } else {
      AccountsTemplates.linkClick("signIn");
    }
  },
};
{'fraction_non_alphanumeric': 0.13488372093023257, 'fraction_numerical': 0.0018604651162790699, 'mean_word_length': 3.045112781954887, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7471929', 'n_tokens_mistral': 352, 'n_tokens_neox': 352, 'n_words': 52}