<commit_before>package serverLogic;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.Query;

import classes.Person;



/**
 * This is a class used to add stuff to the database
 * @author Brandon
 *
 */
public class DatabaseUtil 
{
	
	public static void addPerson(String netID, String password)
	{
		EntityManager em = EMFService.get().createEntityManager();
		Person toAdd = new Person(netID, password);
		em.persist(toAdd);
		em.close();
	}
	
	/**
	 * A method that gets a person based off the given netID
	 * @param netID the netID registered with a student
	 * @return either the person with that netID or null if not found
	 */
	public static Person getPerson(String netID)
	{<commit_msg>The correct version i believe<commit_after>package serverLogic;
import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.NoResultException;
import javax.persistence.Query;

import classes.Person;



/**
 * This is a class used to add stuff to the database
 * @author Brandon
 *
 */
public class DatabaseUtil 
{
	
	public static void addPerson(Person p)
	{
		EntityManager em = EMFService.get().createEntityManager();
		em.persist(p);
		em.close();
	}
	
	/**
	 * A method that gets a person based off the given netID
	 * @param netID the netID registered with a student
	 * @return either the person with that netID or null if not found
	 */
	public static Person getPerson(String netID)
	{
{'fraction_non_alphanumeric': 0.08550434201736808, 'fraction_numerical': 0.0, 'mean_word_length': 4.112627986348123, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3227211', 'n_tokens_mistral': 453, 'n_tokens_neox': 429, 'n_words': 159}