<commit_before>(function(){
  var app = angular.module("site", ["ngRoute"]);

  app.controller("NavController", function($location){
    this.isActive = function(viewLocation){
      return viewLocation === $location.path();
    }
  });


  app.config(function($routeProvider){
    $routeProvider
      .when("./home",{
        templateUrl: "home.html",
        controller: "HomeController as HomeCtrl"
      })
      .when("./creator",{
        templateUrl: "creator.html",
        controller: "CharCreatorController as creatorCtrl"
      })
      .otherwise({redirectTo:"./home"});
    });
  }()
);<commit_msg>ok, now my routing fiasco should be over.<commit_after>(function(){
  var app = angular.module("site", ["ngRoute"]);

  app.controller("NavController", function($location){
    this.isActive = function(viewLocation){
      return viewLocation === $location.path();
    }
  });


  app.config(function($routeProvider){
    $routeProvider
      .when("/home",{
        templateUrl: "home.html",
        controller: "HomeController as HomeCtrl"
      })
      .when("/creator",{
        templateUrl: "creator.html",
        controller: "CharCreatorController as creatorCtrl"
      })
      .otherwise({redirectTo:"./home"});
    });
  }()
);
{'fraction_non_alphanumeric': 0.1712, 'fraction_numerical': 0.0, 'mean_word_length': 3.0485436893203883, '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': '541042', 'n_tokens_mistral': 370, 'n_tokens_neox': 358, 'n_words': 65}