<commit_before>package tson_utilities;

import java.util.List;

public class User 
{
	 private String email = "";
	 private String name = ""; 
	 private String id = "";
	 private List<Project> projectList = null;
	 
	 public User(String email, String name, String id)
	 {
		 this.email = email;
		 this.name = name;
		 this.id = id;
	 }
	 
	 public void addProject(Project p)
	 {
		 if(!projectList.contains(p))
			 projectList.add(p);
	 }
	 
	 /* Getters */	 
	 public List<Project> getProjects()
	 {
		 return projectList;
	 }
	 
	 public String getID()
	 {
		 return id;
	 }
	 
	 public String getName()
	 {
		 return name;
	 }
	 
	 public String getEmail()
	 {
		 return email;
	 }
}<commit_msg>user can now create projects<commit_after>package tson_utilities;

import java.util.List;
/**
 * User-class for person using the application
 * @author Sofie & John
 *
 */
public class User 
{
	 private String email = "";
	 private String name = ""; 
	 private String id = "";
	 private List<Project> projectList = null;
	 
	 /**
	  * Constructor for a User, information to be fetched from Google account in the future
	  * @param email
	  * @param name
	  * @param id
	  */ 
	 public User(String email, String name, String id)
	 {
		 this.email = email;
		 this.name = name;
		 this.id = id;
	 }
	 
	 /**
	  * Adds an exicsting project to user's project list
	  * @param p - Name of project
	  */
	 public void addProject(Project p)
	 {
		 if(!projectList.contains(p))
			 projectList.add(p);
	 }
	 
	 /**
	  * Function creating a new project and adding it to the users project list
	  * @param name - Name of new project
	  */
	 public void createProject(String name){
		 
		 Project p = new Project(name);
		 addProject(p);
	 }
	 
	 /* Getters */	
	 /**
	  * Return list of projects
	  * @return
	  */
	 public List<Project> getProjects()
	 {
		 return projectList;
	 }
	 /**
	  * Return user's ID
	  * @return
	  */
	 public String getID()
	 {
		 return id;
	 }
	 /**
	  * Return user's name
	  * @return
	  */
	 public String getName()
	 {
		 return name;
	 }
	 /**
	  * Return user's email
	  * @return
	  */
	 public String getEmail()
	 {
		 return email;
	 }
}
{'fraction_non_alphanumeric': 0.11490539916935856, 'fraction_numerical': 0.0, 'mean_word_length': 2.4467408585055646, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '950818', 'n_tokens_mistral': 788, 'n_tokens_neox': 635, 'n_words': 211}