# -*- coding: utf-8 -*-
import io, sys, json, re
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
c = json.load(open(r"D:\work buddy\2026-11-05-14-15-52\pending_berkeley_catd.json", encoding="utf-8"))
bad=[]
for x in c:
    n=x[2]
    if re.search(r"MBA|\bJD\b|LLM|JSD|MSW|Certificate|Credential|Online|Part-?Time|5th|For UCB|Residency|Optometry|Dietetics|Translational", n, re.I):
        bad.append(x)
print("残留可疑:", len(bad))
for x in bad: print("  ", x[2])
print("--- 保留 biz/med/edu 抽查 ---")
for x in c:
    if x[6] in ("biz","edu"): print(x[6], x[4], x[2])
