<commit_before>import eu.evops.maven.pluins.cucumber.parallel.reporting.JsonResultMerger;
import eu.evops.maven.pluins.cucumber.parallel.reporting.MergeException;
import org.apache.commons.io.FileUtils;
import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.jdom2.JDOMException;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Test;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * Created by n471306 on 19/07/2017.
 */
public class StreamingJSONFormatterTest {

    public File testProjectDirectory = new File(".", "test-project").getAbsoluteFile();
    public File pomFile = new File(testProjectDirectory, "pom.xml");
    public JsonResultMerger jsonResultMerger;
    public List<String> reports;
    public File outputFile;

    public void setup() throws IOException, InterruptedException, XmlPullParserException, JDOMException, MergeException {
        executeTests();
        mergeJSONs();
    }
<commit_msg>added a build step in @Before<commit_after>import cucumber.api.java.Before;
import eu.evops.maven.pluins.cucumber.parallel.reporting.JsonResultMerger;
import eu.evops.maven.pluins.cucumber.parallel.reporting.MergeException;
import org.apache.commons.io.FileUtils;
import org.apache.maven.model.Model;
import org.apache.maven.model.Plugin;
import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.codehaus.plexus.util.xml.pull.XmlPullParserException;
import org.jdom2.JDOMException;
import org.json.JSONArray;
import org.json.JSONObject;
import org.junit.Test;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

/**
 * Created by n471306 on 19/07/2017.
 */
public class StreamingJSONFormatterTest {

    public File testProjectDirectory = new File(".", "test-project").getAbsoluteFile();
    public File pomFile = new File(testProjectDirectory, "pom.xml");
    public JsonResultMerger jsonResultMerger;
    public List<String> reports;
    public File outputFile;

    @Before
    public void buildProjectBySkippingTestCases() throws IOException, InterruptedException {
        ProcessBuilder processBuilder = new ProcessBuilder();
        processBuilder.directory(new File(".").getAbsoluteFile());
        processBuilder.command("mvn", "clean", "install","-DskipTests");

        Process start = processBuilder.start();
        start.waitFor();
    }

    public void setup() throws IOException, InterruptedException, XmlPullParserException, JDOMException, MergeException {
        executeTests();
        mergeJSONs();
    }

{'fraction_non_alphanumeric': 0.10867430441898528, 'fraction_numerical': 0.011783960720130934, 'mean_word_length': 4.8320610687022905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '2226627', 'n_tokens_mistral': 951, 'n_tokens_neox': 903, 'n_words': 187}