14 lines
464 B
Python
14 lines
464 B
Python
import os, sys, json
|
|
|
|
sys.stdout.reconfigure(encoding='utf-8')
|
|
|
|
with open('scratch/const_md_flaws_scan.json', 'r', encoding='utf-8') as f:
|
|
data = json.load(f)
|
|
|
|
for k, v in data.items():
|
|
t_list = v.get('collapsed_table_rows', [])
|
|
print(f"\n=== {k}: {len(t_list)} collapsed rows ===")
|
|
for idx, t in enumerate(t_list):
|
|
snip = t['snippet'].replace('\n', ' ')
|
|
print(f" [{idx+1}] L{t['line']} (tokens: {t['token_count']}): {snip[:90]}")
|