<commit_before>package mainObjects;

import java.util.HashMap;
import java.util.HashSet;

import exceptions.InvalidEmailException;
import exceptions.InvalidUserNameException;
import inTheLab.DentalLaboratory;
import inTheLab.Manager;

public class TheSystem {
	
	private HashMap<String, Administrator> adminList;// <AdminUserName,
														// Administrator>
	private HashMap<String, Manager> managerList;// <ManagerUserName,
													// LaboratoriesBulstat>
	private HashMap<String, DentalLaboratory> laboratoryList;// <Bulstat,
																// DentalLaboratory>
	private HashMap<String, People> userList;

	/**
	 * @param adminList
	 * @param managerLabsList
	 * @param laboratoryList
	 * @param userList
	 */
	public TheSystem() {
		this.adminList = new HashMap<>();
		this.managerList = new HashMap<>();
		this.laboratoryList = new HashMap<>();
		this.userList = new HashMap<>();
	}

	public Boolean createNewManager(String username, String email, String password) {
		try {
			Manager tempManager = new Manager(username, email, password, this);

			if (addUser(tempManager)) {
				this.managerList.put(username, tempManager);
				return true;
			} else {
				System.out.println("This username Exist!");
				return false;
			}

		} catch (InvalidEmailException e) {
			System.out.println(e.getMessage());
			// e.printStackTrace();
			return false;
		} catch (InvalidUserNameException e) {
			System.out.println(e.getMessage());
			// e.printStackTrace();
			return false;
		}

	}

	
	/**
	 * Verifies that the user already exists, if the user does not exist, add it
	 * to the list of users and returns true, otherwise returns false.
	 * 
	 * @param people
	 * @return Can you add this user to the list of users?
	 */
	public Boolean addUser(People people) {
		if (!doesThisUserExist(people.getUsername())) {
			this.userList.put(people.getUsername(), people);
			return true;
		} else {
			System.out.println("This user already exists!");
			return false;
		}
	}
<commit_msg>Fixed bug with showing two messages when creating a manager<commit_after>package mainObjects;

import java.util.HashMap;
import java.util.HashSet;

import exceptions.InvalidEmailException;
import exceptions.InvalidUserNameException;
import inTheLab.DentalLaboratory;
import inTheLab.Manager;

public class TheSystem {
	
	private HashMap<String, Administrator> adminList;// <AdminUserName,
														// Administrator>
	private HashMap<String, Manager> managerList;// <ManagerUserName,
													// LaboratoriesBulstat>
	private HashMap<String, DentalLaboratory> laboratoryList;// <Bulstat,
																// DentalLaboratory>
	private HashMap<String, People> userList;

	/**
	 * @param adminList
	 * @param managerLabsList
	 * @param laboratoryList
	 * @param userList
	 */
	public TheSystem() {
		this.adminList = new HashMap<>();
		this.managerList = new HashMap<>();
		this.laboratoryList = new HashMap<>();
		this.userList = new HashMap<>();
	}

	public void createNewManager(String username, String email, String password) {
		try {
			Manager tempManager = new Manager(username, email, password, this);

			if (addUser(tempManager)) {
				this.managerList.put(username, tempManager);
				return;
			}

		} catch (InvalidEmailException e) {
			System.out.println(e.getMessage());
			// e.printStackTrace();
			return;
		} catch (InvalidUserNameException e) {
			System.out.println(e.getMessage());
			// e.printStackTrace();
			return;
		}

	}

	
	/**
	 * Verifies that the user already exists, if the user does not exist, add it
	 * to the list of users and returns true, otherwise returns false.
	 * 
	 * @param people
	 * @return Can you add this user to the list of users?
	 */
	public Boolean addUser(People people) {
		if (!doesThisUserExist(people.getUsername())) {
			this.userList.put(people.getUsername(), people);
			return true;
		} else {
			System.out.println("This user already exists!");
			return false;
		}
	}

{'fraction_non_alphanumeric': 0.1141912512716175, 'fraction_numerical': 0.0, 'mean_word_length': 3.7158273381294964, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '5382147', 'n_tokens_mistral': 1332, 'n_tokens_neox': 1107, 'n_words': 316}