<commit_before>package tunnelRunner;

import java.awt.AWTException;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.geom.Rectangle2D;
import java.util.Arrays;

import javax.swing.JPanel;
import javax.swing.Timer;

import utilityClasses.CenteredText;

public class TunnelPanel extends JPanel implements ActionListener, KeyListener {

	private boolean UpPressed = false;
	private boolean DownPressed = false;

	private boolean startGame = true;
	private boolean playing = false;
	private boolean endGame = false;

	private int holeX = 500;
	private int holeY = 220;

	private int widthOfHole = 5;
	private int holeNumber = 500/widthOfHole;
	private int holeSize = 150;
	
	private int[] holesX = new int[holeNumber];
	private int[] holesY = new int[holeNumber];
	
	/*private int[] holesX = { 500, 500 + (15), 500 + (15) * 2, 500 + (15) * 3,
			500 + (15) * 4, 500 + (15) * 5, 500 + (15) * 6, 500 + (15) * 7,
			500 + (15) * 8, 500 + (15) * 9, 500 + (15) * 10, 500 + (15) * 11,
			500 + (15) * 12, 500 + (15) * 13, 500 + (15) * 14, 500 + (15) * 15};

	private int[] holesY = { 220, 230, 240, 230, 240, 230, 220, 230, 240, 230, 240, 230, 220, 230, 240, 250};
*/
	private int ballX = 20;
	private int ballY = 40;
	private int deltaX = 0;
	private int deltaY = 0;
	private int diameter = 15;
	private int buffer = 0;

	private int ballSpeed = 4;
	private int origBallSpeed = ballSpeed;
	private int holeSpeed = 5;
	private int origHoleSpeed = holeSpeed;

	private int timeSplit = 0;
	private int timeSeconds = 0;
	private boolean paused = false;

	public TunnelPanel() {

		
		for (int i = 0; i < holesX.length; i++) {<commit_msg>Made ball move faster in Tunnel Runner from BallSpeed = 4 to   BallSpeed = 5<commit_after>package tunnelRunner;

import java.awt.AWTException;
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.geom.Rectangle2D;
import java.util.Arrays;

import javax.swing.JPanel;
import javax.swing.Timer;

import utilityClasses.CenteredText;

public class TunnelPanel extends JPanel implements ActionListener, KeyListener {

	private boolean UpPressed = false;
	private boolean DownPressed = false;

	private boolean startGame = true;
	private boolean playing = false;
	private boolean endGame = false;

	private int holeX = 500;
	private int holeY = 220;

	private int widthOfHole = 5;
	private int holeNumber = 500/widthOfHole;
	private int holeSize = 150;
	
	private int[] holesX = new int[holeNumber];
	private int[] holesY = new int[holeNumber];
	
	/*private int[] holesX = { 500, 500 + (15), 500 + (15) * 2, 500 + (15) * 3,
			500 + (15) * 4, 500 + (15) * 5, 500 + (15) * 6, 500 + (15) * 7,
			500 + (15) * 8, 500 + (15) * 9, 500 + (15) * 10, 500 + (15) * 11,
			500 + (15) * 12, 500 + (15) * 13, 500 + (15) * 14, 500 + (15) * 15};

	private int[] holesY = { 220, 230, 240, 230, 240, 230, 220, 230, 240, 230, 240, 230, 220, 230, 240, 250};
*/
	private int ballX = 20;
	private int ballY = 40;
	private int deltaX = 0;
	private int deltaY = 0;
	private int diameter = 15;
	private int buffer = 0;

	private int ballSpeed = 5;
	private int origBallSpeed = ballSpeed;
	private int holeSpeed = 5;
	private int origHoleSpeed = holeSpeed;

	private int timeSplit = 0;
	private int timeSeconds = 0;
	private boolean paused = false;

	public TunnelPanel() {

		
		for (int i = 0; i < holesX.length; i++) {
{'fraction_non_alphanumeric': 0.12339869281045751, 'fraction_numerical': 0.0915032679738562, 'mean_word_length': 3.8988476312419973, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2634857', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1293, 'n_words': 452}