|
--- |
|
license: apache-2.0 |
|
tags: |
|
- git |
|
- code |
|
size_categories: |
|
- n<1K |
|
--- |
|
# Dataset Summary |
|
GitGoodBench Lite is a subset of 900 samples for evaluating the performance of AI agents in resolving git tasks (see Supported Scenarios). |
|
The samples in the dataset are evenly split across the programming languages Python, Java and Kotlin and the sample types merge conflict resolution and file-commit gram. |
|
This dataset thus contains 150 samples per sample type and programming language. |
|
|
|
All data in this dataset are collected from 479 unique, open-source GitHub repositories with permissive licenses |
|
that have >= 1000 stars, >= 5 branches, >= 10 contributors and are not a fork or archived. We collected the initial list of repositories using [SEART.](https://seart-ghs.si.usi.ch/) |
|
|
|
Evaluation is to be performed by exact-match (EM) of diffs for the merge conflict setting and by LLM-as-a-Judge for the file-commit chain setting. [For further details see our paper.]() |
|
|
|
# Supported Tasks |
|
GitGoodBench Lite contains two types of samples: 'merge' and 'file_commit_chain'. |
|
It is important to note that the sample type 'file_commit_chain' can be used for two scenario types: Performing an interactive rebase to clean up the local tree or iteratively |
|
generating commits based on the staged, uncommitted changes. |
|
|
|
## Merge |
|
Merge scenarios are contain one or more merge conflicts that occurred during a merge. All merge conflicts are guaranteed to be in a Python, Java or Kotlin file. There are only |
|
merges with exactly two parents in our dataset (no octopus merges). |
|
|
|
A merge scenario looks as follows: |
|
``` |
|
{ |
|
'merge_commit_hash': '1ce7091bffb09ad7e5123ea995c1f572a83bd375', |
|
'parents': ['5ef9152860a8b0af02e9d5d3635601df963748c9', '8a353cf3392e0c20dc987bc18f4ab93edccf09b3'], |
|
'number_of_files_with_merge_conflict': 1, |
|
'total_number_of_merge_conflicts': 3, |
|
'files_in_merge_conflict': ['src/test/java/net/openhft/chronicle/queue/LastAppendedTest.java'] |
|
} |
|
``` |
|
|
|
Where `merge_commit_hash` contains the ground truth merge commit and the `parents` are the commits during the merge of which the conflict(s) in `files_in_merge_conflict` occurred. |
|
|
|
## File-Commit Chain |
|
File-commit chain scenarios consist of two commits, the oldest and newest commit. In all commits between the `oldest_commit` and `newest_commit` (inclusive) `file` was modified. |
|
In total the chain consists of `times_seen_consecutively` commits. The intended use-cases of these scenarios are to evaluate the agent's capacity to create meaningful, cohesive commits or |
|
improve the local tree via rebasing. Thus samples of this `sample_type` cover two scenario types. |
|
|
|
File-commit chains are at least 3 commits long,the file the sample concerns itself with is guaranteed to be of `programming_language` |
|
(this is not the case for other potential files in the commits of the sample) and no commit is a merge commit. |
|
|
|
A `file_commit_chain` scenario looks as follows: |
|
``` |
|
{ |
|
'file': 'App/Event.py', |
|
'branch': 'origin/20230105', |
|
'times_seen_consecutively': 4, |
|
'purity': 0.78, |
|
'newest_commit': '7547d1877f0af28a67fe0e1ccaefcb0020a89751', |
|
'oldest_commit': 'a0a11bd4de009daae463c77fccdb2de16cfed6c4' |
|
} |
|
``` |
|
`purity` indicates the relative amount of changes in the chain that occurred solely in `file` and is a heuristic for the difficulty of the scenario. We expect noisier scenarios to be more difficult. |
|
|
|
# Dataset Structure |
|
The following table provides per-field details. Columns marked “Yes” under **Is Metadata?** are those that provide contextual or descriptive information but are not essential to the primary scenario logic. |
|
|
|
| **Field** | **Type** | **Description** | **Is Metadata?** | |
|
|--------------------------|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------| |
|
| **id** | string | A unique identifier for the dataset entry: <name>-<sample_type>-<running_index> | No | |
|
| **name** | string | The repository name, in “owner/repository” format. | No | |
|
| **default_branch** | string | The primary or default branch for the repository. | No | |
|
| **license** | string | Repository license. | Yes | |
|
| **stargazers** | integer | The number of stars on GitHub. | Yes | |
|
| **created_at** | string | The repository creation date. | Yes | |
|
| **topics** | string | A semicolon-delimited list of topics or tags associated with the repository. | Yes | |
|
| **programming_language** | string | The programming language of the sample. Possible values: "java," "python," or "kotlin." | No | |
|
| **scenario** | string | A JSON string describing specific scenario data (e.g., merge-conflict details, parent commits). | No | |
|
| **sample_type** | string | The type of sample. Possible values: "merge" or "file_commit_chain." | No | |
|
| **project_size** | string | Estimated size based on lines of code. Possible values: "tiny," "small," "medium," "large," or "huge." | Yes | |
|
| **difficulty** | string | The complexity level of the scenario. Possible values: "easy," "medium," or "hard." | Yes | |
|
|
|
**Note**: |
|
- Fields marked as **Is Metadata? = Yes** provide contextual information (e.g., project stats, licensing) rather than forming the core logic of a scenario. |
|
- Fields marked **No** represent the primary data for the scenario. Use them to inform or categorize the scenario type and project details. |
|
|
|
# Dataset statistics |
|
We provide some statistics on the diversity of our dataset with respect to repositories and merge conflict resolution samples. |
|
|
|
## Dataset Skew |
|
|
|
We note that our dataset is skewed towards the top four repositories especially, however skew flattens quickly. |
|
|
|
### Distribution Statistics |
|
- Total number of repositories (count): 479 |
|
- Average (mean) samples per repository: 1.87 |
|
- Standard deviation (std): 2.8 |
|
- Minimum (min): 1 |
|
- 25th percentile (25%): 1 |
|
- Median (50%): 1 |
|
- 75th percentile (75%): 2 |
|
- Maximum (max): 46 |
|
|
|
### Top-10 Repositories by Sample Count |
|
|
|
| Repository | Percentage of Total Samples | |
|
|------------------------------------------|----------------------------:| |
|
| oss-review-toolkit/ort | 5.11% | |
|
| stripe/stripe-android | 3.22% | |
|
| element-hq/element-android | 2.44% | |
|
| jetbrains/compose-multiplatform | 1.22% | |
|
| kotlin/dokka | 1.00% | |
|
| jetbrains/ideavim | 0.89% | |
|
| wikimedia/apps-android-wikipedia | 0.78% | |
|
| android/nowinandroid | 0.78% | |
|
| coil-kt/coil | 0.78% | |
|
| jetbrains/exposed | 0.78% | |
|
|
|
|
|
## Difficulty Distribution for "merge" Scenarios |
|
|
|
| Difficulty | Percentage | |
|
|------------|-----------:| |
|
| easy | 41.33 | |
|
| medium | 24.44 | |
|
| hard | 34.22 | |
|
|
|
|
|
**Languages** We note that the text data in this dataset consists mostly of: commit messages, comments and is primarily in English. We do however not filter for any human languages explcitly. |