criyle commited on
Commit
cb28713
·
verified ·
1 Parent(s): e73bf7e

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ - text-classification
6
+ language:
7
+ - en
8
+ tags:
9
+ - code
10
+ - compiler-error
11
+ - program-repair
12
+ - codenet
13
+ - debugging
14
+ size_categories:
15
+ - 10K<n<100K
16
+ ---
17
+
18
+ # CodeNet Compiler Errors (Re-compiled 2026)
19
+
20
+ ## Dataset Summary
21
+ This dataset contains source code submissions from [Project CodeNet](https://github.com/IBM/Project_CodeNet) that fail to compile. Unlike the original dataset metadata (which reflects compiler versions from 2011–2020), **this dataset was re-executed in a modern Debian environment (2026)** to generate up-to-date compiler error messages.
22
+
23
+ It is designed for research in:
24
+ - **Automated Program Repair (APR):** Fixing compile-time errors.
25
+ - **Compiler Error Explanation:** Training LLMs to explain *why* code fails.
26
+ - **Compiler Fuzzing/Robustness:** Analyzing how modern compilers handle legacy broken code.
27
+
28
+ ## Supported Languages
29
+ - **C** (GCC 14)
30
+ - **C++** (G++ 14, C++17 default)
31
+ - **Java** (OpenJDK 21)
32
+
33
+ ## Dataset Structure
34
+
35
+ ### Data Instances
36
+ Each row represents a single submission that failed compilation.
37
+
38
+ ```json
39
+ {
40
+ "submission_id": "s000017057",
41
+ "problem_id": "p03070",
42
+ "language": "C++",
43
+ "code": "#include <iostream>\n...",
44
+ "compiler_output": "a.cc: In function 'int main()':\na.cc:57:28: error: 'p1' was not declared in this scope..."
45
+ }
46
+ ```
47
+
48
+ ### Data Fields
49
+
50
+ * `submission_id`: The original ID from Project CodeNet.
51
+ * `problem_id`: The problem identifier (e.g., `p02389`).
52
+ * `language`: The programming language (`C`, `C++`, or `Java`).
53
+ * `code`: The full source code of the submission.
54
+ * `compiler_output`: The `stderr` (or `stdout`) captured from the compiler.
55
+
56
+ ## Creation Methodology
57
+
58
+ This dataset was derived by filtering Project CodeNet for submissions originally marked as `Compile Error`. These submissions were then fed into a **clean sandbox environment** using `go-judge` to verify the error and capture the modern compiler output.
59
+
60
+ **Environment Details:**
61
+
62
+ * **OS:** Debian 13 (Trixie)
63
+ * **C/C++ Compiler:** GCC 14.2.0
64
+ * **Java Compiler:** OpenJDK 21.0.9
65
+ * **Sandboxing:** Process isolation via Linux Namespaces (cgroups, unshare).
66
+
67
+ **Filtering Criteria:**
68
+
69
+ 1. Original CodeNet status was `Compile Error`.
70
+ 2. Re-compilation in the modern environment resulted in a non-zero exit code (`exit_code != 0`).
71
+ 3. Submissions that "accidentally" compiled successfully due to compiler drift (e.g., newer C++ standards being more permissive) were **excluded** to ensure high quality.
72
+
73
+ ## Citations
74
+
75
+ If you use this dataset, please cite the original [Project CodeNet paper](https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/hash/a5bfc9e07964f8dddeb95fc584cd965d-Abstract-round2.html):
76
+
77
+ ```bibtex
78
+ @inproceedings{puri2021codenet,
79
+ title = {CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks},
80
+ author = {Puri, Ruchir and Kung, David and Janssen, Geert and Zhang, Wei and Domeniconi, Giacomo and Zolotov, Vladimir and Dolby, Julian T and Chen, Jie and Choudhury, Mihir and Decker, Lindsey and Thost, Veronika and Thost, Veronika and Buratti, Luca and Pujar, Saurabh and Ramji, Shyam and Finkler, Ulrich and Malaika, Susan and Reiss, Frederick},
81
+ booktitle = {Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks},
82
+ editor = {J. Vanschoren and S. Yeung},
83
+ pages = {},
84
+ url = {https://datasets-benchmarks-proceedings.neurips.cc/paper_files/paper/2021/file/a5bfc9e07964f8dddeb95fc584cd965d-Paper-round2.pdf},
85
+ volume = {1},
86
+ year = {2021}
87
+ }
88
+ ```