Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -34,4 +34,119 @@ configs:
|
|
| 34 |
path: data/validation-*
|
| 35 |
- split: test
|
| 36 |
path: data/test-*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
path: data/validation-*
|
| 35 |
- split: test
|
| 36 |
path: data/test-*
|
| 37 |
+
tags:
|
| 38 |
+
- code
|
| 39 |
+
- commit-messages
|
| 40 |
+
- conventional-commits
|
| 41 |
+
- git
|
| 42 |
+
task_categories:
|
| 43 |
+
- text-generation
|
| 44 |
+
license: other
|
| 45 |
+
language:
|
| 46 |
+
- en
|
| 47 |
+
- code
|
| 48 |
---
|
| 49 |
+
|
| 50 |
+
# Committed — Conventional Commits dataset
|
| 51 |
+
|
| 52 |
+
Filtered (diff -> Conventional Commits message) pairs derived from
|
| 53 |
+
[CommitChronicle](https://huggingface.co/datasets/JetBrains-Research/commit-chronicle),
|
| 54 |
+
for fine-tuning small models to write commit messages from a diff. Built by the
|
| 55 |
+
[Committed](https://github.com/marzoukbaig14/Committed) project.
|
| 56 |
+
|
| 57 |
+
## Schema
|
| 58 |
+
|
| 59 |
+
| Field | Type | Notes |
|
| 60 |
+
|---|---|---|
|
| 61 |
+
| `diff` | string | The code diff for a single-file change. |
|
| 62 |
+
| `message` | string | Normalized Conventional Commits subject line (the training target). |
|
| 63 |
+
| `reasoning_trace` | string \| null | Reserved for v2 (reasoning distillation); always `null` here. |
|
| 64 |
+
| `repo` | string | Source repository (provenance). |
|
| 65 |
+
| `license` | string | Source repository's license (provenance). |
|
| 66 |
+
| `language` | string | Programming language, identified by file extension. |
|
| 67 |
+
|
| 68 |
+
## Composition
|
| 69 |
+
|
| 70 |
+
| Split | Rows |
|
| 71 |
+
|---|---|
|
| 72 |
+
| train | 52,173 |
|
| 73 |
+
| validation | 2,898 |
|
| 74 |
+
| test | 2,898 |
|
| 75 |
+
|
| 76 |
+
**Languages** (identified by file extension):
|
| 77 |
+
|
| 78 |
+
| Language | Rows | % |
|
| 79 |
+
|---|---|---|
|
| 80 |
+
| TypeScript | 6,000 | 10.4% |
|
| 81 |
+
| JavaScript | 6,000 | 10.4% |
|
| 82 |
+
| Python | 6,000 | 10.4% |
|
| 83 |
+
| Go | 6,000 | 10.4% |
|
| 84 |
+
| Java | 6,000 | 10.4% |
|
| 85 |
+
| Rust | 6,000 | 10.4% |
|
| 86 |
+
| Shell | 4,215 | 7.3% |
|
| 87 |
+
| C++ | 3,753 | 6.5% |
|
| 88 |
+
| PHP | 2,708 | 4.7% |
|
| 89 |
+
| C | 2,407 | 4.2% |
|
| 90 |
+
| C# | 2,146 | 3.7% |
|
| 91 |
+
| Swift | 2,129 | 3.7% |
|
| 92 |
+
| Kotlin | 1,812 | 3.1% |
|
| 93 |
+
| Dart | 1,370 | 2.4% |
|
| 94 |
+
| Ruby | 750 | 1.3% |
|
| 95 |
+
| Elixir | 679 | 1.2% |
|
| 96 |
+
|
| 97 |
+
**Commit types:**
|
| 98 |
+
|
| 99 |
+
| Type | Rows | % |
|
| 100 |
+
|---|---|---|
|
| 101 |
+
| fix | 28,366 | 48.9% |
|
| 102 |
+
| feat | 7,706 | 13.3% |
|
| 103 |
+
| chore | 5,959 | 10.3% |
|
| 104 |
+
| test | 5,214 | 9.0% |
|
| 105 |
+
| refactor | 5,055 | 8.7% |
|
| 106 |
+
| docs | 2,482 | 4.3% |
|
| 107 |
+
| ci | 1,336 | 2.3% |
|
| 108 |
+
| style | 868 | 1.5% |
|
| 109 |
+
| build | 562 | 1.0% |
|
| 110 |
+
| perf | 421 | 0.7% |
|
| 111 |
+
|
| 112 |
+
## How it was built
|
| 113 |
+
|
| 114 |
+
Starting from CommitChronicle, a commit is kept only if:
|
| 115 |
+
|
| 116 |
+
- the subject line matches a relaxed Conventional Commits pattern
|
| 117 |
+
(`feat|fix|refactor|docs|test|chore|perf|style|build|ci`, optional scope,
|
| 118 |
+
optional breaking `!`), then normalized (lowercase type, `doc` -> `docs`, strip
|
| 119 |
+
`!`, subject line only, trim, strip one trailing period);
|
| 120 |
+
- the subject is 5-200 characters;
|
| 121 |
+
- it touches exactly one file, and that file is a recognized **code** file by
|
| 122 |
+
extension (the per-repo language attribute is ignored because it mislabels
|
| 123 |
+
polyglot repos);
|
| 124 |
+
- it is not a merge, revert, or bot commit (e.g. Dependabot, detected by message
|
| 125 |
+
pattern);
|
| 126 |
+
- the diff is at most 2048 tokens (Qwen3-1.7B tokenizer); over-cap diffs are
|
| 127 |
+
dropped, not truncated.
|
| 128 |
+
|
| 129 |
+
The pool is then balanced (each language capped to 6,000 rows, languages with
|
| 130 |
+
fewer than 500 rows dropped) and split 90/5/5 train/validation/test, **stratified
|
| 131 |
+
by commit type** so each split preserves the type distribution.
|
| 132 |
+
|
| 133 |
+
## Provenance & license
|
| 134 |
+
|
| 135 |
+
Each row keeps its source `repo` and `license`. CommitChronicle aggregates
|
| 136 |
+
permissively-licensed repositories (MIT, Apache-2.0, BSD-3-Clause); this
|
| 137 |
+
derivative is redistributed under those source terms. Please cite CommitChronicle
|
| 138 |
+
and its paper:
|
| 139 |
+
|
| 140 |
+
> Eliseeva et al., *From Commit Message Generation to History-Aware Commit Message Generation*, arXiv:2308.07655.
|
| 141 |
+
|
| 142 |
+
## Known limitations
|
| 143 |
+
|
| 144 |
+
- The source scan covered ~85-90% of CommitChronicle's train split, not a full
|
| 145 |
+
pass, so the language mix is near-complete rather than exhaustive.
|
| 146 |
+
- Commit types are imbalanced (`fix` is the plurality); a trivial
|
| 147 |
+
always-predict-`fix` baseline scores around its share, so read prefix-accuracy
|
| 148 |
+
against that floor.
|
| 149 |
+
- Description casing is not normalized (acronyms are preserved) — an accepted v1
|
| 150 |
+
limitation.
|
| 151 |
+
- No automated scrubbing of secrets/PII; the sensitive-data caveat from
|
| 152 |
+
CommitChronicle is carried forward.
|