<commit_before>import java.util.ArrayList;
import java.util.Collections;

public class Timesheet {

	ArrayList<Ticket> tickets;

	public Timesheet(ArrayList<Ticket> tickets) {
		Collections.sort(tickets);
		this.tickets = tickets;
	}

	public double getHoursWorked() {
		long regularTime = getRegularTime();
		long callbackTime = getCallbackTime();
		long holidayTime = getHolidayTime();
		
		double totalTime = (double) regularTime + callbackTime + holidayTime;

		return ((totalTime / (1000*60*60)));
	}

	private long getRegularTime() {
		ArrayList<Ticket> tickets = filterTicketsByHour(HourType.Regular);
		return getTotalTime(tickets);
	}

	private long getCallbackTime() {
		ArrayList<Ticket> tickets = filterTicketsByHour(HourType.Callback);<commit_msg>timesheet class uses copy of arraylist from constructor<commit_after>import java.util.ArrayList;
import java.util.Collections;

public class Timesheet {

	ArrayList<Ticket> tickets;

	public Timesheet(ArrayList<Ticket> tickets) {
		this.tickets = new ArrayList<Ticket>(tickets);
		Collections.sort(this.tickets);
	}

	public double getHoursWorked() {
		long regularTime = getRegularTime();
		long callbackTime = getCallbackTime();
		long holidayTime = getHolidayTime();
		
		double totalTime = (double) regularTime + callbackTime + holidayTime;

		return ((totalTime / (1000*60*60)));
	}

	private long getRegularTime() {
		ArrayList<Ticket> tickets = filterTicketsByHour(HourType.Regular);
		return getTotalTime(tickets);
	}

	private long getCallbackTime() {
		ArrayList<Ticket> tickets = filterTicketsByHour(HourType.Callback);
{'fraction_non_alphanumeric': 0.10628930817610063, 'fraction_numerical': 0.010062893081761006, 'mean_word_length': 5.684873949579832, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '2523055', 'n_tokens_mistral': 525, 'n_tokens_neox': 470, 'n_words': 107}