Datasets:
Tasks:
Tabular Classification
Sub-tasks:
multi-class-classification
Languages:
English
Size:
1M<n<10M
Tags:
source-code
software-engineering
defect-prediction
transfer-learning
static-analysis
c-language
License:
update
Browse files
README.md
CHANGED
|
@@ -1,8 +1,38 @@
|
|
| 1 |
-
#
|
| 2 |
-
Public dataset hosted on Hugging Face.
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🧩 Cross-Project Defect Prediction (CPDP) Dataset — C & Java Projects
|
|
|
|
| 2 |
|
| 3 |
+
This repository hosts a **custom dataset** for **Cross-Project Defect Prediction (CPDP)** research, curated from a diverse collection of real-world open-source projects written in **C (441 projects)** and **Java (98 projects)**.
|
| 4 |
+
The dataset aims to support research on **software defect prediction, transfer learning**, and **imbalanced data handling** across heterogeneous programming environments.
|
| 5 |
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## 📘 Overview
|
| 9 |
+
|
| 10 |
+
| Language | #Projects | Description |
|
| 11 |
+
|-----------|------------|-------------|
|
| 12 |
+
| **C** | 441 | Includes diverse open-source repositories from various domains (system utilities, networking, compilers, embedded tools, etc.) |
|
| 13 |
+
| **Java** | 98 | Covers projects from academic, industrial, and utility domains collected from GitHub and other public repositories |
|
| 14 |
+
|
| 15 |
+
Each project folder typically includes:
|
| 16 |
+
- Source code files (`.c`, `.h`, `.java`)
|
| 17 |
+
- Bug/defect labels (where available)
|
| 18 |
+
- Metadata (e.g., LOC, complexity, commits)
|
| 19 |
+
- Preprocessed CSV feature files for ML models
|
| 20 |
+
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
## 🎯 Purpose
|
| 24 |
+
|
| 25 |
+
The dataset is designed for:
|
| 26 |
+
- **Cross-Project Defect Prediction (CPDP)**
|
| 27 |
+
- **Transfer Learning** and **Domain Adaptation** studies
|
| 28 |
+
- **Feature engineering** on static code metrics
|
| 29 |
+
- **Benchmarking** new software defect prediction models
|
| 30 |
+
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
## 🧠 Suggested Research Directions
|
| 34 |
+
|
| 35 |
+
- Comparison of **within-project vs cross-project** prediction accuracy
|
| 36 |
+
- Study of **language heterogeneity** in CPDP (C ↔ Java transfer)
|
| 37 |
+
- Use of **oversampling** or **class balancing** methods (e.g., SMOTE, OTOMO)
|
| 38 |
+
- Integration with **Bayesian Networks**, **Deep Learning**, or **Tensor-based** models
|