<commit_before>import java.awt.FlowLayout;
import javax.swing.*;
/*
 * Clock is a panel which displays the time passed, time remaining,
 * and current stage of the competition.
 */
public class Clock extends JPanel
		implements Runnable
{
	private int totalTime = 0;
	private JLabel time;
	
	public Clock() {
		setLayout( new FlowLayout() );
		
		new JLabel("Time");
		add(time);
		
		Thread t = new Thread( this );
		t.start();
	}
	
	private String getState() {
		if (totalTime <= 15) {
			return " Autonomous";
		}
		
		return " Tele Op";
	}
	
	public void run() {
		try {
			while (totalTime <= 150) {
				Thread.sleep(1000);
				
				totalTime++;
				time.setText(" Remaining: " +((150-totalTime)/60) +":" +((150-totalTime)%60) + " Passed: " +(totalTime/60) +":" +(totalTime%60) +getState() );
			}
			time.setText("FINISHED!!!");
		} catch (InterruptedException ie) {
			System.out.println("Interrupted Exection on Clock thread."); 
		} 
	}

}<commit_msg>Clock bug<commit_after>import java.awt.FlowLayout;
import javax.swing.*;
/*
 * Clock is a panel which displays the time passed, time remaining,
 * and current stage of the competition.
 */
public class Clock extends JPanel
		implements Runnable
{
	private int totalSeconds = 0;
	private JLabel time;
	
	public Clock() {
		setLayout( new FlowLayout() );
		
		time = new JLabel("Time");
		add(time);
		
		Thread t = new Thread( this );
		t.start();
	}
	
	private String getState() {
		if (totalSeconds <= 15) {
			return " Autonomous";
		}
		
		return " Tele Op";
	}
	
	public void run() {
		try {
			while (totalSeconds <= 150) {
				Thread.sleep(1000);
				
				totalSeconds++;
				time.setText(" Remaining: " +((150-totalSeconds)/60) +":" +((150-totalSeconds)%60) + " Passed: " +(totalSeconds/60) +":" +(totalSeconds%60) +getState() );
			}
			time.setText("FINISHED!!!");
		} catch (InterruptedException ie) {
			System.out.println("Interrupted Exection on Clock thread."); 
		} 
	}

}
{'fraction_non_alphanumeric': 0.15356959424756034, 'fraction_numerical': 0.02465331278890601, 'mean_word_length': 3.328888888888889, 'pattern_counts': {'":': 4, '<': 7, '<?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': '1631915', 'n_tokens_mistral': 776, 'n_tokens_neox': 626, 'n_words': 174}