<commit_before>app.factory("userFactory", function ($http, settingsFactory, notificationFactory, $location) {
	return {
		userData: null,
		expirationCallback: null,

		login: function (nameOrMail, passwordHash, successCallback, errorCallback) {
			$http({
				method: 'GET', 
				url: settingsFactory.backendUrl + 'login', 
				headers: {
					username: nameOrMail,
					passwordHash: <PASSWORD>
				}
			}).success(_.bind(function (data, status, headers, config) {
				if (data != "false") {
					this.userData = data;
				}
				this.routeGuard();
				successCallback(data, status, headers, config);
			}, this))
			.error(errorCallback);<commit_msg>Fix Request-Headers Bug<commit_after>app.factory("userFactory", function ($http, settingsFactory, notificationFactory, $location) {
	return {
		userData: null,
		expirationCallback: null,

		login: function (nameOrMail, passwordHash, successCallback, errorCallback) {
			$http({
				method: 'GET', 
				url: settingsFactory.backendUrl + 'login', 
				headers: {
					Username: nameOrMail,
					Passwordhash: <PASSWORD>
				}
			}).success(_.bind(function (data, status, headers, config) {
				if (data != "false") {
					this.userData = data;
				}
				this.routeGuard();
				successCallback(data, status, headers, config);
			}, this))
			.error(errorCallback);
{'fraction_non_alphanumeric': 0.13774733637747336, 'fraction_numerical': 0.0, 'mean_word_length': 3.906716417910448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4782805', 'n_tokens_mistral': 489, 'n_tokens_neox': 392, 'n_words': 91}