amkkk's picture
download
raw
962 Bytes
"""Verify pinning state of all pages."""
import re
from pathlib import Path
pages_dir = Path(r"X:\hf_challenge\repro_bI9moH3UZw\.trackio\logbook\pages")
for page in ["00-scorecard", "claim-1-ode-limit", "claim-2-plateau-sharp-drop",
"claim-3-fixed-point-deviation", "methods", "conclusion"]:
p = pages_dir / page / "page.md"
content = p.read_text(encoding="utf-8")
# find all cell blocks
cell_blocks = re.findall(r"<!-- trackio-cell\s*(\{.*?\})\s*-->", content, re.DOTALL)
print(f"\n{page}:")
for block in cell_blocks:
cid_m = re.search(r'"id":\s*"(cell_[^"]+)"', block)
pinned_m = re.search(r'"pinned":\s*(true|false)', block)
cid = cid_m.group(1) if cid_m else "?"
pinned = pinned_m.group(1) if pinned_m else "false"
title_m = re.search(r'"title":\s*"([^"]+)"', block)
title = title_m.group(1) if title_m else "?"
print(f" {cid} pinned={pinned} title={title!r}")

Xet Storage Details

Size:
962 Bytes
·
Xet hash:
81c1eea864626cfeb1c68240b755c9146477d17abc278d24ae490cc6806f0583

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.