<commit_before>Router.hooks = {
  renderNotFoundTemplate: function () {
    var self = this;
    var data = self.getData();
    if ((data === null || typeof data === 'undefined') 
        && self.notFoundTemplate) {
      self.render(self.notFoundTemplate);
      this.renderYields();
      self.stop();
    }
  },

  renderLoadingTemplate: function () {
    var self = this;

    if (!this.ready()) {
      if (this.loadingTemplate) {
        this.render(this.loadingTemplate);
        this.renderRegions();
      }
    }
  }
};<commit_msg>Fix standard hooks...<commit_after>Router.hooks = {
  notFound: function (pause) {
    var data = this.data();
    console.log('data from notFound hook: ', data);
    if ((data === null || typeof data === 'undefined') 
        && this.notFoundTemplate) {
      this.render(this.notFoundTemplate);
      this.renderRegions();
      pause();
    }
  },

  loading: function (pause) {
    var self = this;

    if (!this.ready()) {
      if (this.loadingTemplate) {
        this.render(this.loadingTemplate);
        this.renderRegions();
        pause();
      }
    }
  }
};
{'fraction_non_alphanumeric': 0.1570915619389587, 'fraction_numerical': 0.0, 'mean_word_length': 2.3890577507598785, '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': '1957827', 'n_tokens_mistral': 340, 'n_tokens_neox': 336, 'n_words': 67}