Something went wrong. Try again.
Something went wrong. Try again.
940 B · 18 lines
Shell
12345678910111213141516171819#!/bin/bashS=/tmp/claude-1000/-home-jmm-Code-blogposts/7ba1f72e-807b-4749-bcd3-a065da793e6d/scratchpadcd $Sset -eecho "=== person-centric crawl ==="; python3 alt_d_people.py 2>&1 | grep -v "^ERR"echo "=== prune stale commit rows to the current merged set ==="python3 - <<'PY'import jsonSD="/tmp/claude-1000/-home-jmm-Code-blogposts/7ba1f72e-807b-4749-bcd3-a065da793e6d/scratchpad"keep={p["uri"] for p in json.load(open(f"{SD}/merged_pulls.json"))}rows=[l for l in open(f"{SD}/commits.jsonl") if json.loads(l)["uri"] in keep]open(f"{SD}/commits.jsonl","w").writelines(rows)print(f"kept {len(rows)} commit rows of the current merged set ({len(keep)})")PYecho "=== patches ==="; python3 stage3b_blobs.py 2>&1 | grep -v "^ERR" | tail -3echo "=== handles ==="; python3 stage4_handles.py 2>&1 | grep -v "^ERR" | tail -2echo "=== analyze + build ==="; python3 analyze.py > analyze_out.txt && python3 build_html.pyecho "RUN2_DONE"