<commit_before>package guitests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class ClearCommandTest extends TaskManagerGuiTest {

	@Test
	public void clear() {

		// verify a non-empty list can be cleared
		assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));
		assertClearCommandSuccess();

		// verify other commands can work after a clear command
		commandBox.runCommand("add Act like a craven"); // td.cower.getAddCommand()
		assertTrue(taskListPanel.isListMatching(td.cower));
		commandBox.runCommand("delete 1");
		assertListSize(0);

		// verify clear command works when the list is empty
		assertClearCommandSuccess();
	}

	private void assertClearCommandSuccess() {
		commandBox.runCommand("reset");
		assertListSize(0);
		assertResultMessage("Task Manager has been reset!");
	}
}
<commit_msg>nothing i think<commit_after>package guitests;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class ClearCommandTest extends TaskManagerGuiTest {

	// @@author A0139448U
	@Test
	public void clear() {

		// verify a non-empty list can be cleared
		assertTrue(taskListPanel.isListMatching(td.getTypicalTasks()));
		assertClearCommandSuccess();

		// verify other commands can work after a clear command
		commandBox.runCommand("add Act like a craven");
		assertTrue(taskListPanel.isListMatching(td.cower));
		commandBox.runCommand("delete 1");
		assertListSize(0);

		// verify clear command works when the list is empty
		assertClearCommandSuccess();
	}

	private void assertClearCommandSuccess() {
		commandBox.runCommand("reset");
		assertListSize(0);
		assertResultMessage("Task Manager has been reset!");
	}
}

{'fraction_non_alphanumeric': 0.1019561351511559, 'fraction_numerical': 0.007705986959098993, 'mean_word_length': 5.138181818181818, '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': '6531124', 'n_tokens_mistral': 525, 'n_tokens_neox': 486, 'n_words': 131}