<commit_before>App.LoadingRoute = Ember.Route.extend(
{
  enter: function()
  {
    Ember.$('#loading').fadeIn('fast');
  },
  exit: function()
  {
    Ember.$('#loading').fadeOut('slow');
  },
  renderTemplate: function()
  {
    this.render('loading', {into: 'application'});
  }
});<commit_msg>fix missing parentView bug in case the app just started and there is no application view yett<commit_after>App.LoadingRoute = Ember.Route.extend(
{
  enter: function()
  {
    Ember.$('.loading').fadeIn('fast');
  },
  exit: function()
  {
    Ember.$('.loading').fadeOut('slow');
  },
  renderTemplate: function()
  {
    if (this.controllerFor('products').get('categoryMap').length > 0)
    {
      this.render('loading', {into: 'application'});
    }
    else
    {
      this._super();
    }
  }
});
{'fraction_non_alphanumeric': 0.195, 'fraction_numerical': 0.00125, 'mean_word_length': 3.377049180327869, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5307550', 'n_tokens_mistral': 271, 'n_tokens_neox': 263, 'n_words': 47}