Dataset Viewer
Auto-converted to Parquet Duplicate
instance_id
stringlengths
15
54
repo
stringclasses
975 values
base_commit
stringlengths
40
40
patch
stringlengths
350
410k
test_patch
stringlengths
300
265k
problem_statement
stringlengths
0
131k
hints_text
stringlengths
0
65.7k
created_at
stringlengths
20
24
version
stringclasses
1 value
FAIL_TO_PASS
listlengths
1
196
PASS_TO_PASS
listlengths
0
282
dockerfile
stringlengths
537
1.53k
environment
dict
0xERR0R__blocky-PR-1940
0xERR0R/blocky
71c39fc132955e04be167307396a85c6be30a3fe
diff --git a/util/http.go b/util/http.go index 0000000..ee5901074ec2f161a782dc5e56822c972a2186ba 100644 --- a/util/http.go +++ b/util/http.go @@ -4,6 +4,7 @@ import ( "fmt" "net" "net/http" + "strings" ) //nolint:gochecknoglobals @@ -49,15 +50,41 @@ func DefaultHTTPTransport() *http.Transport { } } +// s...
diff --git a/util/http_test.go b/util/http_test.go index 0000000..0b10b74adf48dc3091d15b815d5b8df9ad09925f 100644 --- a/util/http_test.go +++ b/util/http_test.go @@ -66,6 +66,77 @@ var _ = Describe("HTTP Util", func() { Expect(HTTPClientIP(r)).Should(Equal(ip)) }) + + It("extracts the first IP from comma-sepa...
2026-08-18T16:31:47.960Z
1.0
[ "HTTP Util HTTPClientIP [It] extracts the first IP from comma-separated X-Forwarded-For header", "HTTP Util HTTPClientIP [It] extracts the first IP from X-Forwarded-For with extra spaces", "HTTP Util HTTPClientIP [It] handles IPv6 addresses in X-Forwarded-For", "HTTP Util HTTPClientIP [It] falls back to Remot...
[]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.25 ENV PATH=/usr/local/go-versions/1.25/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xERR0R/blocky.git ...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.25", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1", "go build ./... 2>&1" ], "test_command": "cd /workspace/repo && go test -v -count=1 ./util/..." }
0xERR0R__blocky-PR-1941
0xERR0R/blocky
e199445bcde148dc9c12837e1e97a79a6b8ba633
diff --git a/util/http.go b/util/http.go index 0000000..b08469a83b950f492b0820c6e93dc70385821ff6 100644 --- a/util/http.go +++ b/util/http.go @@ -65,10 +65,93 @@ func splitCommaSeparated(s string) []string { return result } +// parseForwardedHeader parses RFC 7239 Forwarded header and extracts the client IP. +// R...
diff --git a/util/http_test.go b/util/http_test.go index 0000000..2381a816c6da8e1b371c01438cf2888ba870e743 100644 --- a/util/http_test.go +++ b/util/http_test.go @@ -137,6 +137,124 @@ var _ = Describe("HTTP Util", func() { Expect(HTTPClientIP(r)).Should(Equal(remoteIP)) }) + + // RFC 7239 Forwarded header tes...
2026-08-18T16:31:47.963Z
1.0
[ "extracts IP from simple Forwarded header with IPv4", "extracts IP from Forwarded header with IPv4 and port", "extracts IP from Forwarded header with IPv6 in brackets", "extracts IP from Forwarded header with IPv6 and port", "extracts IP from Forwarded header with multiple parameters", "extracts first IP ...
[]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.25 ENV PATH=/usr/local/go-versions/1.25/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xERR0R/blocky.git ...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.25", "package_manager": "gomod", "install_commands": [ "cd /workspace/repo && go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./util/..." }
0xERR0R__blocky-PR-2016
0xERR0R/blocky
b4a1d54aa8456d721a585368f85a4a641e73948b
diff --git a/config/blocking.go b/config/blocking.go index 0000000..fbb7e9d651c499f43220530e40d7f03d8363f6c0 100644 --- a/config/blocking.go +++ b/config/blocking.go @@ -1,6 +1,11 @@ package config import ( + "fmt" + "maps" + "slices" + "strings" + . "github.com/0xERR0R/blocky/config/migration" "github.com/0xER...
diff --git a/config/blocking_test.go b/config/blocking_test.go index 0000000..c41bb0b54fbba8edb9d199e8eed1e80062dfec73 100644 --- a/config/blocking_test.go +++ b/config/blocking_test.go @@ -86,4 +86,32 @@ var _ = Describe("BlockingConfig", func() { Expect(cfg.Denylists).Should(Equal(*cfg.Deprecated.BlackLists)) ...
2026-08-18T16:31:47.964Z
1.0
[ "TestConfig" ]
[]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.25 ENV PATH=/usr/local/go-versions/1.25/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xERR0R/blocky.git ...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.25", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1", "go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./config/..." }
0xERR0R__blocky-PR-2017
0xERR0R/blocky
fd6f9179d0b83ba6f7f52b76dda78cafdf16997a
diff --git a/resolver/dnssec/nsec.go b/resolver/dnssec/nsec.go index 0000000..3cafe48a9c5524b23f44de32b34c7a2d3c3936ed 100644 --- a/resolver/dnssec/nsec.go +++ b/resolver/dnssec/nsec.go @@ -4,6 +4,7 @@ package dnssec import ( "slices" + "strings" "github.com/0xERR0R/blocky/util" @@ -74,28 +75,52 @@ func (v *...
diff --git a/e2e/metrics_test.go b/e2e/metrics_test.go index 0000000..360564f0b8eaac2454c0052251a658cb425141bf 100644 --- a/e2e/metrics_test.go +++ b/e2e/metrics_test.go @@ -475,7 +475,7 @@ var _ = Describe("Metrics functional tests", func() { By("verifying prefetch metrics are incremented", func() { Eventuall...
2026-08-18T16:31:47.966Z
1.0
[ "TestDNSSEC" ]
[]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.25 ENV PATH=/usr/local/go-versions/1.25/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xERR0R/blocky.git ...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.25", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1 | tail -30", "go mod verify 2>&1 && echo 'All modules verified successfully'", "go build ./... 2>&1" ], "test_command": "cd /workspace/repo && go test -v -c...
0xPolygon__bor-PR-1069
0xPolygon/bor
11969b02123b6214541c8b9ad8b4c32b722d7c5f
diff --git a/core/vm/contracts.go b/core/vm/contracts.go index 00e1505d2b47b02379e97729f71e143460ce636a..9e907f97b26bd5aa4bb903e92c0c0375d71934de 100644 --- a/core/vm/contracts.go +++ b/core/vm/contracts.go @@ -30,6 +30,7 @@ import ( "github.com/ethereum/go-ethereum/crypto/bls12381" "github.com/ethereum/go-ethereum...
diff --git a/core/vm/contracts_test.go b/core/vm/contracts_test.go index a886a4e520730e5ebbcecb941a9ecdc31156e6a8..021dfe48ebe951670899d55bfb3129a0bb566e36 100644 --- a/core/vm/contracts_test.go +++ b/core/vm/contracts_test.go @@ -67,6 +67,7 @@ var allPrecompiles = map[common.Address]PrecompiledContract{ common.Bytes...
PR #1069: EIP7212 / PIP27
PR Title: EIP7212 / PIP27 PR Description: # Description Pulls changes from PR#27540, introduces [EIP-7212](https://github.com/ethereum/go-ethereum/pull/27540) or [PIP-27](https://forum.polygon.technology/t/pip-27-precompiled-for-secp256r1-curve-support/13049). This PR currently just cherry-pick the commits from the...
2023-11-03T04:08:17Z
1.0
[ "TestJumpDestAnalysis", "TestPrecompiledModExp", "TestPrecompiledBLS12381MapG2", "TestPrecompiledPointEvaluation", "TestPrecompiledBLS12381G1AddFail", "TestPrecompiledBLS12381G1MulFail", "TestPrecompiledBLS12381G1MultiExpFail", "TestPrecompiledBLS12381G2AddFail", "TestPrecompiledBLS12381G2MulFail", ...
[ "TestDefaults", "TestEVM", "TestExecute", "TestCall", "TestBlockhash", "TestColdAccountAccessCost", "TestRuntimeJSTracer", "TestJSTracerCreateTx", "ExampleExecute" ]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /workspace/repo \ && cd /workspace/repo \ && git checkout 11969b02123b6214541c8b9ad8b4c32b722d7c5f WORKDIR /wor...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.22", "package_manager": "gomod", "install_commands": [ "cd /workspace/repo && go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./core/vm/..." }
0xPolygon__bor-PR-1136
0xPolygon/bor
16a8d85f2e94f7d51f2c1b4d7769a42e57d97e57
diff --git a/consensus/bor/bor.go b/consensus/bor/bor.go index 828c7a8a4ce42d39b6a730e8c5fcac14fae3e15d..24590ea5167cc464d859c0b111905fea3467235e 100644 --- a/consensus/bor/bor.go +++ b/consensus/bor/bor.go @@ -883,10 +883,6 @@ func (c *Bor) changeContractCodeIfNeeded(headerNumber uint64, state *state.State for add...
diff --git a/consensus/bor/bor_test.go b/consensus/bor/bor_test.go index 621f2295293d416a74954538800cd1c013bd3e30..52c93c77ad1b87aeb6959a9522eb39e2b70da75b 100644 --- a/consensus/bor/bor_test.go +++ b/consensus/bor/bor_test.go @@ -40,12 +40,6 @@ func TestGenesisContractChange(t *testing.T) { "balance": "0x1000",...
### Issue #1124: Consistent # Description Includes changes to make HF naming consistent # Checklist - [X] I have added at least 2 reviewer or the whole pos-v1 team - [X] I have added sufficient documentation in code - [X] I will be resolving comments - if any - by pushing each fix in a separate commit and l...
PR Title: Revert "Consistent" PR Description: Reverts maticnetwork/bor#1124 Files changed: 18 Additions: 50, Deletions: 704
2024-01-19T11:50:09Z
1.0
[ "TestGenesisContractChange", "TestGetSignerSuccessionNumber_SignerIndexIsSmaller", "TestRandomAddresses" ]
[ "TestEncodeSigHeaderJaipur", "TestGetSignerSuccessionNumber_ProposerIsSigner", "TestGetSignerSuccessionNumber_SignerIndexIsLarger", "TestGetSignerSuccessionNumber_ProposerNotFound", "TestGetSignerSuccessionNumber_SignerNotFound", "TestFlagsWithoutConfig", "TestFlagsWithConfig", "TestFlagsWithConfigAnd...
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /workspace/repo \ && cd /workspace/repo \ && git checkout 16a8d85f2e94f7d51f2c1b4d7769a42e57d97e57 WORKDIR /wor...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.22", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1 | tail -30", "cd /workspace/repo && go build ./... 2>&1 | tail -50" ], "test_command": "go test -v -count=1 ./consensus/bor/... ./core/vm/... ./core/vm/testdata...
0xPolygon__bor-PR-1393
0xPolygon/bor
135878f611bb285795b8d42dfefb71ea545c3e9a
diff --git a/core/state/statedb.go b/core/state/statedb.go index 615ebfbce59b645d65b2c7618a9a73a39a7d5cf4..08dbc44538534c26cab64b0210ed5e44264aa1a2 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -854,22 +854,28 @@ func (s *StateDB) SetState(addr common.Address, key, value common.Hash) { // storage. ...
diff --git a/internal/ethapi/api_test.go b/internal/ethapi/api_test.go index 59d389217406de5595b461bad0ee43ef80c799fa..a6d620b330f289e2bfc849c4d6cc9b76e39f988e 100644 --- a/internal/ethapi/api_test.go +++ b/internal/ethapi/api_test.go @@ -855,15 +855,24 @@ func TestEstimateGas(t *testing.T) { func TestCall(t *testin...
PR #1393: core/state: fix SetStorage override behavior (#30185)
PR Title: core/state: fix SetStorage override behavior (#30185) PR Description: This pull request fixes the broken feature where the entire storage set is overridden. Originally, the storage set override was achieved by marking the associated account as deleted, preventing access to the storage slot on disk. Howeve...
2024-12-23T19:16:55Z
1.0
[ "TestCall" ]
[ "TestTransaction_RoundTripRpcJSON", "TestTransactionBlobTx", "TestEstimateGas", "TestSignTransaction", "TestRPCMarshalBlock", "TestRPCGetBlockOrHeader", "TestRPCGetTransactionReceipt", "TestRPCGetTransactionReceiptsByBlock", "TestSetFeeDefaults" ]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /workspace/repo \ && cd /workspace/repo \ && git checkout 135878f611bb285795b8d42dfefb71ea545c3e9a WORKDIR /wor...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.22", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1 | tail -20", "go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./internal/ethapi/..." }
0xPolygon__bor-PR-1457
0xPolygon/bor
be9ac0ce62e08f13b8762949c4daa2b073ec7f54
diff --git a/cmd/utils/bor_flags.go b/cmd/utils/bor_flags.go index 3881817bf6533f435787909f2ad2e6669d9b7bf6..7ff4115b7776f4c3cd1c494eb42c6a8545ad75e0 100644 --- a/cmd/utils/bor_flags.go +++ b/cmd/utils/bor_flags.go @@ -2,6 +2,7 @@ package utils import ( "os" + "time" "github.com/urfave/cli/v2" @@ -22,6 +23,1...
diff --git a/consensus/bor/heimdall/client_test.go b/consensus/bor/heimdall/client_test.go index a52755279915dbb750d129a80eec4188b58a857e..d2fb06df72f5be51fa54ca482d3aa1fb5097b531 100644 --- a/consensus/bor/heimdall/client_test.go +++ b/consensus/bor/heimdall/client_test.go @@ -143,7 +143,7 @@ func TestFetchCheckpointF...
### Issue #1455: Make heimdall timeout configurable # Rationale There's a hard coded timeout of 5s in bor when we fetch data from heimdall via api. John suggested to make it configurable as public endpoints might take more time (although it's not recommended to use public endpoints). https://github.com/maticnetwork...
PR Title: Include Heimdall Timeout PR Description: # Description Implementation for #1455 . Including configurable timeout for Heimdall. You can pass it via flag or via `config.toml`, like in the example below: ``` [heimdall] url = "http://localhost:1317" timeout = "30s" # <----------here "bor.without"...
2025-02-19T20:59:06Z
1.0
[ "TestFetchCheckpointFromMockHeimdall", "TestFetchMilestoneFromMockHeimdall", "TestFetchShutdown", "TestContext", "TestSpanURL", "TestStateSyncURL" ]
[ "TestGetCurrentValidatorsByBlockNrOrHash", "TestGetCurrentValidatorsByBlockNrOrHash/Successful_retrieval_of_validators", "TestGetCurrentValidatorsByBlockNrOrHash/Successful_retrieval_of_validators_without_id" ]
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /workspace/repo \ && cd /workspace/repo \ && git checkout be9ac0ce62e08f13b8762949c4daa2b073ec7f54 WORKDIR /wor...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.22", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1 | tail -30", "go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./consensus/bor/heimdall/..." }
0xPolygon__bor-PR-1947
0xPolygon/bor
85b5ef707e3dfce313586d8dae333dbdffbc8ea3
diff --git a/.github/workflows/kurtosis-e2e.yml b/.github/workflows/kurtosis-e2e.yml index e044ca67cf97a4de67d45e4c2820d9a51b8218f4..2430355b10ace7f21571277b355929b1fd55c154 100644 --- a/.github/workflows/kurtosis-e2e.yml +++ b/.github/workflows/kurtosis-e2e.yml @@ -20,31 +20,15 @@ env: jobs: e2e-tests: - runs...
diff --git a/consensus/bor/bor_test.go b/consensus/bor/bor_test.go index ef7ed278c258afecc4d4e1f4243a50a4588da39e..c2ceedda6e93aae46611031f7bcf2948e2bf2293 100644 --- a/consensus/bor/bor_test.go +++ b/consensus/bor/bor_test.go @@ -50,7 +50,7 @@ func (s *fakeSpanner) CommitSpan(ctx context.Context, _ borTypes.Span, _ []...
### Issue #1941: V2.5.6 candidate # Description V2.5.6 candidate # Changes - [ ] Bugfix (non-breaking change that solves an issue) - [ ] Hotfix (change that solves an urgent issue, and requires immediate attention) - [x] New feature (non-breaking change that adds functionality) - [ ] Breaking change (change ...
PR Title: Revert "V2.5.6 candidate" PR Description: Reverts 0xPolygon/bor#1941 Files changed: 15 Additions: 410, Deletions: 661
2025-12-18T07:19:31Z
1.0
[ "TestGetCurrentValidatorsByBlockNrOrHash", "TestGetCurrentProducers", "TestGetCurrentValidators", "TestGetCurrentValidatorSet", "TestGetSignerFromBridgeAddress", "TestGetVoteOnHash" ]
[ "TestFetchCheckpointFromMockHeimdall", "TestFetchMilestoneFromMockHeimdall", "TestFetchShutdown", "TestContext", "TestSpanURL", "TestStateSyncURL", "TestIterativeStateSyncIndividualByPath", "TestIterativeStateSyncBatchedByPath", "TestIterativeDelayedStateSync", "TestIterativeRandomStateSyncIndivid...
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.25 ENV PATH=/usr/local/go-versions/1.25/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.25", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1", "go build ./... 2>&1" ], "test_command": "go test -v -count=1 ./consensus/bor/... ./core/state/..." }
0xPolygon__bor-PR-2080
0xPolygon/bor
ed845075c8609cc0e8e0904135f03d13ab95fa0c
diff --git a/consensus/bor/api.go b/consensus/bor/api.go index d54cc6d78994089f34dd606a239efe32089c1162..9176fbe7ea88aaa4539a470bb3f103d25fdbba51 100644 --- a/consensus/bor/api.go +++ b/consensus/bor/api.go @@ -27,8 +27,8 @@ var ( // rootHashCacheEntry is an entry in the root hash cache type rootHashCacheEntry stru...
diff --git a/consensus/bor/api_reorg_test.go b/consensus/bor/api_reorg_test.go index 01ab8c1b091ff0494333b42da6cd31f893d0b723..62282b0ce92697dcf8e6db59d7fc6824cd0e223c 100644 --- a/consensus/bor/api_reorg_test.go +++ b/consensus/bor/api_reorg_test.go @@ -240,7 +240,7 @@ func TestGetRootHashCacheInvalidatedOnReorg(t *te...
### Issue #1950: Various improvements # Description In this PR, we implement some improvements to the bor client: 1. Stable communication with heimdall via gRPC and better errors/shutdown handling (# 12) 2. Fix checkpoint root computation (# 18) 3. Fix milestone whitelist concurrency bug (# 22) 4. Fix bor che...
PR Title: fix root hash calculation during reorgs PR Description: # Description Fix root hash calculation during bor reorgs by always checking the end block's hash instead of current header. More context here: #1950 # Changes - [x] Bugfix (non-breaking change that solves an issue) - [ ] Hotfix (change th...
2026-02-24T09:51:54Z
1.0
[ "TestAPI_GetRootHash_StableWhenTipAdvancesPastEnd" ]
[ "TestAPI_GetRootHash_Cached", "TestAPI_GetRootHash_Valid", "TestGetRootHash_PureChainsStable", "TestVerifyCascadingFields_Genesis", "TestVerifyCascadingFields_EIP1559", "TestVerifySeal_BlockTooSoon", "TestVerifySeal_WrongDifficulty", "TestVerifyCascadingFields_SprintStartValidatorCheck", "TestAPI_Ge...
FROM go-bench-base:2026-08-26 # Set up Go environment ENV GOPROXY=https://goproxy.cn,direct ENV GOTOOLCHAIN=auto # Switch to required Go version ENV GOROOT=/usr/local/go-versions/1.26 ENV PATH=/usr/local/go-versions/1.26/bin:$PATH # Clone repository at base commit RUN git clone https://github.com/0xPolygon/bor.git /...
{ "base_image": "go-bench-base:2026-08-26", "node_version": "1.26", "package_manager": "gomod", "install_commands": [ "go mod download 2>&1 | tail -20", "go build ./... 2>&1 | tail -50", "go build ./... 2>&1; echo \"EXIT_CODE=$?\"" ], "test_command": "cd /workspace/repo && go test -vet=off -v -c...
End of preview. Expand in Data Studio

SWE-bench 数据集交付包(TS + Go)

完整交付包,包含 TypeScript 与 Go 两套 SWE-bench 格式数据集、基础镜像构建资产(写死版本 Dockerfile + 构建脚本 + 构建清单)、评测消费脚本与全套文档。

目录结构

delivery/
├── data/
│   ├── ts_swebench.jsonl        # TS 数据集:1,013 条(312 仓库)
│   └── go_swebench.jsonl        # Go 数据集:5,047 条(975 仓库)
├── docker/
│   ├── ts/                      # TS 基础镜像资产
│   │   ├── Dockerfile.ts-bench-base
│   │   ├── build-base.sh
│   │   └── MANIFEST-2026-08-19.json
│   └── go/                      # Go 基础镜像资产
│       ├── Dockerfile.go-base
│       ├── build-base-go.sh
│       └── MANIFEST-2026-08-26.json
├── evaluator/
│   └── consume-swebench.js      # 评测消费脚本(TS)
├── README.md                    # 本文件
├── 数据说明.md                   # 数据集 schema / 统计 / 质量校验
└── 试用报告.md                   # 试用与验证过程、结果

快速使用

1. 构建基础镜像(消费方本地构建,无需推送)

# TS
cd docker/ts && bash build-base.sh 2026-08-19
# Go
cd docker/go && bash build-base-go.sh 2026-08-26

构建产物:本地镜像 ts-bench-base:2026-08-19(3.69GB)与 go-bench-base:2026-08-26(3.79GB),digest 见对应 MANIFEST。

2. 评测

方式 A:标准 SWE-bench harness 每条实例的 dockerfile 字段直接使用(TS 为 FROM ts-bench-base:2026-08-19 + RUN n <Node主版本>;Go 为 FROM go-bench-base:2026-08-26 + ENV GOROOT/PATH=<go版本>),版本离线切换。

方式 B:自带评测脚本(TS)

cd evaluator
node consume-swebench.js --input ../data/ts_swebench.jsonl --output-dir ./results --workers 4

3. 数据格式

标准 SWE-bench 格式,每条实例 13 个顶层字段: instance_id / repo / base_commit / problem_statement / hints_text / patch / test_patch / FAIL_TO_PASS / PASS_TO_PASS / version / created_at / dockerfile / environment

environment 为 5 字段:base_image / install_commands / node_version / package_manager / test_command。

注:Go 数据的 node_version 字段实际记录 Go 版本(1.22/1.23/1.24/1.25/1.26);package_manager 统一为 gomod。

关键事实

项 TS Go
实例数 1,013 5,047
仓库数 312 975
F2P 用例总数 4,480 89,635
基础镜像 ts-bench-base:2026-08-19 go-bench-base:2026-08-26
运行版本 Node 8/14/16/18/20/22/23/24 Go 1.22-1.26
数据质量校验 全部通过 全部通过
Downloads last month
77