<commit_before>//@@author A0139925U
package guitests;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import guitests.guihandles.MainGuiHandle;

public class HotkeyManagerGuiTest extends TaskManagerGuiTest {

    @Test
    public void hotkeyManager_toggleWindowFocus_success() {
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlQAccelerator());
        assertMainGuiOpen(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
    }

    private void assertMainGuiOpen(MainGuiHandle mainGuiHandle) {
        assertTrue(mainGuiHandle.getPrimaryStage().isFocused() || !mainGuiHandle.getPrimaryStage().isIconified());
    }

    private void assertMainGuiHidden(MainGuiHandle mainGuiHandle) {
        assertFalse((mainGuiHandle.getPrimaryStage().isFocused() == true)
                    && (mainGuiHandle.getPrimaryStage().isIconified() == false));
    }

}<commit_msg>Another HotkeyManager test<commit_after>//@@author A0139925U
package guitests;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

import guitests.guihandles.MainGuiHandle;

public class HotkeyManagerGuiTest extends TaskManagerGuiTest {

    @Test
    public void hotkeyManager_toggleWindowFocus_success() {
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
        assertMainGuiHidden(mainGui.toggleMainGuiUsingCtrlQAccelerator());
        assertMainGuiOpen(mainGui.toggleMainGuiUsingCtrlAltDAccelerator());
    }

    private void assertMainGuiOpen(MainGuiHandle mainGuiHandle) {
        assertTrue(mainGuiHandle.getPrimaryStage().isFocused() || !mainGuiHandle.getPrimaryStage().isIconified());
    }

    private void assertMainGuiHidden(MainGuiHandle mainGuiHandle) {
        assertFalse((mainGuiHandle.getPrimaryStage().isFocused() == true)
                    && (mainGuiHandle.getPrimaryStage().isIconified() == true));
    }

}
{'fraction_non_alphanumeric': 0.0962671905697446, 'fraction_numerical': 0.0068762278978389, 'mean_word_length': 4.938775510204081, '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': '3863922', 'n_tokens_mistral': 584, 'n_tokens_neox': 569, 'n_words': 82}