trux-dtf / dl4patchcorrectness Goto Github PK
View Code? Open in Web Editor NEWAn empirical study on patch correctness
An empirical study on patch correctness
Dear authors.
Thanks for your work about patch correctness. Recently, I am performing a study about patch correctness. I encounter some problems when try to recreate your work on my dataset. Specifically, the script that generates preprocessed cc2vec vectors is missing. I can't find relative script that transforms data (generated in here) to pickle file.
I would appreciate it if you could help me :)
Best regards.
Bo.
Dear authors.
Thanks for your work about patch correctness. However, when I tried to clone your project with command:
git lfs clone https://github.com/TruX-DTF/DL4PatchCorrectness.git
, there was an error reported:
error: invalid path 'data/experiment1/APR-Efficiency-PFL/AVATAR/Chart-14_P /Patch_124_3.txt'.
Please check that all the pathnames are correct.
What's more, when I tried to download the lfs file "DL4PatchCorrectness/data/experiment1/train_data5_for_cc2v.txt" and "DL4PatchCorrectness/data/experiment1/train_data5_frag.txt" with command:
git lfs fetch
, there was also an error reported:
Object does not exist on the server: [404] Object does not exist on the server,
error: failed to fetch some objects from
Please make sure the command git lfs install
was run and all these large files are uploaded properly with git lfs push --all
.
I would appreciate it if you could help me :)
Best regards.
Bo.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.