<commit_before>Sis.ApplicationRoute = Ember.Route.extend({
  model: function () {
    console.log("Model: app route");
    currentUser = this.get('auth.currentUser');
    if (currentUser != null) {
      if (currentUser.get('isAuthenticated') && currentUser.get('isTeacher')) {
        return this.get('store').find('semester');
      }
    }

  },

  beforeModel: function () {
    console.log("Before Model: app route");
  }
});<commit_msg>Alters application route, fixes login issues<commit_after>Sis.ApplicationRoute = Ember.Route.extend({
  model: function () {
    console.log("Model: app route");
    currentUser = this.get('auth.currentUser');
    if (currentUser != null) {
      console.log("Model: Returns find semesters");
      return this.get('store').find('semester');
    }

  },

  beforeModel: function () {
    console.log("Before Model: app route");
  }
});
{'fraction_non_alphanumeric': 0.16875712656784492, 'fraction_numerical': 0.0, 'mean_word_length': 3.5968586387434556, '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': '7053001', 'n_tokens_mistral': 274, 'n_tokens_neox': 264, 'n_words': 52}