File size: 5,375 Bytes
bbba6db
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
---
license: other
license_name: various-permissive-open-source-licenses
task_categories:
- text-generation
language:
- en
tags:
- commit-message
- conventional-commits
- git
- software-engineering
- code
size_category:
- 100K<n<1M
pretty_name: Commit Messages from High-Quality Repositories
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train.jsonl
  - split: validation
    path: data/val.jsonl
  - split: test
    path: data/test.jsonl
- config_name: training_view
  data_files:
  - split: train
    path: training_view/train.jsonl
  - split: validation
    path: training_view/val.jsonl
  - split: test
    path: training_view/test.jsonl
---

# Commit Messages from High-Quality Repositories

292,269 cleaned git commit messages scraped from the full histories of 15 well-regarded open-source
projects, balanced across two styles: **normal** (196,372) and
**conventional commits** (95,897).

## Dataset Summary

- Each record contains the commit `subject`, `body`, plus metadata: `repo`, `sha`, `date`,
  `author`, and labels: `style` (normal/conventional), `type` (fix, feat, docs, ...),
  `scope`, `breaking`.
- Heavy cleaning: GitHub squash suffixes `(#123)` stripped, bot/automated commits removed,
  canned boilerplate removed, exact duplicates removed, git trailers (Signed-off-by etc.)
  stripped from bodies, junk subjects ("wip", "update", ...) removed.
- **Temporal split**: train is the oldest ~98% of commits, validation the next ~1%, test the
  newest ~1%. No train/eval temporal leakage: every eval commit is newer than every train commit.

## Supported Tasks

- `text-generation`: commit message generation, style modeling, conventional-commit
  classification, software-engineering NLP.

## Usage

```python
from datasets import load_dataset

ds = load_dataset("USERNAME/REPO", "default")          # full metadata records
view = load_dataset("USERNAME/REPO", "training_view")  # prompt/completion pairs (body -> subject)
```

`training_view` maps a change description (the commit body) to the commit subject line and is
formatted for fine-tuning tools such as Unsloth, with explicit `prompt` and `completion` columns.

## Source Repositories

| Repository | URL | Commits in dataset |
|---|---|---|
| postgres | https://github.com/postgres/postgres | 57,971 |
| openssl | https://github.com/openssl/openssl | 53,169 |
| angular | https://github.com/angular/angular | 39,465 |
| curl | https://github.com/curl/curl | 37,130 |
| ant-design | https://github.com/ant-design/ant-design | 22,853 |
| neovim | https://github.com/neovim/neovim | 22,096 |
| babel | https://github.com/babel/babel | 13,719 |
| vite | https://github.com/vitejs/vite | 8,209 |
| eslint | https://github.com/eslint/eslint | 7,837 |
| tmux | https://github.com/tmux/tmux | 7,618 |
| vue-core | https://github.com/vuejs/core | 7,540 |
| vitest | https://github.com/vitest-dev/vitest | 5,120 |
| nestjs | https://github.com/nestjs/nest | 4,147 |
| chart-js | https://github.com/chartjs/Chart.js | 3,718 |
| axios | https://github.com/axios/axios | 1,677 |

## Upstream Licenses

Commit messages are inherited from their source projects. Repositories under copyleft or
source-available licenses (git: GPL-2.0; redis: BSD-3 / RSALv2 / SSPLv1) were **excluded**
as a precaution: software licenses technically cover the licensed program rather than VCS
metadata, but commit messages are therefore not openly licensed either, and longer commit
bodies can constitute original expression of their authors. Only permissively-licensed
projects are included:

| Repository | License |
|---|---|
| angular/angular | MIT |
| vuejs/core | MIT |
| vitejs/vite | MIT |
| babel/babel | MIT |
| eslint/eslint | MIT |
| ant-design/ant-design | MIT |
| axios/axios | MIT |
| nestjs/nest | MIT |
| chartjs/Chart.js | MIT |
| vitest-dev/vitest | MIT |
| curl/curl | curl (MIT-style) |
| neovim/neovim | Apache-2.0 / VIM |
| tmux/tmux | ISC |
| openssl/openssl | Apache-2.0 |
| postgres/postgres | PostgreSQL License |

Users should still respect upstream license terms when redistributing or using this dataset commercially.

## Cleaning Statistics

| Filter | Records dropped |
|---|---|
| duplicate | 77,038 |
| bad_subject | 16,190 |
| bot_or_automated | 26,432 |
| license_excluded | 83,369 |
| canned_message | 9,943 |

## Splits

| Split | Records | Date range |
|---|---|---|
| train | 286,425 | 1996-07-09 → 2026-07-14 |
| validation | 2,922 | 2026-07-14 → 2026-08-20 |
| test | 2,922 | 2026-08-20 → 2026-09-23 |

## Privacy

- No author names or email addresses are included. Records are identified only by content
  `sha` + repository, which preserves verifiable provenance without identifying individuals.
- Note: commit bodies may reference contributor names in prose (e.g. credit lines), as these
  are part of the historical commit text itself.

## Limitations

- English-dominant; commit messages from a single ecosystem of C/C++ and JavaScript/TypeScript projects.
- No diffs attached: the dataset describes *what was written*, not the code change itself.
- Bodies are truncated at 2,000 characters.
- Human authors made the source commits; quality varies by repository and era.

## Reproduction

Built with a two-stage pipeline (blobless `git clone --filter=blob:none`, then
`git log` export and rule-based cleaning). See `stats.json` for exact counts.