<commit_before>package guitests;

import junit.framework.Assert;
import org.junit.Test;
import ui.UI;
import ui.issuepanel.IssuePanel;
import util.events.UILogicRefreshEvent;
import util.events.UpdateDummyRepoEvent;

public class ModelUpdateUITest extends UITest {

    @Test
    public void addIssueTest() throws InterruptedException {
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.RESET_REPO, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.NEW_ISSUE, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        IssuePanel issuePanel = find("#dummy/dummy_col0");
        Assert.assertEquals(issuePanel.getIssueCount(), 11);
    }

    @Test
    public void countIssuesTest() throws InterruptedException {
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.NEW_ISSUE, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.RESET_REPO, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        IssuePanel issuePanel = find("#dummy/dummy_col0");
        Assert.assertEquals(issuePanel.getIssueCount(), 10);
    }
}<commit_msg>Imported new Junit assertEquals<commit_after>package guitests;

import org.junit.Test;
import ui.UI;
import ui.issuepanel.IssuePanel;
import util.events.UILogicRefreshEvent;
import util.events.UpdateDummyRepoEvent;

import static org.junit.Assert.assertEquals;

public class ModelUpdateUITest extends UITest {

    @Test
    public void addIssueTest() throws InterruptedException {
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.RESET_REPO, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.NEW_ISSUE, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        IssuePanel issuePanel = find("#dummy/dummy_col0");
        assertEquals(issuePanel.getIssueCount(), 11);
    }

    @Test
    public void countIssuesTest() throws InterruptedException {
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.NEW_ISSUE, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        UI.events.triggerEvent(new UpdateDummyRepoEvent(UpdateDummyRepoEvent.UpdateType.RESET_REPO, "dummy/dummy"));
        UI.events.triggerEvent(new UILogicRefreshEvent());
        sleep(500);
        IssuePanel issuePanel = find("#dummy/dummy_col0");
        assertEquals(issuePanel.getIssueCount(), 10);
    }
}
{'fraction_non_alphanumeric': 0.10657133129043242, 'fraction_numerical': 0.012257405515832482, 'mean_word_length': 4.3321234119782215, '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': '3129233', 'n_tokens_mistral': 891, 'n_tokens_neox': 863, 'n_words': 134}