Sync
Browse files- README.md +1 -1
- dataset.jsonl +0 -0
- scripts/pack_jsonlines.py +27 -0
README.md
CHANGED
@@ -10,7 +10,7 @@ configs:
|
|
10 |
- config_name: default
|
11 |
data_files:
|
12 |
- split: test
|
13 |
-
path: dataset
|
14 |
---
|
15 |
# LLVM APR Benchmark: A Large-Scale Automated Program Repair Benchmark of Real-World LLVM Middle-End Bugs
|
16 |
|
|
|
10 |
- config_name: default
|
11 |
data_files:
|
12 |
- split: test
|
13 |
+
path: dataset.jsonl
|
14 |
---
|
15 |
# LLVM APR Benchmark: A Large-Scale Automated Program Repair Benchmark of Real-World LLVM Middle-End Bugs
|
16 |
|
dataset.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
scripts/pack_jsonlines.py
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
# Copyright 2025 Yingwei Zheng
|
3 |
+
#
|
4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
+
# you may not use this file except in compliance with the License.
|
6 |
+
# You may obtain a copy of the License at
|
7 |
+
#
|
8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
+
#
|
10 |
+
# Unless required by applicable law or agreed to in writing, software
|
11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
+
# See the License for the specific language governing permissions and
|
14 |
+
# limitations under the License.
|
15 |
+
|
16 |
+
import jsonlines
|
17 |
+
import json
|
18 |
+
import sys
|
19 |
+
import os
|
20 |
+
|
21 |
+
dataset_dir = sys.argv[1]
|
22 |
+
output_file = sys.argv[2]
|
23 |
+
|
24 |
+
with jsonlines.open(output_file, "w") as writer:
|
25 |
+
for file in os.listdir(dataset_dir):
|
26 |
+
with open(os.path.join(dataset_dir, file)) as f:
|
27 |
+
writer.write(json.load(f))
|