<commit_before>var app = angular.module("app",['routes','account','menu','agencyVehiculesView','agency']);


app.run(function($rootScope,$location) {
	
	$rootScope.$on("$routeChangeStart", function(event, next, current) {
		
		  if(next.$$route.originalPath == '/' && $rootScope.user) 
		  {
			  if($rootScope.user.isAgency)
			  {
				  $location.path('/agency');
			  }
			  else{$location.path('/');}
		  } 
		  else{
			  $location.path(next.$$route.originalPath);}
	});
	
});

app.controller('AppController', function($scope) {
	
	$scope.form = {};
	
});<commit_msg>commenting app .run function > solves routing problems<commit_after>var app = angular.module("app",['routes','account','menu','agencyVehiculesView','agency', 'vehicle']);


/*
app.run(function($rootScope,$location) {
	$rootScope.$on("$routeChangeStart", function(event, next, current) {
		
		  if(next.$$route.originalPath == '/' && $rootScope.user) 
		  {
			  if($rootScope.user.isAgency)
			  {
				  $location.path('/agency');
			  }
			  else{$location.path('/');}
		  } 
		  else{
			  $location.path(next.$$route.originalPath);}
	});
	
});
 */

app.controller('AppController', function($scope) {
	
	$scope.form = {};
	
});
{'fraction_non_alphanumeric': 0.21565362198168192, 'fraction_numerical': 0.0, 'mean_word_length': 3.866396761133603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7563281', 'n_tokens_mistral': 472, 'n_tokens_neox': 390, 'n_words': 43}