Datasets:
Download schemas/python_verified_v3.schema.json from dsfasdfaserwer/Dataset: direct link, hf CLI and curl.
- Browser
- Download file 6.79 kB
-
https://huggingface.co/datasets/dsfasdfaserwer/Dataset/resolve/main/schemas/python_verified_v3.schema.json
- Command line
-
hf download hf://datasets/dsfasdfaserwer/Dataset/schemas/python_verified_v3.schema.json
-
curl -L -o python_verified_v3.schema.json https://huggingface.co/datasets/dsfasdfaserwer/Dataset/resolve/main/schemas/python_verified_v3.schema.json
6.79 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "title": "Python-only verified training example v3", | |
| "description": "Train on messages only. chain_of_thought is a synthetic solution summary, not a private reasoning trace.", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "id", | |
| "schema_version", | |
| "curation_date", | |
| "title", | |
| "language", | |
| "instruction", | |
| "chain_of_thought", | |
| "code", | |
| "doc", | |
| "messages", | |
| "source", | |
| "annotations", | |
| "tests", | |
| "verification", | |
| "quality", | |
| "token_counts", | |
| "context_bucket" | |
| ], | |
| "properties": { | |
| "id": { | |
| "type": "string", | |
| "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]+$" | |
| }, | |
| "schema_version": { | |
| "const": "3.0" | |
| }, | |
| "curation_date": { | |
| "type": "string", | |
| "format": "date" | |
| }, | |
| "title": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "language": { | |
| "const": "python" | |
| }, | |
| "instruction": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "chain_of_thought": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "code": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "doc": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "messages": { | |
| "type": "array", | |
| "minItems": 3, | |
| "maxItems": 3, | |
| "prefixItems": [ | |
| { | |
| "type": "object", | |
| "required": [ | |
| "role", | |
| "content" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "role": { | |
| "const": "system" | |
| }, | |
| "content": { | |
| "type": "string", | |
| "minLength": 1 | |
| } | |
| } | |
| }, | |
| { | |
| "type": "object", | |
| "required": [ | |
| "role", | |
| "content" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "role": { | |
| "const": "user" | |
| }, | |
| "content": { | |
| "type": "string", | |
| "minLength": 1 | |
| } | |
| } | |
| }, | |
| { | |
| "type": "object", | |
| "required": [ | |
| "role", | |
| "content" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "role": { | |
| "const": "assistant" | |
| }, | |
| "content": { | |
| "type": "string", | |
| "minLength": 1 | |
| } | |
| } | |
| } | |
| ] | |
| }, | |
| "source": { | |
| "type": "object", | |
| "required": [ | |
| "dataset", | |
| "revision", | |
| "split", | |
| "row_index", | |
| "selected_solution_index", | |
| "original_code_sha256", | |
| "final_code_sha256", | |
| "source_snapshot_path", | |
| "license_notice_path" | |
| ], | |
| "properties": { | |
| "dataset": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "revision": { | |
| "type": "string" | |
| }, | |
| "split": { | |
| "type": "string", | |
| "minLength": 1 | |
| }, | |
| "row_index": { | |
| "type": "integer", | |
| "minimum": 0 | |
| }, | |
| "selected_solution_index": { | |
| "type": [ | |
| "integer", | |
| "null" | |
| ], | |
| "minimum": 0 | |
| } | |
| } | |
| }, | |
| "annotations": { | |
| "type": "object", | |
| "required": [ | |
| "instruction_is_synthetic", | |
| "rationale_type", | |
| "source_rationale_present", | |
| "human_reviewed", | |
| "code_changes" | |
| ], | |
| "properties": { | |
| "instruction_is_synthetic": { | |
| "type": "boolean" | |
| }, | |
| "rationale_type": { | |
| "enum": [ | |
| "synthetic_solution_summary", | |
| "reviewed_source_explanation", | |
| "revised_source_explanation" | |
| ] | |
| }, | |
| "source_rationale_present": { | |
| "type": "boolean" | |
| }, | |
| "human_reviewed": { | |
| "type": "boolean" | |
| } | |
| } | |
| }, | |
| "tests": { | |
| "type": "object", | |
| "required": [ | |
| "artifact_path", | |
| "artifact_sha256", | |
| "execution_mode", | |
| "source_tests", | |
| "supplemental_tests" | |
| ] | |
| }, | |
| "verification": { | |
| "type": "object", | |
| "required": [ | |
| "status", | |
| "final_tests_total", | |
| "final_tests_passed", | |
| "final_tests_failed", | |
| "test_log_path", | |
| "sandbox", | |
| "repair_attempts", | |
| "contract_checks" | |
| ], | |
| "properties": { | |
| "status": { | |
| "const": "passed" | |
| }, | |
| "final_tests_failed": { | |
| "const": 0 | |
| }, | |
| "repair_attempts": { | |
| "type": "integer", | |
| "minimum": 0, | |
| "maximum": 2 | |
| }, | |
| "contract_checks": { | |
| "type": "object", | |
| "required": [ | |
| "known_wrong_zero_solution_rejected", | |
| "case_id", | |
| "input_mutation_check" | |
| ], | |
| "additionalProperties": false, | |
| "properties": { | |
| "known_wrong_zero_solution_rejected": { | |
| "type": "boolean" | |
| }, | |
| "case_id": { | |
| "type": "string" | |
| }, | |
| "input_mutation_check": { | |
| "enum": [ | |
| "passed", | |
| "not_run" | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "quality": { | |
| "type": "object", | |
| "required": [ | |
| "decision", | |
| "rationale_review", | |
| "instruction_review", | |
| "limitations" | |
| ], | |
| "properties": { | |
| "decision": { | |
| "const": "accepted" | |
| } | |
| } | |
| }, | |
| "token_counts": { | |
| "type": "object", | |
| "required": [ | |
| "tokenizer_id", | |
| "tokenizer_revision", | |
| "training_total", | |
| "limit", | |
| "training_field", | |
| "chat_template_sha256" | |
| ], | |
| "properties": { | |
| "training_total": { | |
| "type": "integer", | |
| "minimum": 1 | |
| }, | |
| "limit": { | |
| "const": 16384 | |
| }, | |
| "training_field": { | |
| "const": "messages" | |
| } | |
| } | |
| }, | |
| "context_bucket": { | |
| "enum": [ | |
| "16k_context", | |
| "above_16k" | |
| ] | |
| } | |
| }, | |
| "allOf": [ | |
| { | |
| "if": { | |
| "properties": { | |
| "context_bucket": { | |
| "const": "16k_context" | |
| } | |
| } | |
| }, | |
| "then": { | |
| "properties": { | |
| "token_counts": { | |
| "properties": { | |
| "training_total": { | |
| "maximum": 16384 | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "else": { | |
| "properties": { | |
| "token_counts": { | |
| "properties": { | |
| "training_total": { | |
| "minimum": 16385 | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } | |