<commit_before>'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', [
  'ui.materialize',
  'ngRoute',
  'ngCookies',
  'ui.layout',
  'hmsAuth',
  'hmsAppAuth',
  'hmsPatientList',
  'hmsPatientAllergy',
  'hmsPatientDemographic',
  'hmsPatientVitalsigns',
  'hmsPatientLabresult',
  'hmsPatientMedication',
  'hmsPractitionerInfo',
  'hmsLogout',
  'myApp.view1',
  'myApp.view2',
  'myApp.view3',
  'myApp.medcinsearch',
  'myApp.login',
  'myApp.version'
])
// .run(function($rootScope, $templateCache) {
//    $rootScope.$on('$viewContentLoaded', function() {
//       $templateCache.removeAll();
//    });
// })
.controller('mainCtrl', function($scope,$rootScope,$cookies,$window) {
     // $scope.token = $cookies.getObject('token');
     // console.log($scope.token);
     // $scope.abc = $cookies.getObject('abc');



     var practitioner = $cookies.getObject('practitioner');

     if(practitioner === undefined || practitioner === null){
        console.log(practitioner);
        $rootScope.isLogin = false;
     }
     else{
        $rootScope.isLogin = true;
        $window.location='#!/patientlist';
     }
    
    $rootScope.openNewPage = function(val){
      if(val ===  "old"){
        $window.location='/';<commit_msg>update path<commit_after>'use strict';

// Declare app level module which depends on views, and components
angular.module('myApp', [
  'ui.materialize',
  'ngRoute',
  'ngCookies',
  'ui.layout',
  'hmsAuth',
  'hmsAppAuth',
  'hmsPatientList',
  'hmsPatientAllergy',
  'hmsPatientDemographic',
  'hmsPatientVitalsigns',
  'hmsPatientLabresult',
  'hmsPatientMedication',
  'hmsPractitionerInfo',
  'hmsLogout',
  'myApp.view1',
  'myApp.view2',
  'myApp.view3',
  'myApp.medcinsearch',
  'myApp.login',
  'myApp.version'
])
// .run(function($rootScope, $templateCache) {
//    $rootScope.$on('$viewContentLoaded', function() {
//       $templateCache.removeAll();
//    });
// })
.controller('mainCtrl', function($scope,$rootScope,$cookies,$window) {
     // $scope.token = $cookies.getObject('token');
     // console.log($scope.token);
     // $scope.abc = $cookies.getObject('abc');



     var practitioner = $cookies.getObject('practitioner');

     if(practitioner === undefined || practitioner === null){
        console.log(practitioner);
        $rootScope.isLogin = false;
     }
     else{
        $rootScope.isLogin = true;
        $window.location='#!/patientlist';
     }
    
    $rootScope.openNewPage = function(val){
      if(val ===  "old"){
        $window.location='#!/patientlist';
{'fraction_non_alphanumeric': 0.18097805159799768, 'fraction_numerical': 0.0023103581055063534, 'mean_word_length': 3.463917525773196, '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': '5159873', 'n_tokens_mistral': 926, 'n_tokens_neox': 890, 'n_words': 128}