<commit_before>/**
 * AngularJS Tutorial 1
 * @author <NAME> <<EMAIL>>
 */

/**
 * Main AngularJS Web Application
 tutorialWebApp
 */
 var servicelocation = "";
var app = angular.module('clientApp', [
'ngRoute', 'angular-timezone-selector'
]).directive('portalFrame', function() {
    return{
      restrict: "E",
         replace: true,
       transclude: true,
    compile: function (scope, element, attrs) {
      
    }
  }
})
.directive("bootstrapNavbar", function($location) {
   return {
     restrict: "E",
     replace: true,
     transclude: true,
     templateUrl: "components/bootstrapNavbar.html",
     compile: function(element, attrs) {  // (1)
       var li, liElements, links, index, length;

       servicelocation = "https://" + $location.$$host + "/api/"; //Update the service location to that of the host.

       liElements = $(element).find("#js-navbar-collapse li");   // (2)
       for (index = 0, length = liElements.length; index < length; index++) {
         li = liElements[index];
         links = $(li).find("a");  // (3)
         if (links[0].textContent === attrs.currentTab) $(li).addClass("active"); // (4)
       }
     }
   }})
;

/**
 * Configure the Routes
 */
app.config(['$routeProvider', function ($routeProvider) {
  $routeProvider
    // Home
    .when("/", {templateUrl: "views/main.html", controller: "MainCtrl"})
    // Pages
    .when('/ConfigFiles', {
      templateUrl: 'views/configfiles.html', controller: 'ConfigfilesCtrl'
    })
    .when('/UserManagement', {
      templateUrl: 'views/usermanagement.html', controller: 'UsermanagementCtrl',
      controllerAs: 'UserManagement'
    })
    .when('/Dashboard', {
      templateUrl: 'views/dashboard.html', controller: 'DashboardCtrl',
      controllerAs: 'Dashboard'
    })
    .when('/HQ', {
      templateUrl: 'views/hq.html', controller: 'HqCtrl',
      controllerAs: 'HQ'
    })
    .when('/systemservices', {
      templateUrl: 'views/systemservices.html', controller: 'SystemservicesCtrl',
      controllerAs: 'systemservices'
    })

    // Blog
  //  .when("/blog", {templateUrl: "partials/blog.html", controller: "BlogCtrl"})
  //  .when("/blog/post", {templateUrl: "partials/blog_item.html", controller: "BlogCtrl"})
    // else 404
    .otherwise("/404", {
      templateUrl: "views/about.html", controller: "AboutCtrl",
      controllerAs:'about'});
//    .otherwise("/", {templateUrl: "partials/404.html", controller: "AboutCtrl"});
}]);

/**
 * Controls all other Pages
 */
app.controller('PageCtrl', function (/* $scope, $location, $http */) {
  console.log("Page Controller reporting for duty.");

  // Activates the Carousel
  $('.carousel').carousel({
    interval: 5000
  });

  // Activates Tooltips for Social Links
  $('.tooltip-social').tooltip({
    selector: "a[data-toggle=tooltip]"
  })
});
<commit_msg>Removed main route<commit_after>/**
 * AngularJS Tutorial 1
 * @author <NAME> <<EMAIL>>
 */

/**
 * Main AngularJS Web Application
 tutorialWebApp
 */
 var servicelocation = "";
var app = angular.module('clientApp', [
'ngRoute', 'angular-timezone-selector'
]).directive('portalFrame', function() {
    return{
      restrict: "E",
         replace: true,
       transclude: true,
    compile: function (scope, element, attrs) {

    }
  }
})
.directive("bootstrapNavbar", function($location) {
   return {
     restrict: "E",
     replace: true,
     transclude: true,
     templateUrl: "components/bootstrapNavbar.html",
     compile: function(element, attrs) {  // (1)
       var li, liElements, links, index, length;

       servicelocation = "https://" + $location.$$host + "/api/"; //Update the service location to that of the host.

       liElements = $(element).find("#js-navbar-collapse li");   // (2)
       for (index = 0, length = liElements.length; index < length; index++) {
         li = liElements[index];
         links = $(li).find("a");  // (3)
         if (links[0].textContent === attrs.currentTab) $(li).addClass("active"); // (4)
       }
     }
   }})
;

/**
 * Configure the Routes
 */
app.config(['$routeProvider', function ($routeProvider) {
  $routeProvider
    // Home
  //  .when("/", {templateUrl: "views/main.html", controller: "MainCtrl"})
    // Pages
    .when('/ConfigFiles', {
      templateUrl: 'views/configfiles.html', controller: 'ConfigfilesCtrl'
    })
    .when('/UserManagement', {
      templateUrl: 'views/usermanagement.html', controller: 'UsermanagementCtrl',
      controllerAs: 'UserManagement'
    })
    .when('/Dashboard', {
      templateUrl: 'views/dashboard.html', controller: 'DashboardCtrl',
      controllerAs: 'Dashboard'
    })
    .when('/HQ', {
      templateUrl: 'views/hq.html', controller: 'HqCtrl',
      controllerAs: 'HQ'
    })
    .when('/systemservices', {
      templateUrl: 'views/systemservices.html', controller: 'SystemservicesCtrl',
      controllerAs: 'systemservices'
    })

    // Blog
  //  .when("/blog", {templateUrl: "partials/blog.html", controller: "BlogCtrl"})
  //  .when("/blog/post", {templateUrl: "partials/blog_item.html", controller: "BlogCtrl"})
    // else 404
    .otherwise("/404", {
      templateUrl: "views/about.html", controller: "AboutCtrl",
      controllerAs:'about'});
//    .otherwise("/", {templateUrl: "partials/404.html", controller: "AboutCtrl"});
}]);

/**
 * Controls all other Pages
 */
app.controller('PageCtrl', function (/* $scope, $location, $http */) {
  console.log("Page Controller reporting for duty.");

  // Activates the Carousel
  $('.carousel').carousel({
    interval: 5000
  });

  // Activates Tooltips for Social Links
  $('.tooltip-social').tooltip({
    selector: "a[data-toggle=tooltip]"
  })
});

{'fraction_non_alphanumeric': 0.1806952532203988, 'fraction_numerical': 0.0070584083289218285, 'mean_word_length': 3.074766355140187, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '6286349', 'n_tokens_mistral': 1789, 'n_tokens_neox': 1731, 'n_words': 378}