<commit_before>app.controller('userController', ["$scope", "$window",function($scope) {

	$scope.getUser = function() {
		UserService.all()
			.then(function(result) {
				if(result.data.status === 200) {
					$scope.misquotes = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			});
	};
}]);<commit_msg>user controller code...for controlling the user...in gulag<commit_after>app.controller('userController', ["$scope", "$window",function($scope) {

	$scope.getUser = function() {
		UserService.all()
			.then(function(result) {
				if(result.data.status === 200) {
					$scope.misquotes = result.data.data;
				} else {
					$scope.alerts[0] = {type: "danger", msg: result.data.message};
				}
			});
	};
	$scope.updateUser = function(user, validated) {
		if(validated === true) {
			UserService.update(signup.userId, user)
				.then(function(result) {
					$scope.displayStatus(result.data);
					$scope.cancelEditing();
					$scope.getUser();
				});
		}
	};

	$scope.setEditedUser = function(user) {
		$window.scrollTo(0, 0);
		$scope.editedUser = angular.copy(user);
		$scope.isEditing = true;
	};

	$scope.cancelEditing = function() {
		$scope.editedUser = null;
		$scope.isEditing = false;
	};

}]);
{'fraction_non_alphanumeric': 0.19319081551860648, 'fraction_numerical': 0.00791765637371338, 'mean_word_length': 3.6642066420664205, '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': '4037188', 'n_tokens_mistral': 531, 'n_tokens_neox': 441, 'n_words': 65}