Installation
Defexts edited this page Jun 13, 2019
·
6 revisions
The following commands are possible within Defexts.
- Show interface help
$ python3 defexts.py (-h | --help)
- List every bug within a particular Defexts child dataset alongside supplemental information including bugId, patch url, and underlying build system.
$ python3 defexts.py <language> (-a | --all-projects)
- List every unique project and the number of bugs associated to each project within the Kotlin dataset
$ python3 defexts.py kotlin (-l | --list-bugs)
- Show the list of bugs within the Groovy dataset
$ python3 defexts.py groovy (-l | --list-bugs)
- Checkout the buggy version (-b | --buggy) of kog-1 from the Kotlin dataset. This command extracts the project into the current working directory.
$ python3 defexts.py kotlin (-c | --checkout) kog-1 (-b | --buggy)
- Checkout the fixed version (-f | --fixed) of thrifty-2 from the Kotlin dataset. This command extracts the project into the current working directory.
$ python3 defexts.py kotlin (-c | --checkout) thrifty-2 (-f | --fixed)
- View the diff of any modified source file(s) (-s | --source) between a bug and its fix.
$ python3 defexts.py <language> (-d | --diff) <bugId> (-s | --source)
- View the diff of any modified test file(s) (-t | --test) between a bug and its fix.
$ python3 defexts.py <language> (-d | --diff) <bugId> (-t | --test)
The above examples are executed via Python 3. If you are executing with Python 2, replace all instances of python3
with python
.
Further sample usage of Defexts can be viewed here: https://youtu.be/lenYcVzRGGQ