<commit_before>/** Change password controller */
angular.module('changepw', [])
	.controller('changepwController', ['$scope', '$http', '$window', function($scope, $http, $window){	

	$scope.password = '';
	$scope.newPassword = '';
	$scope.reNewPassword  = '';

	$scope.changePassword = function(){		
		if ($scope.password == ''){
			$window.alert('missing password');
			$scope.pw_validdated_css = 'has-error';
		}else if ($scope.newPassword == ''){
			$scope.newpw_validdated_css = 'has-error';
		} else if ($scope.reNewPassword == '') {
			$scope.renewpw_validdated_css = 'has-error';
		}
	};
}]);<commit_msg>Validating form<commit_after>/** Change password controller */
angular.module('changepw', [])
	.controller('changepwController', ['$scope', '$http', '$window', function($scope, $http, $window){	

	$scope.password = '';
	$scope.newPassword = '';
	$scope.reNewPassword  = '';


	$scope.changePassword = function(){		
		var hasError = 'has-error';
		var hasSuccess = 'has-success';
		if ($scope.password == ''){
			$window.alert('missing password');
			$scope.pw_validdated_css = hasError;
		}else{
			$scope.pw_validdated_css = hasSuccess;
		}
		if ($scope.newPassword == ''){
			$scope.newpw_validdated_css = hasError;
		}else{
			$scope.newpw_validdated_css = hasSuccess;
		} 

		if ($scope.reNewPassword == '') {
			$scope.renewpw_validdated_css = hasError;
		}else{
			$scope.renewpw_validdated_css = hasSuccess;
		}
	};
}]);
{'fraction_non_alphanumeric': 0.19401947148817802, 'fraction_numerical': 0.0, 'mean_word_length': 4.555984555984556, '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': '7373207', 'n_tokens_mistral': 534, 'n_tokens_neox': 494, 'n_words': 80}