import json
with open('C:/tmp/audit_pre.json', encoding='utf-16-le') as f:
    raw = f.read()
# Strip BOM if present
if raw.startswith('\ufeff'):
    raw = raw[1:]
data = json.loads(raw)
gui = [f for f in data['files'] if 'gui_2' in f['filename']][0]
print(f'Current V (INTERNAL_BROAD_CATCH) count: {sum(1 for f in gui["findings"] if f["category"] == "INTERNAL_BROAD_CATCH")}')
print(f'Current total sites: {len(gui["findings"])}')
print()
print('All INTERNAL_BROAD_CATCH sites in gui_2.py:')
for f in gui['findings']:
    if f['category'] == 'INTERNAL_BROAD_CATCH':
        ctx = f.get('context', '')[:120]
        print(f'  L{f["line"]}: [{f["category"]}] {ctx}')