<commit_before>'use strict';

function HeaderController($scope, $rootScope, UISessionService) {

  $scope.getCurrentHeading = function getCurrentHeading() {
    var currentHeading = $scope.getActiveFeature();
    if (!$scope.online) {
      currentHeading += '*';
    }
    return currentHeading;
  }

  $scope.switchFeature = function(){
    var activeFeature = $scope.getActiveFeature();
    if (activeFeature === 'inbox'){
      UISessionService.changeFeature('tasks');
    }else if (activeFeature === 'tasks'){
      UISessionService.changeFeature('notes');
    }else if (activeFeature === 'notes'){
      UISessionService.changeFeature('archive');
    }else if (activeFeature === 'archive'){
      UISessionService.changeFeature('inbox');
    }
  };
}
HeaderController['$inject'] = ['$scope', '$rootScope', 'UISessionService'];
angular.module('em.app').controller('HeaderController', HeaderController);<commit_msg>Added lists to quick switching<commit_after>'use strict';

function HeaderController($scope, $rootScope, UISessionService) {

  $scope.getCurrentHeading = function getCurrentHeading() {
    var currentHeading = $scope.getActiveFeature();
    if (!$scope.online) {
      currentHeading += '*';
    }
    return currentHeading;
  }

  $scope.switchFeature = function(){
    var activeFeature = $scope.getActiveFeature();
    if (activeFeature === 'inbox'){
      UISessionService.changeFeature('tasks');
    }else if (activeFeature === 'tasks'){
      UISessionService.changeFeature('notes');
    }else if (activeFeature === 'notes'){
      UISessionService.changeFeature('lists');
    }else if (activeFeature === 'lists'){
      UISessionService.changeFeature('archive');
    }else if (activeFeature === 'archive'){
      UISessionService.changeFeature('inbox');
    }
  };
}
HeaderController['$inject'] = ['$scope', '$rootScope', 'UISessionService'];
angular.module('em.app').controller('HeaderController', HeaderController);
{'fraction_non_alphanumeric': 0.15895061728395063, 'fraction_numerical': 0.0, 'mean_word_length': 4.754437869822485, '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': '1889939', 'n_tokens_mistral': 554, 'n_tokens_neox': 551, 'n_words': 102}