PERDYPTO
Upload 45 files
0109502 verified
Raw History Blame Contribute Delete
401 Bytes
from __future__ import annotations
# Dataset-level license/provenance review should be completed before a source
# is processed. This per-record hook exists for future source metadata rules.
def check_source_record(record: dict) -> tuple[bool, str | None]:
if not record.get("instruction") and not record.get("output"):
return False, "empty_instruction_and_output"
return True, None