Datasets:
Add a dataset card
Browse files
README.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
language:
|
| 4 |
+
- code
|
| 5 |
+
- en
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
- summarization
|
| 9 |
+
tags:
|
| 10 |
+
- code
|
| 11 |
+
- commit_message_generation
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: default
|
| 14 |
+
data_files:
|
| 15 |
+
- split: test
|
| 16 |
+
path: data.jsonl
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Commit Message Quality dataset
|
| 20 |
+
|
| 21 |
+
This is the dataset for commit message quality classification, used during processing of [Commit Message Generation dataset](https://huggingface.co/datasets/JetBrains-Research/lca-commit-message-generation) from
|
| 22 |
+
🏟️ [Long Code Arena benchmark](https://huggingface.co/spaces/JetBrains-Research/long-code-arena).
|
| 23 |
+
|
| 24 |
+
This is a cleaned and relabeled version of the [dataset](https://zenodo.org/records/7042943#.YxG_ROzMLdo) from 📜 ["Commit Message Matters: Investigating Impact and Evolution of Commit Message Quality", ICSE'23](https://ieeexplore.ieee.org/abstract/document/10172825). We drop "Neither Why nor What" examples, clean all the external references (URLs, issues/PR references) from messages and manually label each sample with the goal of training a binary commit message quality classifier for data filtering in mind.
|
| 25 |
+
|
| 26 |
+
## How-to
|
| 27 |
+
|
| 28 |
+
Load the data via [`load_dataset`](https://huggingface.co/docs/datasets/v2.14.3/en/package_reference/loading_methods#datasets.load_dataset):
|
| 29 |
+
|
| 30 |
+
```
|
| 31 |
+
from datasets import load_dataset
|
| 32 |
+
|
| 33 |
+
dataset = load_dataset("saridormi/commit-message-quality", split="test")
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
Note that all the data we have is considered to be in the test split.
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
## Dataset Structure
|
| 40 |
+
|
| 41 |
+
Each example has the following fields:
|
| 42 |
+
|
| 43 |
+
| **Field** | **Description** |
|
| 44 |
+
|:---------------------|:---------------------------------------------------------------------------|
|
| 45 |
+
| `url` | Link to commit on GitHub. |
|
| 46 |
+
| `original_message` | Commit message as it was in the original dataset. |
|
| 47 |
+
| `message` | Commit message cleaned from external references. |
|
| 48 |
+
| `original_label` | Commit message label as it was in the original dataset (`Why and What`/`No Why`/`No What`). |
|
| 49 |
+
| `is_good` | Whether the commit message serves as a good example of *high quality* (boolean). |
|
| 50 |
+
| `is_bad` | Whether the commit message serves as a good example of *low quality* (boolean). |
|
| 51 |
+
| `binary_label` | Commit message label: `1` for *high quality* messages, `0` for *low quality* messages, `null` for messages not for classifier training. |
|
| 52 |
+
|
| 53 |
+
Data point example:
|
| 54 |
+
|
| 55 |
+
```
|
| 56 |
+
{"url":"https://github.com/spring-projects/spring-boot/commit/7080500db9ecf1cf78ad23503280c713bb6e8649",
|
| 57 |
+
"original_message":"Upgrade to Commons Lang3 3.6 \n \n Closes gh-9661",
|
| 58 |
+
"message":"Upgrade to Commons Lang3 3.6",
|
| 59 |
+
"original_label":"Why and What",
|
| 60 |
+
"is_good": False,
|
| 61 |
+
"is_bad": True,
|
| 62 |
+
"binary_label":0.0,
|
| 63 |
+
}
|
| 64 |
+
```
|