<commit_before>package attendance;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import time.Time;
/**
 *
 * @author <NAME>, <NAME>
 *
 */

//get and set messages with key field with corresponding times and type

@Entity
public class Tardy {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)  //creates id for entry
	private Long id;

	//The netID of the student that this Tardy belongs to
	private String netID;
	private String checkInTime;
	private boolean approved;
	//Either rehearsal or performance or unknown if there was no Event
	private String type;
	
	public Tardy(String netID, Time time, String type)
	{
		this.netID = netID;
		this.checkInTime = time.toString();
		approved = false;
	}
	
//	public Tardy(String dbTardy)
//	{
//		String[] tardy = dbTardy.split(" ");
//		setTime(new Time(tardy[0], tardy[1]));
//		approved = false;
//	}
	
	public String toString()
	{
		//Should be in the form "year-month-day hour:minute:second type isApproved"
		return getTime().getDate().toString() + " " + getTime().get24Format() + " " + type + " " + approved;
	}
	
	public Time getTime() {
		return new Time(checkInTime);
	}

	public void setTime(Time time) {
		this.checkInTime = time.toString(24);
	}

	public boolean isApproved() {
		return approved;
	}<commit_msg>Constructor was calling the wrong toString method so I changed it to the correct one<commit_after>package attendance;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import time.Time;
/**
 *
 * @author <NAME>, <NAME>
 *
 */

//get and set messages with key field with corresponding times and type

@Entity
public class Tardy {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)  //creates id for entry
	private Long id;

	//The netID of the student that this Tardy belongs to
	private String netID;
	private String checkInTime;
	private boolean approved;
	//Either rehearsal or performance or unknown if there was no Event
	private String type;
	
	public Tardy(String netID, Time time, String type)
	{
		this.netID = netID;
		this.checkInTime = time.toString(24);
		approved = false;
	}
	
//	public Tardy(String dbTardy)
//	{
//		String[] tardy = dbTardy.split(" ");
//		setTime(new Time(tardy[0], tardy[1]));
//		approved = false;
//	}
	
	public String toString()
	{
		//Should be in the form "year-month-day hour:minute:second type isApproved"
		return getTime().getDate().toString() + " " + getTime().get24Format() + " " + type + " " + approved;
	}
	
	public Time getTime() {
		return new Time(checkInTime);
	}

	public void setTime(Time time) {
		this.checkInTime = time.toString(24);
	}

	public boolean isApproved() {
		return approved;
	}
{'fraction_non_alphanumeric': 0.11806291975963237, 'fraction_numerical': 0.00494874513962531, 'mean_word_length': 3.904679376083189, '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': '3311481', 'n_tokens_mistral': 952, 'n_tokens_neox': 910, 'n_words': 278}