test
This commit is contained in:
+1
-1
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user