Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,67 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- software-engineering
|
| 7 |
+
- conventional-commits
|
| 8 |
+
- nlp
|
| 9 |
+
pretty_name: CCSBENCH
|
| 10 |
+
size_categories:
|
| 11 |
+
- 10K<n<100K
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
# CCSBENCH: A Fine-Grained Benchmark for Conventional Commits
|
| 15 |
+
|
| 16 |
+
## 1. Dataset Summary
|
| 17 |
+
CCSBENCH is a large-scale benchmark dataset specifically constructed for fine-grained **Conventional Commits (CCS)** classification research. Based on the CCS specification, it provides high-quality commit data with verified types and scopes across multiple programming languages.
|
| 18 |
+
|
| 19 |
+
The dataset contains **93,807** CCS-compliant commits extracted from 119 high-quality repositories. It spans a wide temporal range (April 2017 to February 2023) and includes **142 distinct commit types** and **6,633 unique scopes**.
|
| 20 |
+
|
| 21 |
+
## 2. Dataset Structure
|
| 22 |
+
|
| 23 |
+
### Data Splits
|
| 24 |
+
We employ a strict **temporal split** to simulate real-world scenarios, ensuring that repositories are tracked continuously over time.
|
| 25 |
+
|
| 26 |
+
| File | Count | Usage |
|
| 27 |
+
| :--- | :--- | :--- |
|
| 28 |
+
| `train.json` | 74,581 | Model training |
|
| 29 |
+
| `valid.json` | 9,939 | Hyperparameter tuning |
|
| 30 |
+
| `test.json` | 9,287 | Final performance evaluation |
|
| 31 |
+
|
| 32 |
+
### Language Distribution (by Repository)
|
| 33 |
+
The benchmark covers 9 key programming languages:
|
| 34 |
+
|
| 35 |
+
| Language | Repositories | Language | Repositories |
|
| 36 |
+
| :--- | :--- | :--- | :--- |
|
| 37 |
+
| **TypeScript** | 61 | **Rust** | 2 |
|
| 38 |
+
| **JavaScript** | 34 | **Java** | 2 |
|
| 39 |
+
| **Go** | 11 | **C++** | 1 |
|
| 40 |
+
| **Python** | 4 | **Kotlin** | 1 |
|
| 41 |
+
| **C#** | 3 | | |
|
| 42 |
+
|
| 43 |
+
## 3. Data Schema
|
| 44 |
+
Each record in the dataset is a JSON object representing a single commit. Below is a description of the key fields:
|
| 45 |
+
|
| 46 |
+
| Field | Type | Description |
|
| 47 |
+
| :--- | :--- | :--- |
|
| 48 |
+
| `hash` | string | Unique identifier for the commit. |
|
| 49 |
+
| `message` | string | The full original commit message. |
|
| 50 |
+
| `commit_type` | string | The extracted CCS type (e.g., `feat`, `fix`, `chore`). |
|
| 51 |
+
| `commit_scope` | string | The extracted CCS scope (can be `null` if not provided). |
|
| 52 |
+
| `is_CCS` | integer | Binary indicator (1) for CCS compliance. |
|
| 53 |
+
| `language` | string | Programming language of the repository. |
|
| 54 |
+
| `repo` | string | Full name of the source repository (Owner/Repo). |
|
| 55 |
+
| `mods` | array | List of modified files, including `diff`, `new_path`, and `old_path`. |
|
| 56 |
+
| `date` | string | Timestamp of the commit. |
|
| 57 |
+
| `license` | string | Original license of the source repository. |
|
| 58 |
+
|
| 59 |
+
## 4. Construction Principles
|
| 60 |
+
The construction of CCSBENCH prioritizes **Scale, Quality, and Repository Continuity**:
|
| 61 |
+
1. **Keyword Detection**: Identifying repositories explicitly adopting CCS ("conventionalcommits.org").
|
| 62 |
+
2. **Format Validation**: Using a robust parser to validate `<type>[optional scope]: <description>`.
|
| 63 |
+
3. **Temporal Alignment**: Discarding all commits preceding the repository’s formal adoption of CCS to ensure data purity.
|
| 64 |
+
|
| 65 |
+
## 5. Licensing
|
| 66 |
+
- **Dataset License**: **Apache-2.0** (compatible with the licenses of the original repositories in CommitChronicle).
|
| 67 |
+
- **Code License**: **MIT** (for processing scripts).
|