Dataset Viewer
Auto-converted to Parquet Duplicate
commit
stringlengths
40
40
subject
stringlengths
6
199
message
stringlengths
11
1.33k
repos
stringlengths
15
11.5k
file_path
stringlengths
6
59
license
stringclasses
9 values
unix_time
int64
1.33B
1.61B
new_contents
stringlengths
151
211k
old_contents
stringlengths
151
208k
4c21ff9e6cdac75d57662400642235c028948dac
Speed up finding the best cost in avx2 cdef
Speed up finding the best cost in avx2 cdef
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
608350cb0c7d2e7329a1e0d25d7513bdb856e61d
x86: remove redundant code in cdef filter AVX2
x86: remove redundant code in cdef filter AVX2
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
dd1865d243f30504d3ba9da6e2df1c14802bb0f2
x86: add a seperate fully edged case to cdef_filter_avx2
x86: add a seperate fully edged case to cdef_filter_avx2 --------------------- fully edged blocks perf ------------------------------------------ before: cdef_filter_4x4_8bpc_avx2: 91.0 after: cdef_filter_4x4_8bpc_avx2: 75.7 --------------------- before: cdef_filter_4x8_8bpc_avx2: 154.6 after: cdef_filter_4x8_8bpc_a...
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
; Copyright © 2018, VideoLAN and dav1d authors ; Copyright © 2018, Two Orioles, LLC ; All rights reserved. ; ; Redistribution and use in source and binary forms, with or without ; modification, are permitted provided that the following conditions are met: ; ; 1. Redistributions of source code must retain the above copy...
3f74513d01c8d05c8fd6dddc0723652717af08d1
Add 8x8 cdef_filter AVX2 implementation
"Add 8x8 cdef_filter AVX2 implementation\n\ncdef_filter_8x8_8bpc_c: 7913.0\ncdef_filter_8x8_8bpc_avx(...TRUNCATED)
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
f9e330508ad3ae4acff847a03de10f2ca90f8927
x86: cdef_filter: fix macro case (lower to upper)
x86: cdef_filter: fix macro case (lower to upper)
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
bf2dfd36346038f77fb5731041a07d0bbbb74cd8
x86: optimize cdef_filter_{4x{4,8},8x8}_avx2
"x86: optimize cdef_filter_{4x{4,8},8x8}_avx2\n\nAdd 2 seperate code paths for pri/sec strengths equ(...TRUNCATED)
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
d9b83f231d8710143c6a03495ae365694caeeb5b
x86: Add cdef_filter_{4,8}x8 AVX-512 (Ice Lake) asm
"x86: Add cdef_filter_{4,8}x8 AVX-512 (Ice Lake) asm\n\ncdef_filter_4x8_8bpc_avx2: 54.0\ncdef_filter(...TRUNCATED)
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
e2cc4046b3bf07eae3ea1ba02c9314892b314e6b
x86: optimize 4 by X cdef filters for HAVE_RIGHT=0
x86: optimize 4 by X cdef filters for HAVE_RIGHT=0
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
34d295536b263adbe75c9fefb9d62835acadf8e4
x86: Avoid cmov instructions that depends on multiple flags
"x86: Avoid cmov instructions that depends on multiple flags\n\nOn many AMD CPU:s cmov instructions (...TRUNCATED)
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
d6ab5ec8b777704fed82580ca4e43efc55ced236
x86: Use 'test' instead of 'or' to compare with zero
x86: Use 'test' instead of 'or' to compare with zero Allows for macro-op fusion.
xiph/rav1e,xiph/rav1e,xiph/rav1e
src/x86/cdef_avx2.asm
bsd-2-clause
1,614,512,712
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
"; Copyright © 2018, VideoLAN and dav1d authors\n; Copyright © 2018, Two Orioles, LLC\n; All right(...TRUNCATED)
End of preview. Expand in Data Studio

Themis-Git-Commits-Merged

arXiv Models Datasets & Benchmarks GitHub Docker

Overview

Themis-Git-Commits-Merged is a large-scale dataset of ~3.98M single-file code commits from permissively licensed GitHub repositories that have been cross-referenced with GHTorrent pull request data to retain only commits that are part of successfully merged, non-reverted pull requests. This provides implicit human validation of each code change — a merge decision by project maintainers confirms the intent and quality of the commit.

This dataset is derived from Themis-Git-Commits (the raw, unfiltered commit pool) by joining against GHTorrent pull request records through end of 2021 (the temporal extent of the GHTorrent PR data used). It serves as the direct input to the aspect classification and preference construction stages of the Themis pipeline, which produces the commit-based preference pairs in Themis-CodePreference and Themis-CodeRewardBench.

The SQL query used for initial commit mining restricts to repositories under permissive open-source licenses only (MIT, Apache-2.0, BSD-2/3-Clause, ISC, CC0-1.0, EPL-1.0, MPL-2.0, Unlicense, AGPL-3.0, LGPL-2.1, Artistic-2.0). The BigQuery snapshot used contains commits up to early 2022 — predating the widespread availability of LLM code generation tools — ensuring that all code changes in the dataset represent genuine human-authored preferences.

Relationship to Themis-Git-Commits

Themis-Git-Commits Themis-Git-Commits-Merged (this dataset)
Scope All mined single-file commits Only commits in merged, non-reverted PRs
Extension filtering No Yes (file extension matches target language)
PR validation No Yes (via GHTorrent, through end of 2021)
Human validation Implicit (authored by humans) Explicit (merge decision by maintainers)
Downstream use Raw pool for further filtering Direct input to aspect classification

Collection Pipeline

The commit mining pipeline is described in detail in the Themis paper and the Dataset folder in the GitHub repository. The BigQuery SQL query and scraping infrastructure are modified from the OctoPack pipeline (CommitPack); the subsequent filtering, classification, and preference construction stages are original to Themis.

  1. BigQuery Mining — A GoogleSQL query (modified from OctoPack) extracts single-file commits from permissively licensed repositories in bigquery-public-data.github_repos, filtering for target programming languages and non-trivial commit messages.

  2. Repository Reputation Filtering — Commits are subset to those originating from curated high-reputation repositories (15+ GitHub stars, 5+ contributors, 10+ issues).

  3. Extension Filtering — Commits are further filtered so the changed file's extension matches a target programming language.

  4. Content Retrieval — The pre-commit (old_contents) and post-commit (new_contents) file contents are fetched from GitHub via shallow git fetches using retrieve_commit_contents.py.

  5. MinHash Deduplication — Near-duplicate content is removed using MinHash LSH deduplication (shingle size 5, 256 permutations, Jaccard threshold 0.7).

  6. Pull Request Cross-Referencing (this step produces this dataset) — Commits are joined with GHTorrent pull request data (through end of 2021) to retain only non-reverted commits that are part of successfully merged pull requests from reputable repositories, ensuring implicit human validation of each code change.

Downstream Processing (Not in This Dataset)

The steps below are applied downstream to produce the final preference pairs in Themis-CodePreference and Themis-CodeRewardBench, and are not reflected in this dataset:

  • Language Subsetting — The 24 languages in this dataset are narrowed to the 8 target languages (C, C#, C++, Go, Java, JavaScript, Python, Ruby) used in Themis-CodePreference and Themis-CodeRewardBench.
  • Temporal Subsetting — For training data (Themis-CodePreference), only commits pushed before March 2019 are retained. For benchmark data (Themis-CodeRewardBench), commits are scoped to June 2019 – January 2021 from disjoint repositories.
  • Aspect Classification — Commits are assigned to quality dimensions (Functional Correctness, Runtime Efficiency, Memory Efficiency, Security Hardness, Readability & Maintainability) using criteria-specialized ModernBERT commit classifiers, trained on seed positives retrieved via curated term lists.
  • LLM Scoring & Instruction Synthesis — Frontier LMs validate preference strength and generate realistic inverse instructions.
  • LLM-as-a-Judge Preference Labelling — Multi-sample voting with frontier LMs produces consensus preference labels.

Dataset Schema

Column Type Description
commit string Git commit SHA
subject string First line of the commit message
message string Full commit message body
repos string Comma-separated list of repository names containing this commit
file_path string Path of the changed file
license string SPDX license identifier of the source repository
unix_time int64 Committer timestamp (seconds since epoch)
new_contents string File contents after the commit (post-commit)
old_contents string File contents before the commit (pre-commit)

Language Distribution

The dataset is partitioned by programming language, with one config per language. Each config has a single train split.

Language Commits Language Commits
Python 914,849 Rust 57,383
JavaScript 694,051 Scala 46,557
Java 402,369 Swift 40,271
Ruby 345,124 Groovy 16,723
PHP 281,390 PowerShell 16,729
C++ 194,218 Kotlin 16,467
Go 189,131 Erlang 15,623
C 172,736 Haskell 13,851
C# 138,000 Dart 8,890
TypeScript 114,769 Perl 4,930
Shell 95,305 Julia 2,662
R 656
Assembly 507
Total ~3.98M

Filters Applied

All filters from the upstream Themis-Git-Commits pipeline apply, plus the PR merge filter:

Filter Purpose
License allowlist MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, CC0-1.0, EPL-1.0, MPL-2.0, Unlicense, AGPL-3.0, LGPL-2.1, Artistic-2.0
Language allowlist (SQL) Python, Java, JavaScript, C, C#, C++, TypeScript, Go, Ruby (repo-level filter in BigQuery query)
Message length 10 < length < 15,000 characters
Message blocklist ~50 low-signal messages excluded (e.g., "initial commit", "wip", "yolo")
Pattern exclusion Merge commits and CI push messages filtered out
Same-path constraint old_path = new_path — file was modified in place, not renamed or moved
Single-file constraint Commit touches exactly one file
Content retrieval Both pre-commit and post-commit file contents successfully fetched
Near-deduplication MinHash LSH with Jaccard threshold 0.7
Extension filtering Changed file's extension mapped to one of 24 target programming languages (see distribution table)
PR merge filter Commit is part of a successfully merged, non-reverted pull request (GHTorrent data through end of 2021)

Usage

from datasets import load_dataset

# Load a single language
python_commits = load_dataset("project-themis/git-commits-merged", "Python")
sample = python_commits["train"][0]
print(f"Commit: {sample['commit']}")
print(f"Subject: {sample['subject']}")
print(f"License: {sample['license']}")
print(f"File: {sample['file_path']}")

# Load all languages
for lang in ["C", "CSharp", "Cpp", "Go", "Java", "JavaScript", "Python", "Ruby", "TypeScript"]:
    ds = load_dataset("project-themis/git-commits-merged", lang)
    print(f"{lang}: {len(ds['train'])} commits")

License

This dataset is released under the Apache 2.0 License. The source commits are drawn exclusively from repositories with permissive open-source licenses (see filter table above).

Citation

@article{themis2025,
  title={Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoring},
  author={Paul, Indraneil and Gurevych, Iryna and Glava\v{s}, Goran},
  journal={arXiv preprint arXiv:2605.00754},
  year={2025}
}
Downloads last month
42

Collection including project-themis/git-commits-merged

Papers for project-themis/git-commits-merged