import json

judged = 0
unjudged = 0
with open('../data/nasouth/2026/nasouth26d1-event-feed.json', 'r') as f:
    subs = {}
    for line in f:
        line = line.strip()
        if not line: continue
        data = json.loads(line)
        if data.get('type') == 'submissions':
            for s in data.get('data', []):
                subs[s['id']] = False # unjudged
        
        if data.get('type') == 'judgements':
            for j in data.get('data', []):
                subs[j['submission_id']] = True # judged

    for k,v in subs.items():
        if v: judged += 1
        else: unjudged += 1

print(f"Judged: {judged}, Unjudged: {unjudged}")
