arrow
Return

PyBugHive: A Comprehensive Database of Manually Validated, Reproducible Python Bugs

delete2024-01-01
delete0
delete
OA
AI
G
Gábor Antal *
N
Norbert Vándor
I
István Kolláth
B
Balázs Mosolygó
P
Péter Hegedűs
R
Rudolf Ferenć
DOI:10.1109/ACCESS.2024.3449106delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Python is currently the number one language in the TIOBE index and has been the second most popular language on GitHub for years. But so far, there are only a few bug databases that contain bugs for Python projects and even fewer in which bugs can be reproduced. In this paper, we present a manually curated database of reproducible Python bugs called PyBugHive. The initial version of PyBugHive is a benchmark of 149 real, manually validated bugs from 11 Python projects. Each entry in our database contains the summary of the bug report, the corresponding patch, and the test cases that expose the given bug. PyBugHive features a rich command line interface for accessing both the buggy and fixed versions of the programs and provides the abstraction for executing the corresponding test cases. The interface facilitates highly reproducible empirical research and tool comparisons in fields such as testing, automated program repair, or bug prediction. The usage of our database is demonstrated through a use case involving a large language model, GPT-3.5. First, we evaluated the bug detection capabilities of the model with the help of the bug repository. Using multiple prompts, we found out that GPT-3.5 was able to detect 67 out of 149 bugs (45%). Furthermore, we leveraged the constructed bug dataset in assessing the automatic program repair capabilities of GPT-3.5 by comparing the generated fixes with the real patches contained in the dataset. However, its performance was far worse in this task compared to bug detection, as it was able to fix only one of the detected issues.
Keywords:
Bug database
bug dataset
benchmark
real bugs
reproducibility
manually curated bugs
Bug database
bug dataset
benchmark
real bugs
reproducibility
manually curated bugs

Journal

IEEE Access cover
IEEE Access
IF:
3.6
Papers:
9.8W
Citations:
29.4W

Organization

S
szeged university
Scholars:
9.5K
Papers: 6.7K
Citations: 3