<commit_before><?php

		$connection_link=NULL;
	 function connectTODb1(){
		$user="root";
		$password="";
		$database="qadb";
		$GLOBALS['connection_link'] =  mysqli_connect("localhost",$user,$password,'<PASSWORD>');
		if (mysqli_connect_errno())
		{
			echo "Failed to connect to MySQL: " . mysqli_connect_error();
		}
	}	
	
	 function closeConnection1(){	
		if ($GLOBALS['connection_link'] != NULL)
		{
			mysqli_close($GLOBALS['connection_link']);
		}
	}
	
	 function checkConnectivity1(){
		if ($GLOBALS['connection_link'] == NULL)
		{
				connectTODb1();
		}
	}
	
	//return list of all users
	function getAllUsers(){
		checkConnectivity1();
		
		$list= array();
		$query =sprintf("select * from user");
		$result =mysqli_query($GLOBALS['connection_link'],$query);
		while($row = mysqli_fetch_assoc($result)) {
			$list[]=$row;			
		}
		
		return $list;
	}
	
	//get list of all admins
	function getAllAdmins(){
		checkConnectivity1();<commit_msg>select quires<commit_after><?php

		$connection_link=NULL;
	 function connectTODb1(){
		$user="root";
		$password="";
		$database="qadb";
		$GLOBALS['connection_link'] =  mysqli_connect("localhost",$user,$password,'<PASSWORD>');
		if (mysqli_connect_errno())
		{
			echo "Failed to connect to MySQL: " . mysqli_connect_error();
		}
	}	
	
	 function closeConnection1(){	
		if ($GLOBALS['connection_link'] != NULL)
		{
			mysqli_close($GLOBALS['connection_link']);
		}
	}
	
	 function checkConnectivity1(){
		if ($GLOBALS['connection_link'] == NULL)
		{
				connectTODb1();
		}
	}
	
	//checks if username exists
	function checkUserNameExists($user_name){
		checkConnectivity1();
		
		$list= array();
		$query =sprintf("select * from user where user_name = '%s'",$user_name);
		$result =mysqli_query($GLOBALS['connection_link'],$query);
		if($row = mysqli_fetch_assoc($result)) {
			return true;			
		}
		
		return false;
	}
	
	//checks if email exists
	function checkEmailExists($email){
		checkConnectivity1();
		
		$list= array();
		$query =sprintf("select * from user where email = '%s'",$email);
		$result =mysqli_query($GLOBALS['connection_link'],$query);
		if($row = mysqli_fetch_assoc($result)) {
			return true;			
		}
		
		return false;
	}
	
	//return list of all users
	function getAllUsers(){
		checkConnectivity1();
		
		$list= array();
		$query =sprintf("select * from user");
		$result =mysqli_query($GLOBALS['connection_link'],$query);
		while($row = mysqli_fetch_assoc($result)) {
			$list[]=$row;			
		}
		
		return $list;
	}
	
	//get list of all admins
	function getAllAdmins(){
		checkConnectivity1();
{'fraction_non_alphanumeric': 0.16510903426791276, 'fraction_numerical': 0.005451713395638629, 'mean_word_length': 4.397058823529412, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2327571', 'n_tokens_mistral': 1024, 'n_tokens_neox': 881, 'n_words': 166}