<commit_before>'use strict';

module.exports = {
  template: require('./navbar.html'),
  controller: ['$log', '$location', '$rootScope', 'authService', NavbarController],
  controllerAs: 'navbarCtrl'
};

function NavbarController($log, $location, $rootScope, authService) {
  $log.debug('NavbarController');

  this.checkPath = function() {
    let path = $location.path();

    if (path === '/login') {
      this.hideNavbarAdmin = true;
    }

    if (path !== '/login') {
      this.hideNavbarAdmin = false;<commit_msg>fixed routing and path issue<commit_after>'use strict';

module.exports = {
  template: require('./navbar.html'),
  controller: ['$log', '$location', '$rootScope', 'authService', NavbarController],
  controllerAs: 'navbarCtrl'
};

function NavbarController($log, $location, $rootScope, authService) {
  $log.debug('NavbarController');

  this.checkPath = function() {
    let path = $location.path();

    this.hideNavbarAdmin = true;

    if (path === '/admin') {
      this.hideNavbarAdmin = false;
{'fraction_non_alphanumeric': 0.17416829745596868, 'fraction_numerical': 0.0, 'mean_word_length': 4.38421052631579, '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': '5547520', 'n_tokens_mistral': 319, 'n_tokens_neox': 306, 'n_words': 68}