The viewer is disabled because this dataset repo requires arbitrary Python code execution. Please consider
removing the
loading script
and relying on
automated data support
(you can use
convert_to_parquet
from the datasets
library). If this is not possible, please
open a discussion
for direct help.
About the Dataset
The source code used to generate the dataset can be found on GitHub
The dataset is based on the CodeNet project and contains Python and C++ code submissions for online coding competitions. The data is obtained by selecting consecutive attempts of a single user that resulted in fixing a buggy submission. Thus the data is represented by code pairs and annotated by the diff and error of each changed instruction. We have already tokenized all the source code files and kept the same format as in the original dataset.
The upgrade made compared to CodeNetPy is that we only keep one line errors. This means that the task of bug detection and repair will be easier to manage. We also removed all the files that fail on linters, so that we are focusing only on bugs that cannot be identified easily.
The resulting dataset file will be a csv with the following columns:
problem_id
: The id of the problem, matches with the id from Project_CodeNetlanguage
: The programming language of the submission (Python
orC++
)original_status
: The status of the initial submission (TLE
,MLE
, anything that is notAccepted
)fail
: The initial (buggy) source code formatted (black
orclang-fromat
)pass
: The modified (accepted) source code formatted(black
orclang-format
change
: The change that was made (replace
,insert
,delete
)i1
: Start of the change in the buggy source (the line; starting with 1)i2
: End of the change in the buggy source (not inclusive; forinsert
we havei1 == i2
)j1
: Start of the change in the accepted source (the line; starting with 1)j2
: End of the change in the accepted source (not inclusive; fordelete
we havej1 == j2
)error
: The error that was obtained running the buggy source code on the input/output examplesstderr
: The full output of stderr of running the buggy source code on the input/output examplesstdout
: The full output of stdout of running the buggy source code on the input/output examplesdescription
: The problem statement in html formatinput
: The input for the test caseoutput
: The output for the test case
- Downloads last month
- 135