Datasets:
Download instances/api-openapi-generator-24748/evaluation/contract.json from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 6.98 kB
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/api-openapi-generator-24748/evaluation/contract.json
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/instances/api-openapi-generator-24748/evaluation/contract.json
-
curl -L -o contract.json https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/instances/api-openapi-generator-24748/evaluation/contract.json
6.98 kB
| { | |
| "schema_version": 1, | |
| "instance_id": "api-openapi-generator-24748", | |
| "kind": "command_contract", | |
| "network": "bridge", | |
| "repeat_count": 3, | |
| "required_regression_worlds": [ | |
| "all_buggy", | |
| "all_fixed" | |
| ], | |
| "test_files": [ | |
| { | |
| "path": "tests/files/prepare_ameba_snapshot.sh", | |
| "sha256": "eac2fada09ab5b363d100854a6193d0d18960b48dc23c7aeeab4d57d8366275b", | |
| "bytes": 1242, | |
| "kind": "evaluation_file", | |
| "original_path": "prepare_ameba_snapshot.sh", | |
| "source_sha256": "318d00ab585adb869df0e5a8cdacb458002aff6d2603cbc5c45cadf0ac326c53", | |
| "release_projection": "Private fallback path replaced by explicit external dependency path." | |
| }, | |
| { | |
| "path": "tests/files/run_generator_p2p.sh", | |
| "sha256": "6cbc186e519a918ad7e5d864e6a2cd7ab408de172f3beba692550cdac737af6d", | |
| "bytes": 809, | |
| "kind": "evaluation_file", | |
| "original_path": "run_generator_p2p.sh" | |
| }, | |
| { | |
| "path": "tests/files/run_generator_probe.sh", | |
| "sha256": "778487d63a3f741f60e8960384f933bb89755ddf5477c86e6880d86138e46f1e", | |
| "bytes": 816, | |
| "kind": "evaluation_file", | |
| "original_path": "run_generator_probe.sh" | |
| } | |
| ], | |
| "specifications": [], | |
| "commands": [ | |
| { | |
| "repository": "openapi_generator", | |
| "container_path": "/testbed/OpenAPITools/openapi-generator", | |
| "setup_command": "script=/crossrepo-patches/prepare_ameba_snapshot.sh; test -x /opt/crossrepo-tests/prepare_ameba_snapshot.sh && script=/opt/crossrepo-tests/prepare_ameba_snapshot.sh; $script", | |
| "environment": {}, | |
| "test_cwd": null, | |
| "evaluation_setup_command": "script=/crossrepo-patches/prepare_ameba_snapshot.sh; test -x /opt/crossrepo-tests/prepare_ameba_snapshot.sh && script=/opt/crossrepo-tests/prepare_ameba_snapshot.sh; $script", | |
| "evaluation_setup_cwd": null, | |
| "evaluation_setup_order": 2, | |
| "evaluation_ready_command": null, | |
| "evaluation_teardown_command": null, | |
| "evaluation_config": null, | |
| "fail_to_pass": "script=/crossrepo-patches/run_generator_probe.sh; test -x /opt/crossrepo-tests/run_generator_probe.sh && script=/opt/crossrepo-tests/run_generator_probe.sh; $script", | |
| "pass_to_pass": "script=/crossrepo-patches/run_generator_p2p.sh; test -x /opt/crossrepo-tests/run_generator_p2p.sh && script=/opt/crossrepo-tests/run_generator_p2p.sh; $script" | |
| }, | |
| { | |
| "repository": "crystal", | |
| "container_path": "/testbed/crystal-lang/crystal", | |
| "setup_command": "set -e; crystal_root=/repos/crystal; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; cd $crystal_root; kind=base; git diff --quiet -- src || kind=fixed; mkdir -p .build /cache/crystal-builds; if [ -x /cache/crystal-builds/$kind ]; then cp /cache/crystal-builds/$kind .build/crystal; else make crystal -j2 && cp .build/crystal /cache/crystal-builds/$kind; fi", | |
| "environment": {}, | |
| "test_cwd": null, | |
| "evaluation_setup_command": "set -e; crystal_root=/repos/crystal; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; cd $crystal_root; kind=base; git diff --quiet -- src || kind=fixed; mkdir -p .build /cache/crystal-builds; if [ -x /cache/crystal-builds/$kind ]; then cp /cache/crystal-builds/$kind .build/crystal; else make crystal -j2 && cp .build/crystal /cache/crystal-builds/$kind; fi", | |
| "evaluation_setup_cwd": null, | |
| "evaluation_setup_order": 0, | |
| "evaluation_ready_command": null, | |
| "evaluation_teardown_command": null, | |
| "evaluation_config": null, | |
| "fail_to_pass": "crystal_root=/repos/crystal; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; cd $crystal_root; CRYSTAL_PATH=$crystal_root/src .build/crystal spec spec/compiler/lexer/lexer_string_array_spec.cr spec/compiler/parser/parser_spec.cr spec/compiler/formatter/formatter_spec.cr", | |
| "pass_to_pass": "crystal_root=/repos/crystal; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; cd $crystal_root; CRYSTAL_PATH=$crystal_root/src .build/crystal spec spec/compiler/lexer/lexer_comment_spec.cr" | |
| }, | |
| { | |
| "repository": "ameba", | |
| "container_path": "/testbed/crystal-ameba/ameba", | |
| "setup_command": "crystal_root=/repos/crystal; ameba_root=/repos/ameba; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; test -d /testbed/crystal-ameba/ameba && ameba_root=/testbed/crystal-ameba/ameba; cd $ameba_root; CRYSTAL_PATH=$crystal_root/src:lib PATH=$crystal_root/.build:$PATH shards install --ignore-crystal-version", | |
| "environment": {}, | |
| "test_cwd": null, | |
| "evaluation_setup_command": "crystal_root=/repos/crystal; ameba_root=/repos/ameba; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; test -d /testbed/crystal-ameba/ameba && ameba_root=/testbed/crystal-ameba/ameba; cd $ameba_root; CRYSTAL_PATH=$crystal_root/src:lib PATH=$crystal_root/.build:$PATH shards install --ignore-crystal-version", | |
| "evaluation_setup_cwd": null, | |
| "evaluation_setup_order": 1, | |
| "evaluation_ready_command": null, | |
| "evaluation_teardown_command": null, | |
| "evaluation_config": null, | |
| "fail_to_pass": "crystal_root=/repos/crystal; ameba_root=/repos/ameba; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; test -d /testbed/crystal-ameba/ameba && ameba_root=/testbed/crystal-ameba/ameba; cd $ameba_root; CRYSTAL_PATH=$crystal_root/src:lib PATH=$crystal_root/.build:$PATH crystal spec spec/ameba/tokenizer_spec.cr", | |
| "pass_to_pass": "crystal_root=/repos/crystal; ameba_root=/repos/ameba; test -d /testbed/crystal-lang/crystal && crystal_root=/testbed/crystal-lang/crystal; test -d /testbed/crystal-ameba/ameba && ameba_root=/testbed/crystal-ameba/ameba; cd $ameba_root; CRYSTAL_PATH=$crystal_root/src:lib PATH=$crystal_root/.build:$PATH crystal spec spec/ameba/issue_spec.cr" | |
| } | |
| ], | |
| "execution_policy": { | |
| "test_patches": "Apply in listed order after candidate patches, in an isolated evaluator workspace.", | |
| "commands": "Complete source setup in setup_order, then evaluator setup in evaluation_setup_order, ready checks, pass_to_pass and fail_to_pass commands; teardown in reverse evaluator setup order.", | |
| "world_placeholder": "A world labels the prepared source state for both regression and behavior commands: all_buggy for base, all_fixed for gold, candidate for submitted patches.", | |
| "success": "All required behavioral and regression tests pass; infrastructure failures are not behavioral outcomes.", | |
| "isolation": "The agent receives base sources and statement only; evaluation and reference materials remain outside its workspace." | |
| }, | |
| "availability": { | |
| "test_materials": "included", | |
| "portable_environment": "pending", | |
| "dependencies": "Some commands require external toolchains or dependency assets; complete portable recipes are a follow-up release." | |
| } | |
| } | |