You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

SWE-bench ArkTS

SWE-bench-style tasks mined from merged ArkTS pull requests in HarmonyOS/OpenHarmony projects. The dataset has two evaluator-specific splits and 20 tasks in total.

Split Tasks Oracle
failed2pass 13 Hvigor case-level unit tests: 45 FAIL_TO_PASS, 7,547 PASS_TO_PASS, no regressions
compile2pass 7 ArkTS compiler/API transitions: 5 diagnostic-removal tasks and 2 SDK/toolchain migrations

Loading

from datasets import load_dataset

failed2pass = load_dataset("hreyulog/swe-bench-arkts", split="failed2pass")
compile2pass = load_dataset("hreyulog/swe-bench-arkts", split="compile2pass")

Common SWE-bench fields

Every row includes repo, instance_id, base_commit, patch, test_patch, problem_statement, hints_text, created_at, version, FAIL_TO_PASS, PASS_TO_PASS, and environment_setup_commit.

The record format follows SWE-bench conventions, but execution requires an ArkTS/Hvigor evaluator rather than the Python-specific upstream SWE-bench Docker specifications.

failed2pass

These 13 tasks are strict case-level unit-test transitions. Base and patch use the same test patch, SDK, Hvigor toolchain, module, and test inventory. A task is accepted only when at least one concrete test case fails on base and passes on patch, the patched suite passes, and no selected passing case regresses.

Use FAIL_TO_PASS and PASS_TO_PASS as the evaluation oracle. The actual SDK API and Hvigor metadata are stored in validation_environment.

compile2pass

These 7 tasks use compiler/API oracles exposed through BUILD_TO_PASS, CONFIG_TO_PASS, and DIAGNOSTIC_TO_PASS:

  • api_code_adaptation (5 tasks): the designated ArkTS diagnostics must disappear under the exact target SDK/Hvigor environment. Unrelated residual diagnostics are allowed and are not part of the oracle.
  • sdk_toolchain_migration (2 tasks): the required SDK configuration migration must be present and the patched project must complete ArkTS compilation in the target environment.

compile_oracle preserves the detailed structured oracle as JSON. base_sdk_api, target_sdk_api, hvigor_version, and swe_type_variant select the evaluator environment and mode.

Validation and audit

All 20 rows come from confirmed merged pull requests, have reachable full-history commits, modify non-test .ets implementation code, contain non-empty gold patches, and replay from base_commit. The 13 failed2pass tasks were validated on 2026-08-03; the 7 compile2pass tasks were validated on 2026-08-09 with exact local OpenHarmony SDK versions and pinned Hvigor toolchains.

See VALIDATION.md and the files under audit/ for details. Machine-local repository, SDK, executable, cache, and signing paths are excluded from published records.

Licensing

Upstream repositories may use different licenses. Per-row provenance fields are retained, and unverified repository licenses are marked NOASSERTION; therefore the dataset-level license is other.

Downloads last month
35