<commit_before>import Ember from 'ember';

export default Ember.Route.extend({
  enter: function() {
    $('BODY').addClass('farm');
  },

  exit: function() {
    $('BODY').removeClass('farm');
  },

  model: function() {
    return this.controllerFor('application').get('error');
  },

  afterModel: function(model) {
    if ( !model )
    {
//      this.transitionTo('hosts');
    }
  }
});<commit_msg>Redirect back to index on fail-whale<commit_after>import Ember from 'ember';

export default Ember.Route.extend({
  enter: function() {
    $('BODY').addClass('farm');
  },

  exit: function() {
    $('BODY').removeClass('farm');
  },

  model: function() {
    return this.controllerFor('application').get('error');
  },

  afterModel: function(model) {
    if ( !model )
    {
      this.transitionTo('index');
    }
  }
});
{'fraction_non_alphanumeric': 0.19614921780986763, 'fraction_numerical': 0.0, 'mean_word_length': 3.356020942408377, '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': '2452587', 'n_tokens_mistral': 283, 'n_tokens_neox': 273, 'n_words': 49}