<commit_before>package com.supinfo.controler;

import com.supinfo.client.model.Login;
import com.supinfo.excpetion.PasswordHaveNotLowercase;
import com.supinfo.excpetion.PasswordHaveNotNumber;
import com.supinfo.excpetion.PasswordHaveNotUppercase;
import com.supinfo.excpetion.PasswordInvalid;
import com.supinfo.excpetion.PasswordTooShort;

public class LoginCheckPassword extends Login {

	public LoginCheckPassword() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public LoginCheckPassword(String loginId, String loginPW){
		this.username = loginId;
		this.password = <PASSWORD>;
		this.eMail = null;
	}
	
	public void setPassword(String loginPW){
		this.password = <PASSWORD>;
	}
	
	public void checkPasswordSize() throws PasswordTooShort {
		
		if (password.length() < 8){
			throw new PasswordTooShort();
		}
			
	}
	
	public void checkPasswordNumber() throws PasswordHaveNotNumber {
		char charTest;
		int numberCounter = 0;
		
		for(int i=0;i == password.length(); i++){
			charTest = password.charAt(i);
			switch (charTest) {
			case 1: numberCounter++;
					break;
			case 2: numberCounter++;
					break;
			case 3: numberCounter++;
					break;
			case 4: numberCounter++;
					break;
			case 5: numberCounter++;
					break;
			case 6: numberCounter++;
					break;
			case 7: numberCounter++;
					break;
			case 8: numberCounter++;
					break;
			case 9: numberCounter++;
					break;
			case 0: numberCounter++;
			default: break;			
			}
			
			if(numberCounter > 0){
				break;
			}
		}
		
		if(numberCounter < 0){
			return;
		} else {
			throw new PasswordHaveNotNumber();
		}
	}
	
	public void checkPasswordUppercase() throws PasswordHaveNotUppercase {		
		
		if(checkPasswordLoop(password.toUpperCase())){
			System.out.println("I'm happy");
		} else {
			System.out.println("THROW THE EXCEPTION");
		}
	}
	
	public void checkPasswordLowercase() throws PasswordHaveNotLowercase {
		
	}
	
	private boolean checkPasswordLoop(String passwordTestTemp) {
		int counterUpper = 0;
		
		for(int i=0;i <= password.length()-1; i++){
			if(password.charAt(i) == passwordTestTemp.charAt(i)){
				counterUpper ++;
				
			}
			
			if(counterUpper > 0){
				return true;
			}
		}
		
		return false;
		
	}
	
	

}<commit_msg>Some more case check<commit_after>package com.supinfo.controler;

import com.supinfo.client.model.Login;
import com.supinfo.excpetion.PasswordHaveNotLowercase;
import com.supinfo.excpetion.PasswordHaveNotNumber;
import com.supinfo.excpetion.PasswordHaveNotUppercase;
import com.supinfo.excpetion.PasswordInvalid;
import com.supinfo.excpetion.PasswordTooShort;

public class LoginCheckPassword extends Login {

	public LoginCheckPassword() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public LoginCheckPassword(String loginId, String loginPW){
		this.username = loginId;
		this.password = <PASSWORD>;
		this.eMail = null;
	}
	
	public void setPassword(String loginPW){
		this.password = <PASSWORD>;
	}
	
	public void checkPasswordSize() throws PasswordTooShort {
		
		if (password.length() < 8){
			throw new PasswordTooShort();
		}
			
	}
	
	public void checkPasswordNumber() throws PasswordHaveNotNumber {
		char charTest;
		int numberCounter = 0;
		
		for(int i=0;i == password.length(); i++){
			charTest = password.charAt(i);
			switch (charTest) {
			case 1: numberCounter++;
					break;
			case 2: numberCounter++;
					break;
			case 3: numberCounter++;
					break;
			case 4: numberCounter++;
					break;
			case 5: numberCounter++;
					break;
			case 6: numberCounter++;
					break;
			case 7: numberCounter++;
					break;
			case 8: numberCounter++;
					break;
			case 9: numberCounter++;
					break;
			case 0: numberCounter++;
			default: break;			
			}
			
			if(numberCounter > 0){
				break;
			}
		}
		
		if(numberCounter < 0){
			return;
		} else {
			throw new PasswordHaveNotNumber();
		}
	}
	
	public void checkPasswordUppercase() throws PasswordHaveNotUppercase {		
		
		if(checkPasswordLoop(password.toUpperCase())){
			return;
		} else {
			throw new PasswordHaveNotUppercase();
		}
	}
	
	public void checkPasswordLowercase() throws PasswordHaveNotLowercase {
		
		if(checkPasswordLoop(password.toUpperCase())){
			return;
		} else {
			throw new PasswordHaveNotLowercase();
		}
		
	}
	
	private boolean checkPasswordLoop(String passwordTestTemp) {
		int counterUpper = 0;
		
		for(int i=0;i <= password.length()-1; i++){
			if(password.charAt(i) == passwordTestTemp.charAt(i)){
				counterUpper ++;
				
			}
			
			if(counterUpper > 0){
				return true;
			}
		}
		
		return false;
		
	}
	
	

}
{'fraction_non_alphanumeric': 0.11358671909130624, 'fraction_numerical': 0.008300567933595456, 'mean_word_length': 3.4284332688588006, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '128854', 'n_tokens_mistral': 1833, 'n_tokens_neox': 1431, 'n_words': 328}