import json




# calc total
all_vulns = []
with open('high_risk_vulns.json', 'r') as f:
    d = json.load(f)
    for item in d:
        all_vulns.append(item['cve'])
    

print(f'all vulns : {len(all_vulns)}')


# get fixed
fixed_vulns = []
f1 = '246ok.json'
f2 = '246SuperSet.json'

with open(f1, 'r') as f:
    d = json.load(f)
    fixed_vulns += d.keys()

with open(f2, 'r') as ff:
    dd = json.load(ff)
    fixed_vulns += d.keys()


fixed_vulns = list(set(fixed_vulns))
print(f'fix vulns : {len(fixed_vulns)}')


# get not-fixed 

not_fixed = list(set(all_vulns) ^ set(fixed_vulns))

print(f'not fixed : {len(not_fixed)}')

for cve in not_fixed:
    print(cve)