#!/usr/bin/env python3 """verify_dataset_card.py — check that DATASET_CARD.md describes the bundle truthfully. The card is the public interface of the dataset: it declares which files load as which configs and states how many rows each holds. A card that lies is worse than no card, so every claim it makes in machine-readable form is checked here: 1. the YAML front matter parses (PyYAML if installed, minimal fallback otherwise); 2. every `configs[].data_files[].path` exists in this repository; 3. every declared file is a well-formed comma-separated table with a non-empty header, consistent field counts, and one split (train); 4. every row count stated in the card body equals the count measured here; 5. the sections the Hugging Face dataset-card evaluation looks for are present; 6. the license is declared under a key the hub actually reads, and agrees with `CITATION.cff` and the root `LICENSE` notice (this repository is dual-licensed by path: Creative Commons Attribution 4.0 for text and data, MIT for `scripts/`); 7. the card carries no internal instruction text — no "paste this file" note, no pointer to a file that is deliberately not published (both once shipped, in the YAML comment block, where the hub renders nothing but the raw file shows all); 8. every `python3