Identifying non-natural language artifacts in bug reports

Thomas Hirsch, Birgit Hofer
10/4/2021
cs.SEcs.CL

Official code: AmadeusBugProject/artifact_detection (2 stars, Python, AGPL-3.0, last commit 2022-03-30).

Abstract

Bug reports are a popular target for natural language processing (NLP). However, bug reports often contain artifacts such as code snippets, log outputs and stack traces.

Show full abstract

These artifacts not only inflate the bug reports with noise, but often constitute a real problem for the NLP approach at hand and have to be removed. In this paper, we present a machine learning based approach to classify content into natural language and artifacts at line level implemented in Python. We show how data from GitHub issue trackers can be used for automated training set generation, and present a custom preprocessing approach for bug reports. Our model scores at 0.95 ROC-AUC and 0.93 F1 against our manually annotated validation set, and classifies 10k lines in 0.72 seconds. We cross evaluated our model against a foreign dataset and a foreign R model for the same task. The Python implementation of our model and our datasets are made publicly available under an open source license.

View on arXivView PDF

Code Implementations(1)

AGPL-3.0
21Python, TeXSep 21, 20214 years agoAGPL-3.0

Similar Papers

Cite this paper

@article{hirsch2021identifying,
  title  = {Identifying non-natural language artifacts in bug reports},
  author = {Thomas Hirsch and Birgit Hofer},
  year   = {2021},
  eprint = {2110.01336},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.01336}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.01336.svg)](https://codeofpaper.com/paper/2110.01336)

Discussion