Datasets:
base_commit stringlengths 40 40 | created_at stringdate 2014-12-24 09:18:48 2025-10-28 22:36:38 | image_name stringlengths 39 88 | instance_id stringlengths 11 60 | interface stringlengths 33 16.8k | language stringclasses 16
values | license stringclasses 13
values | patch stringlengths 275 32k | pr_description stringlengths 0 37.8k | problem_statement stringlengths 0 235k | repo stringlengths 6 55 | test_patch stringlengths 205 31.9k | FAIL_TO_PASS listlengths 1 28.8k | PASS_TO_PASS listlengths 0 24.6k | install_config dict | meta dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f52f0bf3d18ca418d1eec4afd1370751fdd914ce | 2021-06-22 22:21:33 | prime/primeintellect/elastic-synthetics:316-f52f0bf | elastic__synthetics-316 | No new interfaces are introduced. | ts | MIT | diff --git a/src/core/runner.ts b/src/core/runner.ts
index 2872cf5..649a22a 100644
--- a/src/core/runner.ts
+++ b/src/core/runner.ts
@@ -131,6 +131,7 @@ export default class Runner extends EventEmitter {
journeys: Journey[] = [];
hooks: SuiteHooks = { beforeAll: [], afterAll: [] };
screenshotPath = join(CACHE_... | fix: capture beforeAll hook errors
+ fix #280
+ We capture the beforeAll hook errors and any error that happens in any one of the hooks would be captured and all journeys that run on the current invocation will report that error event with `failed` status to be able to captured as part of the Uptime UI.
+ `afterAll... | propagate errors from `beforeAll` and `afterAll` hooks
+ Now error in the `beforeAll` and `afterAll` hooks would be captured and reported as error, but they will not be associated with the reporters in the correct way.
+ Without associating these errors, the Uptime UI will have no information about what happened duri... | elastic/synthetics | diff --git a/__tests__/core/runner.test.ts b/__tests__/core/runner.test.ts
index a60b6ed..d4ba7d9 100644
--- a/__tests__/core/runner.test.ts
+++ b/__tests__/core/runner.test.ts
@@ -147,6 +147,23 @@ describe('runner', () => {
});
});
+ it('run journey - failed on beforeAll', async () => {
+ const error = n... | [
"run journey - failed on beforeAll"
] | [
"log to specified fd",
"computes trace of the tab",
"compute user timing metrics",
"compute user experience trace and metrics",
"computes layout shift",
"computes cls with session window",
"calculate cls score with simulated sessions",
"cls to 0 when no events found",
"computes filmstrips",
"add s... | {
"base_image_name": "node_20",
"docker_specs": null,
"install": [
"npm ci --quiet"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npm run test:unit -- --verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a9b06a635a7d3458c8e2ed2b10cc3fd1e02b5f37 | 2021-03-03 15:16:02 | prime/primeintellect/webpack-contrib-copy-webpack-plugin:590-a9b06a6 | webpack-contrib__copy-webpack-plugin-590 | Function: pattern.priority
Location: src/options.json (pattern object schema) and documentation README.md
Inputs: number priority – optional numeric value; defaults to 0 if omitted. Must be a finite number.
Outputs: The value is stored on the pattern and used by CopyPlugin to order asset emission; higher numbers are em... | js | MIT | diff --git a/README.md b/README.md
index af0b3ea..b20837a 100644
--- a/README.md
+++ b/README.md
@@ -85,6 +85,7 @@ module.exports = {
| [`filter`](#filter) | `{Function}` | `undefined` | Allows to filter copied assets. ... | Feat: added `priority` option
<!--
HOLY CRAP a Pull Request. We ❤️ those!
If you remove or skip this template, you'll make the 🐼 sad and the mighty god
of Github will appear and pile-drive the close button from a great height
while making animal noises.
Please place an x (no spaces!) in all [ ] that... | [Feature] Add order option
Hello,
In a project I am developing, I have an issue with copying files with the same name from multiple sources.
Configuration of copy webpack plugin is as follows:
```
new CopyWebpackPlugin([
{ from: 'node_modules/engine/static', test: /\.(css|html|png)$/, force: true }... | webpack-contrib/copy-webpack-plugin | diff --git a/test/__snapshots__/validate-options.test.js.snap b/test/__snapshots__/validate-options.test.js.snap
index a08f0ef..fd384cb 100644
--- a/test/__snapshots__/validate-options.test.js.snap
+++ b/test/__snapshots__/validate-options.test.js.snap
@@ -14,7 +14,7 @@ exports[`validate options should throw an error o... | [
"should successfully validate the \"patterns\" option with \"[{\"from\":\"test.txt\",\"to\":\"dir\",\"priority\":5}]\" value",
"should throw an error on the \"patterns\" option with \"undefined\" value",
"should throw an error on the \"patterns\" option with \"true\" value",
"should throw an error on the \"pa... | [
"should exported",
"should successfully validate the \"patterns\" option with \"[\"test.txt\"]\" value",
"should successfully validate the \"patterns\" option with \"[\"test.txt\",\"test-other.txt\"]\" value",
"should successfully validate the \"patterns\" option with \"[\"test.txt\",{\"from\":\"test.txt\",\"... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2ad5f638789af3e37a3a07ed3f4d4938a8209ed4 | 2024-08-15 19:30:10 | prime/primeintellect/bvanelli-actualpy:56-2ad5f63 | bvanelli__actualpy-56 | Method: ActionType.SET_SPLIT_AMOUNT
Location: actual.rules (enum ActionType)
Inputs: None (enum member)
Outputs: Enum value representing the “set‑split‑amount” operation (string value `"set-split-amount"`). Used by Action.op to trigger split‑amount handling.
Method: Condition.get_value(self) → Any
Location: actual.rul... | python | MIT | diff --git a/actual/__init__.py b/actual/__init__.py
index 3ae112c..564c3a7 100644
--- a/actual/__init__.py
+++ b/actual/__init__.py
@@ -402,7 +402,7 @@ class Actual(ActualServer):
def run_rules(self):
ruleset = get_ruleset(self.session)
- transactions = get_transactions(self.session)
+ tr... | feat: Implement custom set split amount rules.
Closes #53 | Operation ActionType.SET_SPLIT_AMOUNT not supported
### Description
I've a rule that given a certain payee, it creates a split transaction of 50% each.
it seems that the code here is not supporting it.
is there a way to support this or a hint on how i can create a pr?
| bvanelli/actualpy | diff --git a/tests/test_rules.py b/tests/test_rules.py
index bc28ec9..71d22c4 100644
--- a/tests/test_rules.py
+++ b/tests/test_rules.py
@@ -5,6 +5,7 @@ from unittest.mock import MagicMock
import pytest
from actual import ActualError
+from actual.exceptions import ActualSplitTransactionError
from actual.queries im... | [
"tests/test_rules.py::test_category_rule",
"tests/test_rules.py::test_datetime_rule",
"tests/test_rules.py::test_string_condition",
"tests/test_rules.py::test_numeric_condition",
"tests/test_rules.py::test_complex_rule",
"tests/test_rules.py::test_invalid_inputs",
"tests/test_rules.py::test_value_type_c... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
db37bd27a105006980e5a4788acc23c6de9225df | 2023-12-06 22:00:23 | prime/primeintellect/rust-bitcoin-rust-bitcoin:2255-db37bd2 | rust-bitcoin__rust-bitcoin-2255 | Method: Script.minimal_non_dust(&self)
Location: impl Script in bitcoin::blockdata::script::borrowed.rs
Inputs: self – a reference to the Script whose dust threshold is being queried.
Outputs: crate::Amount – the minimum value an output with this script must have to be non‑dust, calculated using the default dust‑relay‑... | rust | CC0-1.0 | diff --git a/bitcoin/src/blockdata/script/borrowed.rs b/bitcoin/src/blockdata/script/borrowed.rs
index 117e34d0..828a23b9 100644
--- a/bitcoin/src/blockdata/script/borrowed.rs
+++ b/bitcoin/src/blockdata/script/borrowed.rs
@@ -10,6 +10,7 @@
use secp256k1::{Secp256k1, Verification};
use super::PushBytes;
+use crate:... | Fix: TxOut::minimal_non_dust and Script::dust_value
Fixes #2192
TxOut::minimal_non_dust has 3 problems.
1. There is an invisible dependency on Bitcoin Core's default minrelaytxfee value. It has been made explicit.
2. There is an off by one error. The dust limit comparison uses < and therefore `+ 1` was not need... | `Script::dust_value` method name disagrees with the documentation
Dust is a value that is not economically spendable and can not be broadcasted. The method is called `dust_value` which suggest it returns a value that is too small (and always returning 0 would be a valid implementation) but the documentation says "Retur... | rust-bitcoin/rust-bitcoin | diff --git a/bitcoin/src/blockdata/script/tests.rs b/bitcoin/src/blockdata/script/tests.rs
index c0a4c10b..e0a60f4e 100644
--- a/bitcoin/src/blockdata/script/tests.rs
+++ b/bitcoin/src/blockdata/script/tests.rs
@@ -6,6 +6,7 @@
use hex_lit::hex;
use super::*;
+use crate::FeeRate;
use crate::blockdata::opcodes;
use... | [
"address::tests::invalid_address_parses_error",
"address::tests::test_fail_address_from_script",
"address::tests::test_address_debug",
"address::tests::test_address_type",
"address::tests::test_is_related_to_pubkey_p2pkh_uncompressed_key",
"address::tests::test_is_related_to_pubkey_p2pkh",
"address::tes... | [] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.89.0",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
db0bbaa5c604fd8efdd4618de47d4c1205097ce5 | 2020-07-03 10:55:29 | prime/primeintellect/filecoin-project-specs-actors:592-db0bbaa | filecoin-project__specs-actors-592 | Method: Actor.AddBalance(rt Runtime, providerOrClientAddress *addr.Address) *adt.EmptyValue
Location: actors/builtin/market/market_actor.go
Inputs:
- rt: Runtime providing execution context, including the message value received.
- providerOrClientAddress: *addr.Address of the provider or client whose escrow balance is... | go | custom-check-github | diff --git a/actors/builtin/market/market_actor.go b/actors/builtin/market/market_actor.go
index 48ceeb2e..dc06f931 100644
--- a/actors/builtin/market/market_actor.go
+++ b/actors/builtin/market/market_actor.go
@@ -118,11 +118,15 @@ func (a Actor) WithdrawBalance(rt Runtime, params *WithdrawBalanceParams) *adt.E
// ... | Add balance should not be called with negative value
Closes #591 | Market: AddBalance should fail on being passed a negative amount
Currently, this would work. | filecoin-project/specs-actors | diff --git a/actors/builtin/market/market_test.go b/actors/builtin/market/market_test.go
index d94fa03c..ec8bd074 100644
--- a/actors/builtin/market/market_test.go
+++ b/actors/builtin/market/market_test.go
@@ -126,6 +126,19 @@ func TestMarketActor(t *testing.T) {
}
})
+ t.Run("fails when called with negative... | [
"TestMarketActor",
"TestMarketActor/AddBalance",
"TestMarketActor/AddBalance/fails_when_called_with_negative_value"
] | [
"TestPieceSize",
"TestBitFieldUnset",
"TestBitFieldContains",
"TestSectorSizeString",
"TestSectorSizeShortString",
"TestBigIntSerializationRoundTrip",
"TestNewInt",
"TestInt_MarshalUnmarshalJSON",
"TestOperations",
"TestOperations/Sum",
"TestOperations/Sub",
"TestOperations/Mul",
"TestOperat... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b4d790dd57b324c20ea9031b4769ba4d75ecd691 | 2025-02-24 20:09:20 | prime/primeintellect/aws-cloudformation-cfn-lint:3965-b4d790d | aws-cloudformation__cfn-lint-3965 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/functions/RefFormat.py b/src/cfnlint/rules/functions/RefFormat.py
index c734e6403..64a9b651b 100644
--- a/src/cfnlint/rules/functions/RefFormat.py
+++ b/src/cfnlint/rules/functions/RefFormat.py
@@ -8,6 +8,7 @@ from __future__ import annotations
from copy import deepcopy
from typing impo... | Ignore custom resource Ref
*Issue #, if available:*
fix #3964
*Description of changes:*
- Update E1041 to ignore custom resources when using a Ref
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| aws::ec2::networkinterface E1041 bug
### CloudFormation Lint Version
1.25.1
### What operating system are you using?
windows
### Describe the bug
[cfn-lint] E1041: {'Ref': 'EniSg'} does not match destination format of 'AWS::EC2::SecurityGroup.Id'
the custom function finds the SG Id and returns it for a !Ref in o... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/functions/test_ref_format.py b/test/unit/rules/functions/test_ref_format.py
index 9e13087c0..5c7b26013 100644
--- a/test/unit/rules/functions/test_ref_format.py
+++ b/test/unit/rules/functions/test_ref_format.py
@@ -21,6 +21,7 @@ def template():
"Resources": {
"MyBucke... | [
"test/unit/rules/functions/test_ref_format.py::test_validate[Valid"
] | [
"test/unit/rules/functions/test_ref_format.py::test_validate[Invalid"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
6116ec6685b33652e9e25def9b8897ed4b015c7d | 2024-08-15 16:07:43 | prime/primeintellect/editorconfig-checker-editorconfig-checker:360-6116ec6 | editorconfig-checker__editorconfig-checker-360 | "Method: ValidationError.Equal(self, error2 ValidationError) bool\nLocation: pkg/error/error.go\nInp(...TRUNCATED) | go | MIT | "diff --git a/.gitignore b/.gitignore\nindex 48ec4f0..adf17e0 100644\n--- a/.gitignore\n+++ b/.gitig(...TRUNCATED) | "feat: consolidate adjacent error messages\nThis changes the human output format to collect multiple(...TRUNCATED) | "it would be nice if editorconfig-checker could collect instances of the same issues found in adjace(...TRUNCATED) | editorconfig-checker/editorconfig-checker | "diff --git a/pkg/error/__snapshots__/pathseparator-backslash/error_test.snap b/pkg/error/__snapshot(...TRUNCATED) | ["TestGetErrorCount","TestValidationErrorEqual","TestConsolidateErrors","TestFormatErrors","TestLogg(...TRUNCATED) | ["TestNewConfig","TestGetExcludesAsRegularExpression","TestMerge","TestParse","TestSave","TestGetAsS(...TRUNCATED) | {"base_image_name":"go_1.23.8","docker_specs":{"_variant":null,"bazel_version":null,"bun_version":nu(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
41a48da66062b4e948ef1f6ce5183d2752304ecf | 2015-04-08 12:07:19 | prime/primeintellect/mozilla-services-cliquet:203-41a48da | mozilla-services__cliquet-203 | "Function: initialize(config, version=None, project_name=None, default_settings=None)\nLocation: cli(...TRUNCATED) | python | custom-check-github | "diff --git a/cliquet/__init__.py b/cliquet/__init__.py\nindex 2392479f..4ed489ed 100644\n--- a/cliq(...TRUNCATED) | Provide default settings in initialize (fixes #136) | "Provide extra default settings in initialize_cliquet\nIn order to extend and override cliquet defau(...TRUNCATED) | mozilla-services/cliquet | "diff --git a/cliquet/tests/test_initialization.py b/cliquet/tests/test_initialization.py\nindex 6b4(...TRUNCATED) | [
"cliquet/tests/test_initialization.py::InitializationTest::test_overriden_default_settings"
] | ["cliquet/tests/test_initialization.py::InitializationTest::test_environment_values_override_configu(...TRUNCATED) | {"base_image_name":"python_base_37","docker_specs":{"_variant":null,"bazel_version":null,"bun_versio(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
c5a300a4357d40d202f92dd08894ea520f2ade3f | 2025-02-08 09:28:44 | prime/primeintellect/sissbruecker-linkding:984-c5a300a | sissbruecker__linkding-984 | No new interfaces are introduced. | python | MIT | "diff --git a/bookmarks/templates/bookmarks/head.html b/bookmarks/templates/bookmarks/head.html\nind(...TRUNCATED) | Add RSS link to shared bookmarks page
Closes #879 | "[New feature] Add a link to public RSS from public bookmarks page\nHello! This is my first issue.\r(...TRUNCATED) | sissbruecker/linkding | "diff --git a/bookmarks/tests/test_bookmark_archived_view.py b/bookmarks/tests/test_bookmark_archive(...TRUNCATED) | ["bookmarks/tests/test_bookmark_shared_view.py::BookmarkSharedViewTestCase::test_includes_public_sha(...TRUNCATED) | ["bookmarks/tests/test_bookmark_archived_view.py::BookmarkArchivedViewTestCase::test_allowed_bulk_ac(...TRUNCATED) | {"base_image_name":"python_base_310","docker_specs":{"_variant":null,"bazel_version":null,"bun_versi(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
76bf5e7ddae7e9bc05c1763eb750d237104beccd | 2023-06-21 16:49:54 | prime/primeintellect/kiegroup-github-action-build-chain:446-76bf5e7 | kiegroup__github-action-build-chain-446 | "Function: executeCommand(node: NodeExecution, command: string, opts?: ExecOptions) → Promise<Exec(...TRUNCATED) | ts | null | "diff --git a/package-lock.json b/package-lock.json\nindex 4df6100..72ae3af 100644\n--- a/package-lo(...TRUNCATED) | fix: fail fast should stop execution if any phase fails
Fixes #445
| "fail fast does not stop command execution once the `BEFORE` command fails\n```\r\n[BEFORE] [kiegrou(...TRUNCATED) | kiegroup/github-action-build-chain | "diff --git a/test/unitary/service/command/execute-command-service.test.ts b/test/unitary/service/co(...TRUNCATED) | [
"phase: \"before: sequential: fail fast\"",
"phase: \"current: parallel: fail fast\""
] | ["treatCommand","start no end","start and end","\"cross_pr\"","\"full_downstream\"","\"single_pr\"",(...TRUNCATED) | {"base_image_name":"node_16","docker_specs":null,"install":["npm ci"],"log_parser":"parse_log_js_4",(...TRUNCATED) | {"llm_metadata":{"code":"A","confidence":0.97,"detected_issues":{"B1":false,"B2":false,"B3":false,"B(...TRUNCATED) |
SWE-rebench-V2-Filtered-Verified
Filtered and gold-patch-verified subset of Nebius's
SWE-rebench-V2
(paper): 6,272 / 32,079 freshly-mined GitHub PR tasks
across 17 languages. Default dataset of the swerebench_v2_v1 taskset.
Changes vs upstream
Filtered (selection — the bulk of the cut):
- Upstream's own per-row LLM-judge metadata:
difficultylabeled easy/medium/hard, judge gradecode == "A"(clearly solvable),intent_completeness == "complete", nodetected_issues, judgeconfidence ≥ 0.95. - Leak hygiene:
external_urls == [], plus a regex scrub dropping rows whose problem statement contains inline#1234/gh-1234//pull/1234-style references (the fixing PR is look-up-able otherwise). - Wholesale language drops — Julia, C++, Clojure images are broken for scoring (missing
runtimes / wholesale-failing suites); a manual image blocklist (including 29 C#/Go images that deterministically fail Prime sandbox-image conversion, so every kept row has a runnable public Prime-registry image); a
statamic/cmsrepo drop (its tasks run unrelated JS suites, scoring 1.0 without the fix).
Verified (our passes, the final gate):
- Gold-patch validation pass 1 via SolveEnv — reward 1.0 required.
- Independent pass 2 — flaky rows removed.
- No-edit pass — rows solvable with zero edits removed.
- RL always-fail audit (2026-07) — instances that scored 0.0 in every 16-rollout group across independent GLM-5.2 RL samplings were re-gold-validated twice; 2 deterministically unresolvable + 1 flaky removed.
Per-row outcomes ship with this repo (swe-rebench-v2-validation.jsonl,
swe-rebench-v2-flaky-instances.json, swe-rebench-v2-no-edit-pass-exclusions.jsonl,
swe-rebench-v2-rl-alwaysfail-exclusions.json).
image_name is rewritten to the public Prime image registry (prime/primeintellect/...) so
sandbox rollouts avoid Docker Hub rate limits and get fast pulls. Schema is otherwise unchanged.
License mirrors upstream: CC-BY-4.0.
Splits
| Split | Rows |
|---|---|
train |
6,272 |
How to use
Install the swerebench_v2_v1 taskset from
research-environments, then run it
end-to-end with verifiers:
uv pip install --prerelease=allow "git+https://github.com/PrimeIntellect-ai/research-environments.git#subdirectory=environments/swe/swerebench_v2_v1"
uv run eval --taskset.id swerebench_v2_v1 -m <your-model> -n 100 -r 4
Generation
Reproduction script — swe-rebench-v2-filtered-verified.py
This dataset was created by running:
uv run datasets/swe-rebench-v2-filtered-verified.py -H
# swe-rebench-v2-clean.py
"""Filter `nebius/SWE-rebench-V2` (32k) to a clean RL-trainable subset.
Filters (all applied conjunctively against `meta.llm_metadata`, which Nebius
populates per row using the `meta_info.j2` LLM-judge rubric — see
https://github.com/SWE-rebench/SWE-rebench-V2/blob/main/prompts/annotations/meta_info.j2):
* `difficulty in {"easy", "medium", "hard"}` — drops only ``null`` /
unannotated rows. Each difficulty is validated independently below;
``meta.llm_metadata.difficulty`` remains on every row so downstream
consumers can still partition by difficulty if they want.
* `code == "A"` — judge graded the instance SOLVABLE (problem clearly
specified, tests align with stated requirements). B1–B6 grades flag
test-suite coupling, implicit naming, missing external-URL info,
ambiguous spec, patch artifacts, or implicit domain knowledge.
* `intent_completeness == "complete"` — problem statement provides
sufficient detail (vs. partial / insufficient).
* `detected_issues` all false — no B1–B6 environment/spec problems detected.
* `confidence >= --min-confidence` (default 0.95) — judge classification
certainty.
* `external_urls == []` — judge extracted no referenced URLs from the
issue text. B3 already drops cases where the URL info is *essential*
and missing; this extra filter drops cases where any URL is present
(paranoid, since the V2 problem_statement is the raw GitHub issue body
and incidental URLs there are still a solvability risk).
Plus one regex pass on `problem_statement` itself, since `external_urls`
is URL-only and misses inline GitHub-style issue/PR references like
`#1234`, `gh-1234`, `PR #1234`, `/issues/1234`, `/pull/1234`. Any such
reference drops the row.
Plus a manually-curated image blocklist at
``swe-rebench-v2-exclude-images.json`` (sibling of this file) — drops
rows whose ``image_name`` matches. This includes 29 C#/Go images
(microsoft-kiota, devlooped-moq, microsoft-typescript-go,
asynkron-protoactor-dotnet, btcpayserver, spectreconsole) whose Docker Hub
images deterministically fail Prime platform sandbox-image conversion
(3 independent attempts, 2026-07) — excluded so every kept row has a
runnable public image in the Prime registry.
Plus a wholesale lang drop (``_DROP_LANGS``: julia, cpp, clojure):
SolveEnv pass-1 found these were 0/N because Nebius's images for these
langs miss the runtime / have wholesale-broken test setups.
Plus a SolveEnv gold-patch validation gate: only instances where applying
the gold patch and running the upstream ``test_cmd`` yields reward 1.0
are kept. Per-row outcomes (reward, reason, elapsed, test_output_tail tail)
live in ``swe-rebench-v2-validation.jsonl`` for posterity / reproducibility.
The file is the union of two passes (one over the hard+medium split, one
over the easy split).
Plus a flaky-instance blocklist at ``swe-rebench-v2-flaky-instances.json``:
instances that passed pass 1 but failed an independent re-validation. The
hard/medium half of the list is conservative (only ``test_failed`` /
``gold_apply_failed`` reasons retained); the easy half includes all
non-passing reasons including infra-noise (sandbox_error, timeout, None)
plus one explicit hang row (``brazilian-utils__brutils-python-126``).
Plus a manual repo blocklist (``_DROP_REPOS``) for repositories discovered to
have systematically non-discriminating tests after validation.
Plus a no-edit pass blocklist at
``swe-rebench-v2-no-edit-pass-exclusions.jsonl``: instances where the no-edit
debugger got reward 1.0, meaning the tests pass without applying any agent edit.
Plus an RL always-fail audit blocklist at
``swe-rebench-v2-rl-alwaysfail-exclusions.json``: instances flagged during
GLM-5.2 RL training (every 16-rollout group scored 0.0 across independent
samplings) and then gold-validated twice via the ``swerebench_v2_v1`` taskset's
``validate`` hook (2026-07-17). Two are deterministically unresolvable under
the current verifier (graded FAIL_TO_PASS tests the row's ``test_cmd`` never
runs, or tests needing JDK toolchains absent from the image) and one is flaky
(2,422 all-or-nothing tests spawning servers/ports). Per-row verdicts and
reasons live in the file.
After filtering, ``image_name`` is rewritten from
``docker.io/swerebenchv2/<name>:<tag>`` to the public Prime image registry at
``prime/primeintellect/<name>:<tag>`` (the ``swerebenchv2/`` namespace is
stripped) so sandbox rollouts avoid Docker Hub rate limits and get fast pulls.
Field source notes:
* `problem_statement` (V2) is the raw GitHub issue body.
* `pr_description` (V2) is the raw merged PR description (NOT LLM-rewritten —
contrary to what one might assume from `pr_description.j2`, which is what
Nebius uses to generate the `problem_statement` of the *separate* 126k
`nebius/SWE-rebench-V2-PRs` release, not V2's pr_description).
"""
# /// script
# requires-python = ">=3.12"
# dependencies = ["datasets>=4.0.0", "jinja2"]
# ///
import argparse
import json
import re
import sys
import time
from pathlib import Path
from typing import cast
from huggingface_hub import create_repo, upload_file, whoami
from datasets import Dataset, load_dataset
SOURCE_REPO = "nebius/SWE-rebench-V2"
# Inline GitHub issue/PR references not captured by `external_urls`
# (which is URL-only). Catches `#1234`, `gh-1234`, `PR #1234`,
# `issue #1234`, `/issues/1234`, `/pull/1234`.
_RE_ISSUE_REF = re.compile(
r"(#\d{2,}|gh-\d+|PR\s*#?\d+|issue\s*#?\d+|/issues/\d+|/pull/\d+|/pulls/\d+)",
re.IGNORECASE,
)
_EXCLUDE_IMAGES_PATH = Path(__file__).parent / "swe-rebench-v2-exclude-images.json"
_EXCLUDE_IMAGES = frozenset(json.loads(_EXCLUDE_IMAGES_PATH.read_text()))
# Wholesale-drop languages that had 0/N pass rate in SolveEnv pass-1
# validation (Nebius's images for these langs are missing the runtime
# or have wholesale-broken test setups). Verified across the easy split;
# applied to all difficulties uniformly since the underlying images are
# shared across difficulties.
_DROP_LANGS = frozenset({"julia", "cpp", "clojure"})
# SolveEnv gold-patch validation outcomes, one row per instance_id. Built by
# running `vf-eval solve_swe -a '{"task_type":"swerebench-v2",...}' -m none`
# over the prior post-filter set; kept here for reproducibility / posterity.
# Only instances with reward == 1.0 are retained downstream.
_VALIDATION_PATH = Path(__file__).parent / "swe-rebench-v2-validation.jsonl"
_VALIDATION_PASSING = frozenset(
json.loads(line)["instance_id"]
for line in _VALIDATION_PATH.read_text().splitlines()
if json.loads(line).get("reward") == 1.0
)
# Flaky instances: passed gold-patch validation in pass 1 but failed (or hung)
# in an independent pass 2 with the same args, no retries. Removed downstream
# so training rollouts don't see noisy reward signal.
_FLAKY_PATH = Path(__file__).parent / "swe-rebench-v2-flaky-instances.json"
_FLAKY = frozenset(entry["instance_id"] for entry in json.loads(_FLAKY_PATH.read_text()))
_NO_EDIT_PASS_PATH = Path(__file__).parent / "swe-rebench-v2-no-edit-pass-exclusions.jsonl"
_NO_EDIT_PASSING = frozenset(
json.loads(line)["instance_id"] for line in _NO_EDIT_PASS_PATH.read_text(encoding="utf-8").splitlines() if line
)
# RL always-fail audit exclusions: instances whose reward was 0.0 in every
# 16-rollout group across independent GLM-5.2 RL samplings, then gold-validated
# twice (2026-07-17) — two deterministically unresolvable, one flaky.
_RL_ALWAYSFAIL_PATH = Path(__file__).parent / "swe-rebench-v2-rl-alwaysfail-exclusions.json"
_RL_ALWAYSFAIL = frozenset(entry["instance_id"] for entry in json.loads(_RL_ALWAYSFAIL_PATH.read_text()))
# statamic/cms rows add PHP tests but run unrelated JS suites, so base +
# test_patch can score reward 1.0 without the issue fix.
_DROP_REPOS = frozenset({"statamic/cms"})
_DOCKERHUB_PREFIX = "docker.io/swerebenchv2/"
_PRIME_PREFIX = "prime/primeintellect/"
def _normalize_image(image_name: str) -> str:
# Dataset rows carry e.g. ``docker.io/swerebenchv2/foo-bar:tag``; the
# exclusion list omits the ``docker.io/`` prefix. Strip it for comparison.
prefix = "docker.io/"
return image_name[len(prefix) :] if image_name.startswith(prefix) else image_name
def _rewrite_image_to_prime_registry(image_name: str) -> str:
# Subset images are re-transferred as PUBLIC images to the Prime platform
# registry under ``prime/primeintellect/`` (the Docker Hub ``swerebenchv2/``
# namespace is stripped); pulls from there avoid Docker Hub rate limits and
# are much faster from sandbox hosts.
if image_name.startswith(_DOCKERHUB_PREFIX):
return _PRIME_PREFIX + image_name[len(_DOCKERHUB_PREFIX) :]
return image_name
def _coerce_llm_metadata(meta: dict) -> dict:
# `meta.llm_metadata` is a dict in the current revision; tolerate JSON-string variants too.
llm = meta.get("llm_metadata")
if isinstance(llm, str):
return json.loads(llm)
assert isinstance(llm, dict), f"unexpected llm_metadata type: {type(llm).__name__}"
return llm
def _passes_filter(example: dict, min_confidence: float) -> bool:
llm = _coerce_llm_metadata(example["meta"])
if llm.get("difficulty") not in ("easy", "medium", "hard"):
return False
if llm.get("code") != "A":
return False
if llm.get("intent_completeness") != "complete":
return False
if any(llm.get("detected_issues", {}).values()):
return False
if llm.get("external_urls"):
return False
confidence = llm.get("confidence")
if confidence is None or confidence < min_confidence:
return False
if _RE_ISSUE_REF.search(example.get("problem_statement") or ""):
return False
if _normalize_image(example.get("image_name") or "") in _EXCLUDE_IMAGES:
return False
if example.get("language") in _DROP_LANGS:
return False
if example.get("instance_id") not in _VALIDATION_PASSING:
return False
if example.get("instance_id") in _FLAKY:
return False
if example.get("instance_id") in _NO_EDIT_PASSING:
return False
if example.get("instance_id") in _RL_ALWAYSFAIL:
return False
if (example.get("repo") or "").lower() in _DROP_REPOS:
return False
return True
def prepare_data(min_confidence: float) -> Dataset:
ds = cast(Dataset, load_dataset(SOURCE_REPO, split="train"))
filtered = ds.filter(
lambda ex: _passes_filter(ex, min_confidence),
num_proc=8,
load_from_cache_file=False,
)
filtered = filtered.map(
lambda ex: {"image_name": _rewrite_image_to_prime_registry(ex["image_name"])},
num_proc=8,
load_from_cache_file=False,
)
return filtered
def _swe_card(key: str):
"""Build this dataset's card from the shared SWE card registry (swe_cards.py)."""
sys.path.insert(0, str(Path(__file__).resolve().parent))
from swe_cards import build_card
return build_card(key)
def push_card_to_hub(repo_name: str, push_to_hub: bool):
_, dataset_name = repo_name.split("/")
card = _swe_card("swe-rebench-v2-filtered-verified")
if push_to_hub:
print(f"Pushing card to `{repo_name}`")
card.push_to_hub(repo_name, repo_type="dataset")
print(f"✅ Pushed card to `{repo_name}` to HF Hub")
else:
print("ℹ️ Skipped pushing card to HF Hub. To push, use the `--push-to-hub` or `-H` flag.")
def main(repo_name: str, push_to_hub: bool, private: bool, min_confidence: float, also_report_090: bool):
print(f"⚙️ Filtering {SOURCE_REPO} (confidence >= {min_confidence})")
start_time = time.time()
dataset = prepare_data(min_confidence)
elapsed = time.time() - start_time
print(f"✅ Filtered to {len(dataset):,} rows in {elapsed:.2f} seconds")
if also_report_090 and len(dataset) < 50:
print("ℹ️ <50 rows at confidence >= 0.95; also reporting confidence >= 0.90")
start_time = time.time()
dataset_090 = prepare_data(0.90)
elapsed = time.time() - start_time
print(f"✅ At confidence >= 0.90: {len(dataset_090):,} rows in {elapsed:.2f} seconds")
if push_to_hub:
create_repo(repo_name, private=private, repo_type="dataset", exist_ok=True)
push_card_to_hub(repo_name, push_to_hub)
dataset.push_to_hub(repo_name, private=private)
for sidecar in (_NO_EDIT_PASS_PATH, _RL_ALWAYSFAIL_PATH):
upload_file(
path_or_fileobj=str(sidecar),
path_in_repo=sidecar.name,
repo_id=repo_name,
repo_type="dataset",
)
print(f"✅ Pushed dataset to https://huggingface.co/datasets/{repo_name}")
def check_write_access(org: str):
is_authed = False
try:
info = whoami()
token = info["auth"]["accessToken"]["displayName"]
for entity in info["auth"]["accessToken"]["fineGrained"]["scoped"]:
if entity["entity"]["name"] == org and "repo.write" in entity["permissions"]:
is_authed = True
except Exception:
raise ValueError("❌ You are not logged in. Please run `hf auth login` or `export HF_TOKEN=...`")
if not is_authed:
raise ValueError(f"❌ Your current token `{token}` does not have write access to `{org}`")
print(f"✅ Confirmed write access with token `{token}` to `{org}`")
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(
"--username", "-U", default="PrimeIntellect", type=str, help="The username to push the dataset to."
)
parser.add_argument(
"--dataset-name", "-D", default="SWE-rebench-V2-Filtered-Verified", type=str, help="The dataset name."
)
parser.add_argument("--dataset-private", "-p", action="store_true", help="Whether to make the dataset private.")
parser.add_argument("--push-to-hub", "-H", action="store_true", help="Whether to push the dataset to the hub.")
parser.add_argument(
"--min-confidence", "-c", default=0.95, type=float, help="Minimum llm_metadata.confidence to keep."
)
parser.add_argument(
"--also-report-090",
action="store_true",
default=True,
help="If <50 rows at the chosen confidence, also report the count at >= 0.90.",
)
args = parser.parse_args()
assert len(args.dataset_name.split("/")) == 1, "Dataset name must not include the username"
if args.push_to_hub:
check_write_access(args.username)
main(
repo_name=f"{args.username}/{args.dataset_name}",
push_to_hub=args.push_to_hub,
private=args.dataset_private,
min_confidence=args.min_confidence,
also_report_090=args.also_report_090,
)
Original Dataset Card
Snapshot of the nebius/SWE-rebench-V2
card at card-build time — see the live card for updates.
Original nebius/SWE-rebench-V2 dataset card
SWE-rebench-V2
Dataset Summary
SWE-rebench-V2 is a curated dataset of software-engineering tasks derived from real GitHub issues and pull requests. The dataset contains 32,079 samples covering Python, Go, TypeScript, JavaScript, Rust, Java, PHP, Kotlin, Julia, Elixir, Scala, Swift, Dart, C, C++, C#, R, Clojure, OCaml, and Lua.
For log parser functions, base Dockerfiles, and the prompts used, please see https://github.com/SWE-rebench/SWE-rebench-V2
The detailed technical report is available at “SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale”.
Quick Start
from datasets import load_dataset
ds = load_dataset("nebius/SWE-rebench-V2", split="train")
print(len(ds)) # 32079
Dataset Structure
| Field | Type | Description |
|---|---|---|
instance_id |
string |
Unique identifier for the instance |
repo |
string |
GitHub repository in owner/repo format |
base_commit |
string |
Git commit SHA of the base before the fix |
patch |
string |
The gold patch that resolves the issue |
test_patch |
string |
Diff adding or modifying tests that verify the fix |
problem_statement |
string |
Issue description the patch addresses |
pr_description |
string |
Full pull request description |
created_at |
int64 |
Unix timestamp (milliseconds) of the issue/PR creation |
image_name |
string |
Docker image name used for the evaluation environment |
language |
string |
Primary programming language of the repository |
interface |
string |
Description of the code interface changed by the patch |
license |
string |
SPDX license identifier of the repository |
FAIL_TO_PASS |
list[string] |
Test IDs that fail before the patch and pass after |
PASS_TO_PASS |
list[string] |
Test IDs that pass both before and after the patch |
install_config |
struct |
Configuration needed to reproduce the test environment |
meta |
struct |
Metadata and LLM-generated quality annotations |
License
The dataset is licensed under the Creative Commons Attribution 4.0 license. However, please respect the license of each specific repository on which a particular instance is based. To facilitate this, the license of each repository at the time of the commit is provided for every instance.
Citation
@misc{badertdinov2026swerebenchv2languageagnosticswe,
title={SWE-rebench V2: Language-Agnostic SWE Task Collection at Scale},
author={Ibragim Badertdinov and Maksim Nekrashevich and Anton Shevtsov and Alexander Golubev},
year={2026},
eprint={2602.23866},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2602.23866},
}
</details>
- Downloads last month
- 65