<commit_before>angular.module("oplanApp", ["ngRoute", "oplanRaumListe", "oplanTimetable", 
                            "oplanSlot", "oplanBackend", "httpIndicator"])

.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/', {
        title: 'Oplan',
        templateUrl: 'partials/home.html',
        controller: 'OplanHomeCtrl'
      }).
      when('/raumliste', {
        title: 'Raumliste',
        templateUrl: 'partials/raumliste.html',
        controller: 'OplanRaumListeCtrl'
      }).
      when('/raumliste/tucan', {
        title: 'Raumliste TUCaN-Style',
        templateUrl: 'partials/raumlistetucan.html',
        controller: 'OplanTucanRaumListeCtrl'
      }).
      when('/raumliste/kleingruppe', {
        title: 'Kleingruppenliste',
        templateUrl: 'partials/kleingruppen.html',
        controller: 'OplanKleingruppenlisteCtrl'
      }).
      when('/slot/:id', {
        title: 'Slot',
        templateUrl: 'partials/slot.html',
        controller: 'OplanSlotCtrl'
      }).
      when('/stundenplan/:gruppe', {
        title: 'Stundenplan',
        templateUrl: 'partials/timetable.html',
        controller: 'OplanTimetableCtrl',
        reloadOnSearch: false
      }).
      when('/raumplan/:raum', {
        title: 'Raumplan',
        templateUrl: 'partials/room.html',
        controller: 'OplanRoomCtrl',
        reloadOnSearch: false
      }).
      otherwise({
        title: '404',
        templateUrl: 'partials/404.html'
        //redirectTo: '/login'
      });
  }])

.run(['$location', '$rootScope', 'oplanHttp',
  function($location, $rootScope, oplanHttp) {
    $rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
        if (current.$$route) $rootScope.title = current.$$route.title;
    });
    
    $rootScope.gotoRoomKey = function(e) {
        if (e.keyCode == 13) {
            $location.path("/raumplan/" + e.target.value).search("w", $rootScope.defaultWeek);
        }
    }

    if (localStorage.auth) {
      $rootScope.auth = localStorage.auth;<commit_msg>always upperCase room numbers (resolves #4)<commit_after>angular.module("oplanApp", ["ngRoute", "oplanRaumListe", "oplanTimetable", 
                            "oplanSlot", "oplanBackend", "httpIndicator"])

.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/', {
        title: 'Oplan',
        templateUrl: 'partials/home.html',
        controller: 'OplanHomeCtrl'
      }).
      when('/raumliste', {
        title: 'Raumliste',
        templateUrl: 'partials/raumliste.html',
        controller: 'OplanRaumListeCtrl'
      }).
      when('/raumliste/tucan', {
        title: 'Raumliste TUCaN-Style',
        templateUrl: 'partials/raumlistetucan.html',
        controller: 'OplanTucanRaumListeCtrl'
      }).
      when('/raumliste/kleingruppe', {
        title: 'Kleingruppenliste',
        templateUrl: 'partials/kleingruppen.html',
        controller: 'OplanKleingruppenlisteCtrl'
      }).
      when('/slot/:id', {
        title: 'Slot',
        templateUrl: 'partials/slot.html',
        controller: 'OplanSlotCtrl'
      }).
      when('/stundenplan/:gruppe', {
        title: 'Stundenplan',
        templateUrl: 'partials/timetable.html',
        controller: 'OplanTimetableCtrl',
        reloadOnSearch: false
      }).
      when('/raumplan/:raum', {
        title: 'Raumplan',
        templateUrl: 'partials/room.html',
        controller: 'OplanRoomCtrl',
        reloadOnSearch: false
      }).
      otherwise({
        title: '404',
        templateUrl: 'partials/404.html'
        //redirectTo: '/login'
      });
  }])

.run(['$location', '$rootScope', 'oplanHttp',
  function($location, $rootScope, oplanHttp) {
    $rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
        if (current.$$route) $rootScope.title = current.$$route.title;
    });
    
    $rootScope.gotoRoomKey = function(e) {
        if (e.keyCode == 13) {
            e.target.value = e.target.value.toUpperCase();
            $location.path("/raumplan/" + e.target.value).search("w", $rootScope.defaultWeek);
        }
    }

    if (localStorage.auth) {
      $rootScope.auth = localStorage.auth;
{'fraction_non_alphanumeric': 0.15650936684847047, 'fraction_numerical': 0.004031301873369694, 'mean_word_length': 2.4404567699836868, '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': '1486058', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1334, 'n_words': 202}