"""Planned Parquet schema and a synthetic local Hugging Face compatibility check.""" import argparse import hashlib import json from pathlib import Path from datasets import Dataset, Features, Value try: from datasets import List except ImportError: # datasets 3.x represents an Arrow list with a one-element Python list. # Sequence(dict) would instead transpose a list of records into records of lists. def List(feature): return [feature] def features(): text, number = Value("string"), Value("float64") media = { "media_id": text, "source_dataset": text, "source_video_id": text, "kind": text, "video_path": text, "frame_keys": List(text), "source_frame_indices": List(Value("int64")), "source_timestamps_sec": List(number), "presentation_timestamps_sec": List(number), "clip_start_sec": number, "clip_end_sec": number, "duration_sec": number, "source_fps": number, "effective_fps": number, "ordering": text, } return Features({ "row_id": text, "sample_id": text, "source_sample_id": text, "dataset_version": text, "source_dataset": text, "source_video_ids": List(text), "task_family": text, "problem_type": text, "data_type": text, "level": Value("int8"), "prompt_mode": text, "reasoning_tag": text, "parent_sample_id": text, "parent_dataset_revision": text, "prompt": text, "messages": List({"role": text, "content": text}), "answer": text, "answer_format": text, "answer_time_coordinate": text, "media": List(media), "split_role": text, "mix_id": text, "mix_row_index": Value("int64"), "annotation_id": text, "build_id": text, "license_ids": List(text), "prompt_sha256": text, "answer_sha256": text, "training_metadata_json": text, }) def fixture_row(row_number=0): prompt = "