<commit_before>package tests;

import backend.RepoIO;
import backend.interfaces.RepoStore;
import backend.json.JSONStore;
import backend.resource.Model;
import guitests.UITest;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import ui.UI;
import ui.components.StatusUIStub;
import util.events.EventDispatcherStub;
import util.events.testevents.UpdateDummyRepoEvent;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.concurrent.ExecutionException;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class StoreTests {

    /**
     * Needed to avoid NullPointerExceptions
     */
    @BeforeClass
    public static void setup() {
        UI.events = new EventDispatcherStub();
        UI.status = new StatusUIStub();
    }

    @Before
    public void enableTestDirectory() {
        RepoStore.enableTestDirectory();
    }

    @Test
    public void testStoreStub() throws ExecutionException, InterruptedException {<commit_msg>Removed extra import in StoreTests<commit_after>package tests;

import backend.RepoIO;
import backend.interfaces.RepoStore;
import backend.json.JSONStore;
import backend.resource.Model;
import guitests.UITest;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import ui.UI;
import ui.components.StatusUIStub;
import util.events.EventDispatcherStub;
import util.events.testevents.UpdateDummyRepoEvent;

import java.io.File;
import java.util.concurrent.ExecutionException;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;

public class StoreTests {

    /**
     * Needed to avoid NullPointerExceptions
     */
    @BeforeClass
    public static void setup() {
        UI.events = new EventDispatcherStub();
        UI.status = new StatusUIStub();
    }

    @Before
    public void enableTestDirectory() {
        RepoStore.enableTestDirectory();
    }

    @Test
    public void testStoreStub() throws ExecutionException, InterruptedException {
{'fraction_non_alphanumeric': 0.09164677804295943, 'fraction_numerical': 0.0, 'mean_word_length': 4.175308641975309, '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': '7132180', 'n_tokens_mistral': 601, 'n_tokens_neox': 604, 'n_words': 144}