<commit_before>// Login Controller : handles login ops

app.controller('loginCtrl',
function($scope,$http){
		
	var usr=$scope.username;
	var pas=$scope.password;
	

	
	console.log($scope.username+" - "+$scope.password);

	$scope.authenticate=function(){
		//check username and password
		
		$http.get('/login').
        then(function(response) {
            //DO NOTHING
			
        });			
		
		$http.post('/login/auth',  { 'username' : $scope.username,'password': $scope.password}).
		then(function(response){
			//DO 
			success(response)
			success(response.data['result']);
			if(response.data['result']=='success'){
				$scope.auth=true;
				
			}
			else{
				error("authentication");
			}
		});
		
		
		
	}
	
}
);<commit_msg>login test js code added<commit_after>// Login Controller : handles login ops

app.controller('loginCtrl',
function($scope,$http){
		
	var usr=$scope.username;
	var pas=$scope.password;
	

	
	console.log($scope.username+" - "+$scope.password);

	$scope.authenticate=function(){
		//check username and password
		
		$http.get('/login').
        then(function(response) {
            //DO NOTHING
			
        });			
		
		$http.post('/login/auth',  { 'username' : $scope.username,'password': $scope.password}).
		then(function(response){
			//DO 
			success(response)
			success(response.data['result']);
			if(response.data['result']=='success'){				
				$scope.auth=true;
				success("authentication");
			}
			else{
				
				if(function($scope.username,$scope.password){
						if($scope.username=='zn' && $scope.password=='zz')
							return true;
				}
				)
				{
					$scope.auth=true;
				}
				error("authentication");
			}
		});
		
		
		
	}
	
}
);
{'fraction_non_alphanumeric': 0.18090154211150652, 'fraction_numerical': 0.0, 'mean_word_length': 2.816742081447964, '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': '5185470', 'n_tokens_mistral': 679, 'n_tokens_neox': 530, 'n_words': 81}