We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5408c72 commit b5a2a8cCopy full SHA for b5a2a8c
1 file changed
src/main/java/org/variantsync/diffdetective/experiments/thesis_es/UnparseAnalysis.java
@@ -38,8 +38,8 @@ public boolean analyzeVariationDiff(Analysis analysis) throws Exception {
38
String textDiff = patch.getDiff();
39
String codeBefore = "";
40
String codeAfter = "";
41
- codeBefore = Files.readString(Path.of(patch.getFileName(Time.BEFORE)));
42
- codeAfter = Files.readString(Path.of(patch.getFileName(Time.AFTER)));
+ codeBefore = VariationUnparser.undiff(patch.getDiff(), Time.BEFORE);
+ codeAfter = VariationUnparser.undiff(patch.getDiff(), Time.AFTER);
43
codeBefore = codeBefore.replaceAll("\\r\\n", "\n");
44
codeAfter = codeAfter.replaceAll("\\r\\n", "\n");
45
boolean[][] diffTestAll = runTestsDiff(textDiff);
0 commit comments