Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LALAYANG authored Jan 25, 2024
1 parent a41b890 commit 719880f
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,30 @@ The artifact repository for paper *"Can ChatGPT repair Non-Order-Dependent Tests

## Reproduce results

To set up the environments:
1. To set up the environments:
```
bash -x scripts/setup.sh
```
2. To clone all Java projects into a directory, one can run the following command:
```
bash -x clone.sh [InputCSV] [CloneDIR]
```
The arguments are as follows:
- `InputCSV`: An input csv files which includes the info of `project,sha,module`, such as:
```
https://github.com/apache/nifi,2bd752d868a8f3e36113b078bb576cf054e945e8,nifi-commons/nifi-record
```
- `CloneDIR`: the directory where all Java projects to be cloned

To reproduce the results, one can run the following command:
3. To reproduce the results, one can run the following command:
```
bash -x scripts/repair.sh [InputCSV] [CloneDIR] [APIKey] [ResultDir] NOD_repair.py
```
The arguments are as follows:
- `InputCSV`: An input csv files which includes the info of `project,sha,module,test,type,status,pr,notes` for each test (same information as in [IDoFT](https://github.com/TestingResearchIllinois/idoft), such as:
```
- InputCSV: An input csv files which includes the info of `project,sha,module,test,type,status,pr,notes` for each test, such as `https://github.com/apache/nifi,2bd752d868a8f3e36113b078bb576cf054e945e8,nifi-commons/nifi-record,org.apache.nifi.serialization.record.TestDataTypeUtils.testInferTypeWithMapNonStringKeys,ID,,,,`
- CloneDIR: the directory where all Java projects are located
- APIKey: OpenAI token
- ResultDir: the directory to save all results. Each run of the experiments will generate a directory with a unique SHA as the folder name, under the folder there are patches, detailed result information, and all logs
https://github.com/apache/nifi,2bd752d868a8f3e36113b078bb576cf054e945e8,nifi-commons/nifi-record,org.apache.nifi.serialization.record.TestDataTypeUtils.testInferTypeWithMapNonStringKeys,ID,,,,
```
- `CloneDIR`: the directory where all Java projects are located
- `APIKey`: OpenAI token
- `ResultDir`: the directory to save all results. Each run of the experiments will generate a directory with a unique SHA as the folder name, under the folder there are patches, detailed result information, and all logs

0 comments on commit 719880f

Please sign in to comment.