Skip to content

About

Mirror of public datasets for software defect prediction (PROMISE, NASA MDP, Eclipse) and bug localization (Ye et al. FSE 2014), with sources credited.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

AISE-dataset

A collection of public research datasets for two software-engineering tasks, software defect prediction (SDP) and information-retrieval-based bug localization, gathered in one place in 2022 so they could be used for experiments (for example, combining software metrics with ASTs extracted from source code).

None of the data or papers in this repository were created by the repository owner. They are third-party datasets and publications, mirrored here for convenience. Please cite the original authors (see Data sources and credits) and obtain the data from the original sources when possible.

Contents

.
├── SDP/                                  # software-metric datasets for defect prediction
│   ├── dataApache(PROMISE)/              # 41 CSVs: CK/OO class metrics + bug count (PROMISE)
│   ├── dataEclipse/
│   │   ├── file/                         # Eclipse 2.0 / 2.1 / 3.0, file-level metrics
│   │   └── package/                      # Eclipse 2.0 / 2.1 / 3.0, package-level metrics
│   └── dataNASA/                         # 13 NASA MDP datasets (CM1, JM1, KC1, ... PC5)
├── Source Code of Promise/               # original source releases behind the PROMISE CSVs
│   └── ant/ camel/ jedit/ log4j/ lucene/ poi/ synapse/ velocity/ xalan/ xerces/
├── Bug Localization Data/
│   ├── bug reports/                      # 6 projects, each as .txt (TSV), .xlsx and .xml
│   └── source files/                     # source snapshots (zip) used to locate fixed files
└── Bug Localization Paper/
    └── Learn2Rank-Bug-Localization.pdf   # Ye, Bunescu & Liu, FSE 2014 (third-party paper)

Large files (archives, .xlsx, .pdf) are stored as regular git objects; cloning the repository downloads about 290 MB.

1. Software defect prediction (SDP/)

Apache projects from the PROMISE repository: SDP/dataApache(PROMISE)/

41 CSV files, one per project release: ant 1.3–1.7, camel 1.0–1.6, ivy 1.0–1.2, jedit 3.2–4.3, log4j 1.0–1.2, lucene 2.0–2.4, poi 1.5–3.0, synapse 1.0–1.2, velocity 1.4–1.6, xalan 2.4–2.7, xerces 1.1–1.4.4.

  • One row per Java class, comma-separated, with a header row.
  • Columns: name (fully qualified class name), 20 object-oriented metrics (wmc, dit, noc, cbo, rfc, lcom, ca, ce, npm, lcom3, loc, dam, moa, mfa, cam, ic, cbm, amc, max_cc, avg_cc) and bug, the number of defects recorded for the class (use bug > 0 as the defective / clean label).

Eclipse: SDP/dataEclipse/

eclipse-metrics-files-{2.0,2.1,3.0}.csv (file level, 202 columns) and eclipse-metrics-packages-{2.0,2.1,3.0}.csv (package level, 211 columns). The file names and layout match the Eclipse bug dataset by Zimmermann, Premraj and Zeller (see credits). In these copies the header row was replaced by generic names (tt1, tt2, ...). In the file-level data the first two columns are the plug-in and the file path, followed by numeric metrics. The original header is needed to tell which column is the defect count; get it from the original distribution.

NASA Metrics Data Program: SDP/dataNASA/

13 datasets: CM1, JM1, KC1, KC3, KC4, MC1, MC2, MW1, PC1, PC2, PC3, PC4, PC5.

  • One row per module; static code metrics (McCabe, Halstead, LOC, ...).
  • The header row is generic (tt1, tt2, ...); JM1 and KC1 have 22 columns, the others 41.
  • The last column is the label: Y = defective, N = clean.

Source code of the PROMISE projects: Source Code of Promise/

Archived source releases (.zip, .tar.gz, .tar.bz2) for the Apache/PROMISE projects above (all except ivy), for example apache-ant-1.7.0-src.zip or xalan-j_2_7_0-src.tar.gz. They make it possible to extract features that the metric CSVs do not contain, such as abstract syntax trees (ASTs). The original links cited by the PROMISE papers were no longer reachable, so backup copies of the releases were used. For parsing Java ASTs in Python, javalang is a common choice.

Each archive is a release of the corresponding open-source project and remains under that project's own licence (for example, the Apache License 2.0 for the Apache projects, the GPL for jEdit).

2. Bug localization (Bug Localization Data/)

Bug reports and source code for six open-source Java projects: AspectJ, Birt, Eclipse Platform UI, JDT, SWT and Tomcat. The projects, the number of AspectJ reports (593) and the source snapshot names match the benchmark dataset released with the paper by Ye, Bunescu and Liu (FSE 2014) included in Bug Localization Paper/.

Project Bug reports Source snapshot in source files/
AspectJ 593 org.aspectj-bug433351.zip
Birt 4,178 birt-20140211-1400.zip
Eclipse Platform UI 6,495 eclipse.platform.ui-johna-402445.zip
JDT 6,274 not included
SWT 4,151 eclipse.platform.swt-xulrunner-31.zip
Tomcat 1,056 tomcat-7.0.51.zip

Each project's bug reports come in three equivalent formats:

  • <Project>.txt: tab-separated, UTF-8, with a header row.
  • <Project>.xlsx: the same table as an Excel workbook.
  • <Project>.xml: a phpMyAdmin XML export of the same table.

Columns: id, bug_id, summary, description, report_time, report_timestamp, status, commit, commit_timestamp, files, result (the .txt header leaves the last column, result, unnamed). files lists the source files changed by the fixing commit, as paths relative to the project root (space-separated in the .txt version; some paths contain spaces themselves, such as Eclipse SWT/gtk/...), and commit is the abbreviated hash of that commit. result pairs a number with each fixed file (1:java/org/apache/...); its meaning is not documented here.

Note that each source snapshot is a single version of the project. The paper evaluates on the before-fix version of the code for every bug report, so results obtained on a single snapshot are not directly comparable with the paper.

The repository localize-relevant-source-file-txt contains a text-retrieval (rVSM) bug localizer that reads the .txt bug reports and unzipped source snapshots from this folder.

Data sources and credits

Data Source
SDP/dataApache(PROMISE)/, Source Code of Promise/ PROMISE Software Engineering Repository (Apache/open-source project releases). Original source releases belong to their projects.
SDP/dataNASA/ NASA Metrics Data Program (MDP) defect datasets, as distributed through the PROMISE repository.
SDP/dataEclipse/ Eclipse bug dataset: T. Zimmermann, R. Premraj, A. Zeller, "Predicting Defects for Eclipse", PROMISE 2007 (file names and layout match; please verify against the original).
Bug Localization Data/ X. Ye, R. Bunescu, C. Liu, "Learning to Rank Relevant Files for Bug Reports using Domain Knowledge", FSE 2014, doi:10.1145/2635868.2635874. Dataset published by the authors at doi:10.6084/m9.figshare.951967.
Bug Localization Paper/Learn2Rank-Bug-Localization.pdf The FSE 2014 paper above, by Xin Ye, Razvan Bunescu and Chang Liu (Ohio University). Included for reference only; copyright belongs to its authors / ACM.

License and terms

This repository contains no original code by the repository owner, so no software licence is attached to it. All datasets, source archives and the paper remain under the terms set by their original authors and projects. If you use any of them, cite the original publications listed above and check the original sources for their terms of use.

Context

Collected in March 2022 as a shared data collection for a group working on software defect prediction and bug localization (the original README was written in Vietnamese for teammates). At the time, 41 of the 48 known PROMISE (Apache) datasets and all 13 NASA datasets had been collected; the Eclipse data had not been fully catalogued.

About

Mirror of public datasets for software defect prediction (PROMISE, NASA MDP, Eclipse) and bug localization (Ye et al. FSE 2014), with sources credited.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors