<commit_before>import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import org.junit.Test;

public class TestPlayer2JoystickButtons {
	@Test
	public void testY() {
		char key = 'y';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testU() {
		char key = 'u';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testI() {
		char key = 'i';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testK() {
		char key = 'k';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testH() {
		char key = 'h';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testN() {
		char key = 'n';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testM() {
		char key = 'm';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isAnyButton(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testComma() {
		char key = ',';

		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isAnyButton(key));
		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));

		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}
}
<commit_msg>fix player 2 tests for new button semantics<commit_after>import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import org.junit.Test;

public class TestPlayer2JoystickButtons {
	@Test
	public void testY() {
		char key = 'y';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testU() {
		char key = 'u';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testI() {
		char key = 'i';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testK() {
		char key = 'k';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testH() {
		char key = 'h';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testN() {
		char key = 'n';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testM() {
		char key = 'm';

		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isPlayer2Joystick(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}

	@Test
	public void testComma() {
		char key = ',';

		assertTrue(Buttons.isPlayer2Joystick(key));
		assertTrue(Buttons.isPlayer2Key(key));
		assertTrue(Buttons.isJoystick(key));
		assertTrue(Buttons.isAnyKey(key));

		assertFalse(Buttons.isAnyButton(key));
		assertFalse(Buttons.isPlayer1Joystick(key));
		assertFalse(Buttons.isPlayer1Key(key));
		assertFalse(Buttons.isStartButton(key));
		assertFalse(Buttons.isPlayer1Button(key));
		assertFalse(Buttons.isPlayer2Button(key));
	}
}

{'fraction_non_alphanumeric': 0.1404067630482725, 'fraction_numerical': 0.012129380053908356, 'mean_word_length': 7.245454545454545, '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': '2970815', 'n_tokens_mistral': 2913, 'n_tokens_neox': 2875, 'n_words': 305}