Skip to content

Commit f7df6f5

Browse files
update readme
1 parent 039b5bf commit f7df6f5

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,13 @@ run.py: entrance to conduct experiment.
4040

4141
### B) Colleted elements
4242
```
43-
data/BugReport: Bug reports for Defects4j, Bugsjar, Bears. Structured as `bug-id $$ bug report summary $$ bug report description`.
44-
data/CommitMessage: Commit messages written by developer or generated by CodeTrans. Structured as `bug-id: commit message` in json file.
43+
data/BugReport: Bug reports texts for Defects4j, Bugsjar, Bears. Structured as `bug-id $$ bug report summary $$ bug report description` in txt file.
44+
data/CommitMessage: Commit messages written by developer or generated by CodeTrans in format of json and pickle. Structured as `bug-id: commit message` in json file.
4545
---------------
4646
BATS_RESULT_0.0.json: the prediction results of BATS with cut-off 0.0 on our dataset.
4747
BATS_RESULT_0.8.json: the prediction results of BATS with cut-off 0.8 on our dataset.
4848
PATCHSIM_RESULT.json: the prediction results of Patch-Sim on our dataset.
49+
PatchLabelsYe.csv: the original prediction results of ODS.
4950
Bears_testinfo.txt: the stack failure information of test suites for Bears.
5051
bears_index_dict(inverse).json: dictionary of bug-id and commit-id.
5152
save_bugreport_patch.py: script to produce data/bugreport_patch.txt.

data/README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@
33
2. bug report description: detailed description for bug issue.
44
3. patch description: CodeTrans-generated commit message for patch.
55

6-
### Table 1: Datasets of labelled patches.
6+
### A) Table 1: Datasets of labelled patches.
77
* **bugreport_patch.txt:** 9135 (1591:7544) Pairs of Bug report & Commit message. Structured as `bug-id $$ bug report summary $$ bug report description $$ patchId $$ patch description $$ label`
88
* **bugreport_patch_json_bert.pickle:** Bert embeddings of Pairs of Bug report & Commit message.
99

10-
### Colleted elements
11-
* **BugReport:** Bug reports for Defects4j, Bugsjar, Bears. Structured as `bug-id $$ bug report summary $$ bug report description`.
12-
* **CommitMessage:** Commit messages written by developer or generated by CodeTrans. Structured as `bug-id: commit message` in json file.
10+
### B) Colleted elements
11+
```
12+
data/BugReport: Bug reports texts for Defects4j, Bugsjar, Bears. Structured as `bug-id $$ bug report summary $$ bug report description` in txt file.
13+
data/CommitMessage: Commit messages written by developer or generated by CodeTrans in format of json and pickle. Structured as `bug-id: commit message` in json file.
14+
---------------
15+
BATS_RESULT_0.0.json: the prediction results of BATS with cut-off 0.0 on our dataset.
16+
BATS_RESULT_0.8.json: the prediction results of BATS with cut-off 0.8 on our dataset.
17+
PATCHSIM_RESULT.json: the prediction results of Patch-Sim on our dataset.
18+
PatchLabelsYe.csv: the original prediction results of ODS.
19+
Bears_testinfo.txt: the stack failure information of test suites for Bears.
20+
bears_index_dict(inverse).json: dictionary of bug-id and commit-id.
21+
save_bugreport_patch.py: script to produce data/bugreport_patch.txt.
22+
```

preprocess/README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,3 @@
33
2, split patch
44
3, format folders
55
4, get source target file
6-
7-
## data_util.py
8-
functions:
9-
- def writetxt2csv( , ): transform file from text to csv
10-
- def Prepare_data( , , is_filter = Ture): Scan data and build vocabulary
11-
- Class ShoProcess(): Process bar function
12-
- def numbr(string): replace '-' to none
13-
- def filter_punc(sentence): remove punctuation
14-
- def word2index(word, diction): given a word, return its index
15-
- def index2word(index, diction): given an index, return its word
16-
- def splitdata( , ): split data and build dictionary

0 commit comments

Comments
 (0)