This commit is contained in:
Anil Koyuncu
2018-04-02 18:18:57 +02:00
parent 444be41cd8
commit a0d23eafa4
2 changed files with 2 additions and 2 deletions
@@ -51,7 +51,7 @@ public class FixedViolationHunkParser extends FixedViolationParser {
FileOutputStream f = null; FileOutputStream f = null;
try { try {
String pj = diffentryFile.getParent().split("GumTreeInputBug4")[1]; String pj = diffentryFile.getParent().split("GumTreeInputBug4")[1];
String root = "/Users/anilkoyuncu/bugStudy/dataset/GumTreeOutput2"; String root = diffentryFile.getParent().split("GumTreeInputBug4")[0];
String hunkTreeFileName = root+pj.replace("DiffEntries","ActionSetDumps/") + diffentryFile.getName() + "_" + String.valueOf(hunkSet); String hunkTreeFileName = root+pj.replace("DiffEntries","ActionSetDumps/") + diffentryFile.getName() + "_" + String.valueOf(hunkSet);
f = new FileOutputStream(new File(hunkTreeFileName)); f = new FileOutputStream(new File(hunkTreeFileName));
ObjectOutputStream o = new ObjectOutputStream(f); ObjectOutputStream o = new ObjectOutputStream(f);
@@ -108,7 +108,7 @@ public class TestHunkParser {
try { try {
log.info("Akka begins..."); log.info("Akka begins...");
system = ActorSystem.create("Mining-FixPattern-System"); system = ActorSystem.create("Mining-FixPattern-System");
parsingActor = system.actorOf(ParseFixPatternActor.props(20, editScriptsFilePath, parsingActor = system.actorOf(ParseFixPatternActor.props(1, editScriptsFilePath,
patchesSourceCodeFilePath, buggyTokensFilePath, editScriptSizesFilePath), "mine-fix-pattern-actor"); patchesSourceCodeFilePath, buggyTokensFilePath, editScriptSizesFilePath), "mine-fix-pattern-actor");
parsingActor.tell(msg, ActorRef.noSender()); parsingActor.tell(msg, ActorRef.noSender());
} catch (Exception e) { } catch (Exception e) {