<commit_before>Hummingbird.ReviewsIndexRoute = Ember.Route.extend(Hummingbird.Paginated, {
  fetchPage: function(page) {
    return this.store.find('review', {
      anime_id: this.modelFor('anime').get('id'),
      page: page
    });
  },
  
  afterModel: function(resolvedModel) {
    var anime = this.modelFor('anime');
    return Hummingbird.TitleManager.setTitle(anime.get('canonicalTitle') + " Reviews");
  }
});<commit_msg>Scroll to top when entering reviews route.<commit_after>Hummingbird.ReviewsIndexRoute = Ember.Route.extend(Hummingbird.Paginated, {
  fetchPage: function(page) {
    return this.store.find('review', {
      anime_id: this.modelFor('anime').get('id'),
      page: page
    });
  },

  afterModel: function(resolvedModel) {
    Ember.run.next(function() { window.scrollTo(0, 0); });
    var anime = this.modelFor('anime');
    return Hummingbird.TitleManager.setTitle(anime.get('canonicalTitle') + " Reviews");
  }
});
{'fraction_non_alphanumeric': 0.15961945031712474, 'fraction_numerical': 0.0021141649048625794, 'mean_word_length': 4.320224719101123, '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': '525108', 'n_tokens_mistral': 313, 'n_tokens_neox': 308, 'n_words': 45}