PaReco: Patched Clones and Missed Patches among the Divergent Variants of a Software Family. This tool relies on clone detection to mine cases of missed opportunity and effort duplication from a pool of patches.
The complete documentation of PaReco is available here
This tool reuses the classification method of ReDeBug. We extend their classification method to not only identify missed security patches, but to also identify missed, duplicated and split cases in any type of patch for the programming languages Java, Python, PHP, Perl, C, ShellScript and Ruby. We also look deeper into a patch and classify each file and each hunk in the .diff for that file.
.
├── LICENSE
├── README.md
├── docs
├── mkdocs.yml
├── requirements.txt
├── tokens-example.txt
├── PaReco.py
├── src
│ ├── bin
│ ├── constants
│ ├── core
│ ├── utils
│ ├── legacy
│ ├── notebooks
│ └── tests
└──
The initial version of PaReco is available here or in the legacy directory of this repository /src/legacy.
To setup and test PaReco tool on your local computer, following the steps below:
The easiest way is using the git clone command:
git clone https://github.com/unlv-evol/PaReco.gitPaReco consist of two categories of depencies i.e. (i) OS specific dependencies and (ii) development dependencies. The OS specific dependency is libmagic. To install this dependency on Ubuntu/Debian or MacOS X, run the shell script in the bin directory.
cd bin/
chmod +x script.sh
./script.shThe above code will automatically detect the OS (Linux or MacOS X) and install the libraries. Before installing development specific dependencies, let's set python virtual environment;
cd PaReco/
python3 -m venv venvActivate the virtual environment
source venv/bin/activateNow, let us install the dependencies
pip install -r requirements.txtNote: PaReco has been tested on python >= 3.7
PaReco is completely open and free to be used and extended by researchers and developers. Incase you use this tool in your publication, kindly cite the following papers:
- Ramkisoen, P. K., Businge, J., van Bladel, B., Decan, A., Demeyer, S., De Roover, C., & Khomh, F. (2022, November). PaReco: patched clones and missed patches among the divergent variants of a software family. In Proceedings of the 30th ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (pp. 646-658).
Join us in building this tool. Contribution is encouraged from OSS community. If interested, take a look at our contribution guidelines
Before reporting any issues, please visit the issue reporting guidelines page.