Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
15 values
fix_commit
stringlengths
40
40
buggy_commit
stringlengths
40
40
message
stringlengths
3
64.3k
files
listlengths
1
300
timestamp
timestamp[s]date
2013-03-13 20:45:00
2026-04-11 07:48:46
golang/go
996b985008c7615004c0dbe8b031928faff3c993
e67d773034fde21e6f726c4add5eeba5882198ae
cmd/compile: improve stp merging for non-sequent cases Original algorithm merges stores with the first mergeable store in the chain, but it misses some cases. Additionally, creating list of STs, which store data to adjacent memory cells allows merging them according to the direction of increase of their addresses. I ...
[ { "path": "src/cmd/compile/internal/ssa/pair.go", "patch": "@@ -320,10 +320,70 @@ func memoryBarrierTest(b *Block) bool {\n \treturn false\n }\n \n+// pairStores merges store instructions.\n+// It collects stores into a buffer where they can be freely reordered.\n+// When encountering an instruction that ca...
2026-03-27T10:15:45
facebook/react
733d3aaf99e30627ec25174da9d39efbaa97dba3
404b38c764cf86e6f2ec42f873bb33ce114256d3
Fix FB_WWW eprh bundle dev guard (#36238) We use FB_WWW bundle to inject internal feature flag values, but need to use NODE guard type because this is a node script -- __DEV__ is breaking internal builds Follow up to https://github.com/facebook/react/pull/35951
[ { "path": "scripts/rollup/build.js", "patch": "@@ -453,7 +453,8 @@ function getPlugins(\n globalName,\n filename,\n moduleType,\n- bundle.wrapWithModuleBoundaries\n+ bundle.wrapWithModuleBoundaries,\n+ bundle.wrapWithNodeDevGuard\n ...
2026-04-08T20:12:35
golang/go
7c5ab4118014acd1e7c0fc67028186a4985c0a28
5d6aa23e5b6151d25955a512532383c28c745e18
net: document LookupSRV cname return value Document that the first return value of LookupSRV is the canonical name of the DNS target that was looked up, which may differ from the input name due to CNAME records. Fixes #49982 Change-Id: I574e0f5cdc381d3d9b11b5bd7a5acbea2c9e185d GitHub-Last-Rev: 9c756d48d55587f373c7cf...
[ { "path": "src/net/lookup.go", "patch": "@@ -487,6 +487,11 @@ func (r *Resolver) LookupCNAME(ctx context.Context, host string) (string, error)\n // publishing SRV records under non-standard names, if both service\n // and proto are empty strings, LookupSRV looks up name directly.\n //\n+// The returned cnam...
2026-02-09T02:43:54
nodejs/node
ff080948666f28fbd767548d26bea034d30bc277
43d5058056668b456754755d3f9c100d5ef1c193
doc: remove extensionless CJS exception for type:module packages Remove the documented exception that extensionless files in type: "module" packages are recognized as CommonJS when included via require(). This exception conflicted with the ESM resolution specification which states that extensionless files within a pac...
[ { "path": "doc/api/modules.md", "patch": "@@ -76,10 +76,11 @@ Node.js has two module systems: CommonJS modules and [ECMAScript modules][].\n \n By default, Node.js will treat the following as CommonJS modules:\n \n-* Files with a `.cjs` extension;\n+* Files with a `.cjs` extension.\n \n-* Files with a `.js`...
2026-04-08T08:50:21
vercel/next.js
fd3404504e7bbbb701e03562928c4c1c72439995
de353278be4a6208e37f4a4c9f6f17980e3346ee
Fix React18 tests for unstable_io (#92543) The last attempt to skip tests doesn't work because there is a failure to build. This strategy takes the fixture and only conditionally calls `use` if it exists
[ { "path": "test/e2e/app-dir/unstable-io/fixtures/cache-components/pages/pages-use.tsx", "patch": "@@ -2,7 +2,9 @@ import React from 'react'\n import { unstable_io } from 'next/cache'\n \n export default function PagesUse() {\n- React.use(unstable_io())\n+ if (typeof React.use === 'function') {\n+ React...
2026-04-08T22:16:03
electron/electron
4dfada86ce368583f83d09de2949e77f652f09d0
df81a1d4acd78062f8afc4621133f8be2847efee
fix: menu items not cleaned up after rebuild (#50806) Menu was holding a SelfKeepAlive to itself from construction, so any Menu that was never opened (e.g. an application menu replaced before being shown) stayed pinned in cppgc forever. Repeated calls to Menu.setApplicationMenu leaked every prior Menu along with its m...
[ { "path": "shell/browser/api/electron_api_menu.cc", "patch": "@@ -276,6 +276,7 @@ void Menu::OnMenuWillClose() {\n }\n \n void Menu::OnMenuWillShow() {\n+ keep_alive_ = this;\n Emit(\"menu-will-show\");\n }\n ", "additions": 1, "deletions": 0, "language": "Unknown" }, { "path": "shell...
2026-04-09T02:56:39
facebook/react
808e7ed8e26c07dc15c088105673b639760477f9
0c44b96e97c595198f30bdbe0f637f92ed74ed95
[compiler] Fix set-state-in-effect false negative with NewExpression default param (#36107) ## Summary Fixes #36101 When a component function has a destructured prop with a `NewExpression` default value (e.g. `{ value = new Number() }`), the React Compiler bails out during HIR construction when trying to lower the d...
[ { "path": "compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts", "patch": "@@ -3268,6 +3268,21 @@ function isReorderableExpression(\n )\n );\n }\n+ case 'NewExpression': {\n+ const newExpr = expr as NodePath<t.NewExpression>;\n+ const callee = newExpr.get('call...
2026-04-08T18:52:49
golang/go
5d6aa23e5b6151d25955a512532383c28c745e18
352d76b2912b20ede8b3238fc2ed7b697bc2695b
cmd/go: use MkdirTemp to create temp directory for "go bug" Don't use a predictable, potentially attacker-controlled filename in /tmp. Fixes #78584 Fixes CVE-2026-39819 Change-Id: I72116aa6dd8fa50f65b6dc0292a15a8c6a6a6964 Reviewed-on: https://go-review.googlesource.com/c/go/+/763882 Reviewed-by: Nicholas Husin <husi...
[ { "path": "src/cmd/go/internal/bug/bug.go", "patch": "@@ -184,14 +184,14 @@ func firstLine(buf []byte) []byte {\n // printGlibcVersion prints information about the glibc version.\n // It ignores failures.\n func printGlibcVersion(w io.Writer) {\n-\ttempdir := os.TempDir()\n-\tif tempdir == \"\" {\n+\ttempdi...
2026-04-08T16:55:54
nodejs/node
68e5f873aaf084cd627a9e6bf0fe6e4e76d0208d
511a57a17960013de48f4c6c3faf9a12e8b09e46
stream: propagate destruction in duplexPair Ensure destroying one side of a duplexPair triggers destruction of the other side via process.nextTick(). Only the destruction signal is sent to avoid breaking changes. Fixes: https://github.com/nodejs/node/issues/61015 PR-URL: https://github.com/nodejs/node/pull/61098 Revi...
[ { "path": "lib/internal/streams/duplexpair.js", "patch": "@@ -50,13 +50,37 @@ class DuplexSide extends Duplex {\n this.#otherSide.on('end', callback);\n this.#otherSide.push(null);\n }\n+\n+\n+ _destroy(err, callback) {\n+ const otherSide = this.#otherSide;\n+\n+ if (otherSide !== null && !...
2026-04-07T17:51:49
rust-lang/rust
56f43b5142ff41a450e85ff241778fe45eb988e2
574d8774b9e34c7d9fb07e81caaa67ccc382a0a0
Parenthesize block-like expressions in call callee of pretty printer When a macro expands to a call whose callee is a block (or other "complete" expression like `match`, `if`, `loop`), the AST pretty printer emits the callee without parentheses. In statement position the closing brace ends the expression and the argum...
[ { "path": "compiler/rustc_ast_pretty/src/pprust/state/expr.rs", "patch": "@@ -235,7 +235,15 @@ impl<'a> State<'a> {\n // In order to call a named field, needs parens: `(self.fun)()`\n // But not for an unnamed field: `self.0()`\n ast::ExprKind::Field(_, name) => !name.is_...
2026-04-08T13:52:01
electron/electron
df81a1d4acd78062f8afc4621133f8be2847efee
c3e3958668cbc580fffed29bee44b74f056947ff
test: add `desktopCapturer` icon validation (#50261) * chore: testing of desktopCapturer can run on arm * fix: DesktopMediaListCaptureThread crash Fixed a crash when Windows calls ::CoCreateInstance() in the DesktopMediaListCaptureThread before COM is initialized. * test: added test for desktopCapturer fetchWindowI...
[ { "path": "patches/chromium/.patches", "patch": "@@ -150,3 +150,4 @@ fix_use_fresh_lazynow_for_onendworkitemimpl_after_didruntask.patch\n fix_pulseaudio_stream_and_icon_names.patch\n fix_fire_menu_popup_start_for_dynamically_created_aria_menus.patch\n feat_allow_enabling_extensions_on_custom_protocols.patch...
2026-04-08T18:56:27
golang/go
1ea7966042731bae941511fb2b261b9536ad268f
22f65d37c46d8eb087d764a734693d0abe39080f
crypto/tls: prevent deadlock when client sends multiple key update messages When we made setReadTrafficSecret send an alert when there are pending handshake messages, we introduced a deadlock when the client sends multiple key update messages that request a response, as handleKeyUpdate will lock the mutex, and defer t...
[ { "path": "src/crypto/tls/conn.go", "patch": "@@ -1362,7 +1362,7 @@ func (c *Conn) handleKeyUpdate(keyUpdate *keyUpdateMsg) error {\n \t}\n \n \tnewSecret := cipherSuite.nextTrafficSecret(c.in.trafficSecret)\n-\tif err := c.setReadTrafficSecret(cipherSuite, QUICEncryptionLevelInitial, newSecret); err != nil...
2026-03-23T18:54:41
End of preview. Expand in Data Studio

GitHub Pull Request Bug–Fix Dataset

Kaggle url

A curated, high-signal dataset of real-world software bugs and fixes collected from 25 popular open-source GitHub repositories.
Each entry corresponds to a single pull request (PR) and pairs contextual metadata with the exact code changes (unified diffs) that fixed the bug.

This dataset is designed for:

  • Automated program repair
  • Bug-fix patch generation
  • LLM-based code and debugging agents
  • Empirical software engineering research

How to use

install datasets python library:

pip install datasets

here is a copy paste example

from datasets import load_dataset

# Load all splits
dataset = load_dataset("helloadhavan/github_issues")

print(dataset)
# pick the train split

example = dataset["train"][0]

# Inspect a single example

print("Repository:", example["repo"])
print("Buggy commit:", example["buggy_commit"])
print("Fix commit:", example["fix_commit"])
print("Message:", example["message"])
print("Timestamp:", example["timestamp"])

print("\nModified files:")
for f in example["files"]:
    print("-", f["path"], f["language"])

# Filter examples by programming language

def contains_assembly_file(example):
    return any(f["language"] == "Assembly" for f in example["files"])

python_fixes = dataset["train"].filter(contains_assembly_file)

print("Assembly-related fixes:", len(python_fixes))

Data collection methodology

Data was collected from GitHub repositories by identifying commit pairs that represent a bug-introducing version and its corresponding fix commit.

The dataset was constructed and post-processed to ensure high signal and usability:

  • Only commits representing bug fixes or correctness changes were included
  • Each example explicitly links a buggy commit to the corresponding fix commit
  • Repository metadata is preserved for traceability
  • Code changes are stored as unified diffs at the file level
  • Commits that only perform refactoring, formatting, or non-functional changes were excluded
  • Entries without meaningful code changes were filtered out

Each dataset row represents one bug–fix commit pair, rather than a pull request.


Dataset schema

Each entry in the dataset follows the schema below:

{
  "repo": "owner/repository",
  "buggy_commit": "abcdef123456...",
  "fix_commit": "fedcba654321...",
  "message": "Commit message describing the fix",
  "timestamp": "YYYY-MM-DDTHH:MM:SSZ",
  "files": [
    {
      "path": "path/to/file.ext",
      "patch": "unified diff representing the fix",
      "additions": 10,
      "deletions": 2,
      "language": "Programming language inferred from file extension"
    }
  ]
}
Field Description
repo GitHub repository containing the fix
buggy_commit Commit introducing or containing the bug
fix_commit Commit that fixes the bug
message Commit message associated with the fix
timestamp Timestamp of the fix commit (ISO 8601 format)
files List of files modified by the fix
files[].path Path to the modified file
files[].patch Unified diff containing the code changes
files[].additions Number of lines added
files[].deletions Number of lines removed
files[].language Programming language inferred from the file extension

Supported languages

The dataset contains fixes across multiple programming languages, including (but not limited to):

  • JavaScript / TypeScript
  • C / C++
  • Python
  • Rust
  • Go
  • Java
  • Objective-C / Objective-C++ (rare)
  • Assembly (very rare. only 638 samples)

Language distribution varies by repository.

Intended use cases

This dataset is well-suited for:

  • Training models to generate patches from real pull request context
  • Studying bug-fix patterns across large codebases
  • Building autonomous debugging or repair agents
  • Research in program repair, code synthesis, and software maintenance

It is not intended for:

  • Pull request classification or triage
  • Sentiment analysis

Limitations

The dataset reflects real-world noise from GitHub pull requests Buggy commit identification is heuristic and may be imperfect Some fixes involve refactoring or design changes rather than minimal patches No guarantee that fixes represent optimal or best-practice solutions

Note: Due to a bug in the scraper code, 121k samples were collected instead of the planned 50k.
Downloads last month
133