<commit_before>angular.module("fifaworldcup", [
	"ngRoute",
	"matchesControllers",
	"teamsModule",
	"playersModule"
])
.config(["$routeProvider", function($routeProvider) {
	$routeProvider
	.when("/", {
		templateUrl: "template/home.html"
	})
	.when("/teams", {
		controller: "teamsController",
		templateUrl: "template/teams.html"
	})
	.when("/players", {
		controller: "playersController",
		templateUrl: "template/players.html"
	});
}]);<commit_msg>step-02 : added common handling for 401 in XHR call<commit_after>angular.module("fifaworldcup", [
	"ngRoute",
	"matchesControllers",
	"teamsModule",
	"playersModule"
])
.config(["$routeProvider", function($routeProvider) {
	$routeProvider
	.when("/", {
		templateUrl: "template/home.html"
	})
	.when("/teams", {
		controller: "teamsController",
		templateUrl: "template/teams.html"
	})
	.when("/players", {
		controller: "playersController",
		templateUrl: "template/players.html"
	});
}])
.config(["$httpProvider", function($httpProvider) {
	$httpProvider.interceptors.push(['$q', '$location','$rootScope', function($q, $location, $rootScope) {
		return {
			'responseError' : function(rejection) {
				if(rejection.status == 401) {
					window.location.href = "/fifaworldcup/readytoplay";
				}
				return $q.reject(rejection);
			}
		}
	}]);
}]);
{'fraction_non_alphanumeric': 0.19369715603382015, 'fraction_numerical': 0.006149116064565719, 'mean_word_length': 5.259615384615385, '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': '3090263', 'n_tokens_mistral': 492, 'n_tokens_neox': 458, 'n_words': 66}