<commit_before>var route = Ember.Route.extend({
  renderTemplate: function(_, error){
    this._super();
    var self = this;
    //setTimeout(function(){
    //  self.controllerFor('application').reportError(error);
    //  var url = self.controllerFor('application').urls.about;
    //  window.location = url;
    //}, 3000);
  },
});

module.exports = route;
<commit_msg>Redirect in the next run after reporting.<commit_after>var route = Ember.Route.extend({
  renderTemplate: function(_, error){
    this._super();
    var self = this;
    Ember.run.once(_, function(){
      self.controllerFor('application').reportError(error);
      Ember.run.next(_, function(){
        var url = self.controllerFor('application').urls.about;
        window.location = url;
      });
    });
  },
});

module.exports = route;

{'fraction_non_alphanumeric': 0.16523867809057527, 'fraction_numerical': 0.004895960832313341, 'mean_word_length': 3.194871794871795, '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': '2135875', 'n_tokens_mistral': 247, 'n_tokens_neox': 244, 'n_words': 48}