<commit_before>package time;

import java.time.Clock;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.TimeZone;

public class GameClock {

	
	private static LocalDateTime baseTime;
	private static LocalDateTime fastTime;
	private static long startTime;
	private static long endTime;
	private static long increasedTime;
	// Maybe where we set increasePercent could be moved to Settings?
	private static double increasePercent = 0.5;  // Time increase can be changed to desired increase.
	private static DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern("E, MMM dd yyyy HH:mm:ss");
	
	
	// Default constructor
	public GameClock() {
		
	}
	
	// Declares the base time of the players current time.
	public static void startTimeClock() {
		
	}
	
	// This method is used as a end time place holder so that we can get a time duration.
	public static void endTimeCounter() {

	}
	
	// The time increase is based off of getting the milliseconds and increasing it by a percentage.
	// This method returns the amount of time in milliseconds that the game clock needs to be increased.
	public static long timeConversion() {
        
        return increasedTime;
	}
	
	// After you get the increase in time, you can add it to the base time.
	public static String updateGameTime() {
		
		return fastTime.toString();
	}

	
	// All these methods below are getters and setters for the variables.
	// These will be used mainly for testing purposes.
	
	public LocalDateTime getBaseTime() {
		return GameClock.baseTime;
	}
	
	public void setBaseTime(LocalDateTime newBaseTime) {
		GameClock.baseTime = newBaseTime;
	}
	
	public LocalDateTime getFastTime() {
		return GameClock.fastTime;
	}
	
	public void setFastTime(LocalDateTime newFastTime) {
		GameClock.fastTime = newFastTime;
	}
	
	public long getStartTime() {
		return GameClock.startTime;
	}
	<commit_msg>Added code for functions in GameClock class. Ran tests again.<commit_after>package time;

import java.time.Clock;
import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
import java.time.format.DateTimeFormatter;
import java.util.TimeZone;

public class GameClock {

	
	private static LocalDateTime baseTime;
	private static LocalDateTime fastTime;
	private static long startTime;
	private static long endTime;
	private static long increasedTime;
	// Maybe where we set increasePercent could be moved to Settings?
	private static double increasePercent = 0.5;  // Time increase can be changed to desired increase.
	private static DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern("E, MMM dd yyyy HH:mm:ss");
	
	
	// Default constructor
	public GameClock() {
		
	}
	
	// Declares the base time of the players current time.
	public static void startTimeClock() {
		startTime = System.currentTimeMillis();
		baseTime = LocalDateTime.now();
	}
	
	// This method is used as a end time place holder so that we can get a time duration.
	public static void endTimeCounter() {
		endTime = System.currentTimeMillis();
	}
	
	// The time increase is based off of getting the milliseconds and increasing it by a percentage.
	// This method returns the amount of time in milliseconds that the game clock needs to be increased.
	public static long timeConversion() {
        increasedTime = endTime - startTime;
        return (long) (increasedTime + (increasedTime * increasePercent));
	}
	
	// After you get the increase in time, you can add it to the base time.
	public static String updateGameTime() {
		endTimeCounter();
		fastTime = baseTime.plus(Duration.ofMillis(timeConversion()));
		return fastTime.format(myFormatObj);
	}

	
	// All these methods below are getters and setters for the variables.
	// These will be used mainly for testing purposes.
	
	public LocalDateTime getBaseTime() {
		return GameClock.baseTime;
	}
	
	public void setBaseTime(LocalDateTime newBaseTime) {
		GameClock.baseTime = newBaseTime;
	}
	
	public LocalDateTime getFastTime() {
		return GameClock.fastTime;
	}
	
	public void setFastTime(LocalDateTime newFastTime) {
		GameClock.fastTime = newFastTime;
	}
	
	public long getStartTime() {
		return GameClock.startTime;
	}
	
{'fraction_non_alphanumeric': 0.07159300184162062, 'fraction_numerical': 0.0009208103130755065, 'mean_word_length': 4.0, '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': '6309291', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1180, 'n_words': 460}