Datasets:
Download data/schema.json from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 4.76 kB
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/data/schema.json
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/data/schema.json
-
curl -L -o schema.json https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/data/schema.json
4.76 kB
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "title": "CrossSWE task record v1", | |
| "description": "Each JSONL line and instances/<canonical-id>/task.json follows this schema. Canonical IDs use category-project-primaryPR. original_instance_id and data/instance-id-map.tsv retain frozen source IDs. Artifact paths are relative to the task directory; licensing notices use release-relative paths.", | |
| "type": "object", | |
| "required": [ | |
| "schema_version", | |
| "instance_id", | |
| "ordinal", | |
| "domain", | |
| "problem_statement", | |
| "repositories", | |
| "provenance", | |
| "evaluation", | |
| "artifacts", | |
| "original_instance_id", | |
| "naming" | |
| ], | |
| "properties": { | |
| "schema_version": { | |
| "const": 1 | |
| }, | |
| "instance_id": { | |
| "type": "string", | |
| "pattern": "^[a-z]+-[a-z0-9]+(?:-[a-z0-9]+)*-[1-9][0-9]*$" | |
| }, | |
| "ordinal": { | |
| "type": "integer", | |
| "minimum": 1, | |
| "maximum": 171 | |
| }, | |
| "domain": { | |
| "type": "string" | |
| }, | |
| "problem_statement": { | |
| "$ref": "#/definitions/artifact" | |
| }, | |
| "provenance": { | |
| "$ref": "#/definitions/artifact" | |
| }, | |
| "evaluation": { | |
| "$ref": "#/definitions/artifact" | |
| }, | |
| "repositories": { | |
| "type": "array", | |
| "minItems": 2, | |
| "items": { | |
| "$ref": "#/definitions/repository" | |
| } | |
| }, | |
| "artifacts": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/artifact" | |
| } | |
| }, | |
| "original_instance_id": { | |
| "type": "string", | |
| "pattern": "^[A-Za-z0-9_.-]+$" | |
| }, | |
| "naming": { | |
| "type": "object", | |
| "required": [ | |
| "category", | |
| "primary_repository", | |
| "primary_pr_number", | |
| "primary_pr_url" | |
| ], | |
| "properties": { | |
| "category": { | |
| "type": "string", | |
| "enum": [ | |
| "api", | |
| "backend", | |
| "buildpkg", | |
| "cloudnative", | |
| "data", | |
| "database", | |
| "mcp", | |
| "ml", | |
| "networking", | |
| "observability", | |
| "runtime", | |
| "security", | |
| "toolchain", | |
| "web" | |
| ] | |
| }, | |
| "primary_repository": { | |
| "type": "string", | |
| "pattern": "^[^/]+/[^/]+$" | |
| }, | |
| "primary_pr_number": { | |
| "type": "integer", | |
| "minimum": 1 | |
| }, | |
| "primary_pr_url": { | |
| "type": "string", | |
| "pattern": "^https://github.com/[^/]+/[^/]+/pull/[1-9][0-9]*$" | |
| } | |
| }, | |
| "additionalProperties": false | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "definitions": { | |
| "artifact": { | |
| "type": "object", | |
| "required": [ | |
| "path", | |
| "sha256", | |
| "bytes", | |
| "kind" | |
| ], | |
| "properties": { | |
| "path": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "sha256": { | |
| "type": "string", | |
| "pattern": "^[0-9a-f]{64}$" | |
| }, | |
| "bytes": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "kind": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "repository": { | |
| "type": "string" | |
| } | |
| }, | |
| "additionalProperties": true | |
| }, | |
| "repository": { | |
| "type": "object", | |
| "required": [ | |
| "key", | |
| "repo", | |
| "url", | |
| "role", | |
| "base_commit", | |
| "fixed_commit", | |
| "workspace_path", | |
| "container_path", | |
| "source_policy", | |
| "licensing", | |
| "gold_patch", | |
| "test_patches" | |
| ], | |
| "properties": { | |
| "key": { | |
| "type": "string", | |
| "pattern": "^[A-Za-z0-9_.-]+$" | |
| }, | |
| "repo": { | |
| "type": "string", | |
| "pattern": "^[^/]+/[^/]+$" | |
| }, | |
| "url": { | |
| "type": "string", | |
| "pattern": "^https://github.com/" | |
| }, | |
| "role": { | |
| "type": "string" | |
| }, | |
| "base_commit": { | |
| "type": "string", | |
| "pattern": "^[0-9a-f]{40}$" | |
| }, | |
| "fixed_commit": { | |
| "type": "string", | |
| "pattern": "^[0-9a-f]{40}$" | |
| }, | |
| "workspace_path": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "container_path": { | |
| "type": "string" | |
| }, | |
| "source_policy": { | |
| "type": "object" | |
| }, | |
| "licensing": { | |
| "type": "object" | |
| }, | |
| "gold_patch": { | |
| "$ref": "#/definitions/artifact" | |
| }, | |
| "original_gold_patch": { | |
| "$ref": "#/definitions/artifact" | |
| }, | |
| "test_patches": { | |
| "type": "array", | |
| "items": { | |
| "$ref": "#/definitions/artifact" | |
| } | |
| } | |
| }, | |
| "additionalProperties": false | |
| } | |
| } | |
| } | |