Skip to content

Commit b97c2e8

Browse files
committed
v2.0.0 almost ready
1 parent f1d6cc0 commit b97c2e8

File tree

4 files changed

+68228
-4
lines changed

4 files changed

+68228
-4
lines changed

src/main/java/edu/uniandes/tsdl/mutapk/processors/MutationsProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void process(List<MutationLocation> locations, String extraPath, String a
6767
setupMutantFolder(mutantIndex);
6868
Long copyingEnd = System.currentTimeMillis();
6969
Long copyingTime = copyingEnd - copyingIni;
70-
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";" + copyingTime + ";0;0;0;0;0;0");
70+
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";" + copyingTime + ";0;0;0;0;-1;0");
7171
wwriter.newLine();
7272
wwriter.flush();
7373
Long mutationIni = System.currentTimeMillis();
@@ -112,10 +112,10 @@ private void verifyDuplicateMutants(String extraPath, String apkName, int mutant
112112
int compare = apkHashSeparatorDuplicate.getMutantId();
113113
if(compare == 0) {
114114
System.out.println("The mutant with id: "+apkHashSeparator.getMutantId()+" is equivalent.");
115-
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";" + mutationTime + ";" + -1 + ";1;0;"+compare+";0");
115+
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";0;" + mutationTime + ";" + -1 + ";1;0;"+compare+";0");
116116
} else {
117117
System.out.println("The mutant with id: "+apkHashSeparator.getMutantId()+" is duplicated with mutant with id: "+compare);
118-
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";" + mutationTime + ";" + -1 + ";0;1;"+compare+";0");
118+
wwriter.write(mutantIndex + ";" + mutationLocation.getType().getId() + ";0;" + mutationTime + ";" + -1 + ";0;1;"+compare+";0");
119119
}
120120
wwriter.newLine();
121121
wwriter.flush();
@@ -184,7 +184,7 @@ public void processMultithreaded(List<MutationLocation> locations, final String
184184
setupMutantFolder(currentMutationIndex);
185185
Long copyingEnd = System.currentTimeMillis();
186186
Long copyingTime = copyingEnd - copyingIni;
187-
wwriter.write(currentMutationIndex + ";" + mutationLocation.getType().getId() + ";" + copyingTime + ";0;0;0;0;0;0");
187+
wwriter.write(currentMutationIndex + ";" + mutationLocation.getType().getId() + ";" + copyingTime + ";0;0;0;0;-1;0");
188188
wwriter.newLine();
189189
wwriter.flush();
190190
results.add(executor.submit(new Callable<String>() {

0 commit comments

Comments
 (0)