<commit_before><?php  
class User_model extends CI_Model{
 

 	public function __construct()
        {
                $this->load->database();
        }


	public function checkloginauth($username, $password)
 		{
		   $this ->db-> select('username, password , sport');
		   $this ->db-> where('username', $username);
		   $this ->db-> where('password', $password);
		   $this ->db-> limit(1);
		   $query = $this ->db-> get('coachuser');
		   $data = $query->row_array();
		 
		   if($query -> num_rows() == 1)
		   {
		     	if($data['sport'] == 'futsal'){

		     		 redirect('futsal/view');
		     	}
		     	if($data['sport'] == 'football'){

		     		 redirect('football/view');
		     	}
		     	else if($data['sport'] == 'lawntennis'){

		     		 redirect('football/view');
		     	}
		   }
		   else
		   {
		   

		     redirect('login_coach');
		   }
		}

}<commit_msg>edit user_model<commit_after><?php  
class User_model extends CI_Model{
 

 	public function __construct()
        {
                $this->load->database();
        }


	public function checkloginauth($username, $password)
 		{
		   $this ->db-> select('username, password , sport');
		   $this ->db-> where('username', $username);
		   $this ->db-> where('password', $password);
		   $this ->db-> limit(1);
		   $query = $this ->db-> get('coachuser');
		   $data = $query->row_array();
		 
		   if($query -> num_rows() == 1)
		   {
		     	if($data['sport'] == 'futsal'){

		     		 redirect('futsal/view');
		     	}
		     	if($data['sport'] == 'football'){

		     		 redirect('football/view');
		     	}
		     	else if($data['sport'] == 'lawntennis'){

		     		 redirect('lawntennis/view');
		     	}
		   }
		   else
		   {
		   

		     redirect('login_coach');
		   }
		}

}
{'fraction_non_alphanumeric': 0.1868629671574179, 'fraction_numerical': 0.0022650056625141564, 'mean_word_length': 2.0051020408163267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '1862273', 'n_tokens_mistral': 701, 'n_tokens_neox': 569, 'n_words': 101}