Identifiers of bugs do not match with those from RepairThemAll
martinezmatias opened this issue · 1 comments
Dear Haoye, Bissyande
I found that the bug identifiers from experiment-2 are different to those RepairThemAll. Consequently, it's not straightforward to link the patches located into those folders with the bugs identifiers from the different benchmarks from Bears and Bugs.jar
For example, the folder DL4PatchCorrectness/data/experiment2/Exp-2-data/correct-patches/Arja/Bugs.jar-math-85referees to bug "85" from project Math from Bugs.jar, however, the identifiers used in RepairThemAll are different (e.g., ids from Bugs.jar for Math)By manually inspecting some patches, we can obtain the original benchmark identifier from the files under comparison's paths. For example, one patch from mentioned Bugs.jar-math-85 has:--- /tmp/Arja_Bug_dot_jar_Commons-Math_2123f780/src/main/java/org/apache/commons/math/complex/Complex.java 2018-12-29 05:13:52.230427000 -0500
+++ /tmp/Arja_Bug_dot_jar_Commons-Math_2123f780/patches_nzc2/Patch_43/patched/tmp/Arja_Bug_dot_jar_Commons-Math_2123f780/src/main/java/org/apache/commons/math/complex/Complex.java 2018-12-29 05:23:23.470373412 -0500
There, we can see that this patch corresponds to bug 2123f780 (here in RepairThemAll).Unfortunately, the paths are not available in all patches. For example, for patch DL4PatchCorrectness/data/experiment2/Exp-2-data/incorrect-patches/Nopol-DifferentFilePatches/Bears-250/0.txt
(BTW, it would be nice if the data from experiment2 is uncompressed in the repo. That would allow us to directly point the patches).
Is there a way to retrieve the original identifiers?
Thanks a lot!
Solved by commit a0994fd