Update README.md
Browse files
README.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
| 1 |
-
|
| 2 |
|
|
|
|
| 3 |
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
An example of an issue is as follows:
|
| 6 |
|
| 7 |
```
|
|
|
|
| 1 |
+
## 1. Downloads
|
| 2 |
|
| 3 |
+
Please download the benchmark from https://huggingface.co/datasets/somethingone/PLocBench/blob/main/all_issues_with_pr_commit_comment_all_project_0922.pkl
|
| 4 |
|
| 5 |
+
|
| 6 |
+
### 2. How to Use DataSet
|
| 7 |
+
|
| 8 |
+
```
|
| 9 |
+
import pickle
|
| 10 |
+
filepath = "input the data path, e.g., all_issues_with_pr_commit_comment_all_project_0922.pkl"
|
| 11 |
+
with open(filepath, 'rb') as file:
|
| 12 |
+
iss_list = pickle.load(file)
|
| 13 |
+
for ind, e_iss in enumerate(iss_list):
|
| 14 |
+
print(f"{ind} issue info is {e_iss['iss_html_url']}") # print issue html url
|
| 15 |
+
for featurename in e_iss:
|
| 16 |
+
print(f"{featurename}: {e_iss[featurename]}") # print feature_name: value for each issue
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
### 3. Data Instances
|
| 22 |
An example of an issue is as follows:
|
| 23 |
|
| 24 |
```
|