<commit_before>app.controller('signupController', [function($scope) {

	$scope.createSignup = function(Signup, validated) {
		if(validated === true) {
			SignupService.create(signup)
				.then(function(result) {
					$scope.displayStatus(result.data);
				});
		}
	};
	$scope.updateSignup = function(signup, validated) {
		if(validated === true) {
			SignupService.update(signup.userId, signup)
				.then(function(result) {
					$scope.displayStatus(result.data);
					$scope.cancelEditing();
					$scope.getsignups();
				});
		}
	};
}]);<commit_msg>edited signup controller<commit_after>app.controller('signupController', [function($scope) {

	$scope.createSignup = function(Signup, validated) {
		if(validated === true) {
			SignupService.create(signup)
				.then(function(result) {
					$scope.displayStatus(result.data);
				});
		}
	};
}]);
{'fraction_non_alphanumeric': 0.17139479905437352, 'fraction_numerical': 0.0, 'mean_word_length': 4.360759493670886, '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': '2554793', 'n_tokens_mistral': 340, 'n_tokens_neox': 284, 'n_words': 33}