Source identity
| Field | Recorded value |
|---|---|
| Source type | archive member |
| Original record | 02_review_table.py |
| Date | Not specified in source |
| Path or archive member | archives/libsrc-1c3f88063121/NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/scripts/02_review_table.py |
| Original SHA-256 | 38854e21bc17029d095caac1d06c5c0e73be78cfc56e713db7afcbd5b2b90baa |
| Reading-copy SHA-256 | 38854e21bc17029d095caac1d06c5c0e73be78cfc56e713db7afcbd5b2b90baa |
| Archive source | {"sourceId": "libsrc-1c3f88063121", "member": "NETLIFY_AI_RECOVERY_2026-10-14_21-10-49/scripts/02_review_table.py"} |
Recovered source transcript
Download complete source text ↓24 lines · 1.0 KB
"""Print a compact review table of every inventoried site with its classification evidence."""
import glob
import json
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from nlr_common import ROOT
rows = []
for d in sorted(glob.glob(os.path.join(ROOT, "sites", "*"))):
try:
m = json.load(open(os.path.join(d, "metadata", "site.json")))
e = json.load(open(os.path.join(d, "metadata", "classification_evidence.json")))
except FileNotFoundError:
continue
strong = ",".join(f"{k}:{v}" for k, v in sorted(e["strong_hits"].items(), key=lambda x: -x[1]))
gen = ",".join(f"{k}:{v}" for k, v in sorted(e["generic_hits"].items(), key=lambda x: -x[1])[:6])
rows.append((m["name"], m.get("custom_domain") or "", (e.get("title") or "")[:60], e.get("file_count"),
m["build_settings"].get("repo_url") or "", strong[:90], gen[:90]))
for r in sorted(rows):
print(" | ".join("" if x is None else str(x) for x in r))
print(len(rows), "sites")