-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheck.py
More file actions
21 lines (18 loc) · 1003 Bytes
/
Copy pathcheck.py
File metadata and controls
21 lines (18 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import json
with open("output/lab/knots_comparison.json") as f:
data = json.load(f)
for name in ["alicexbt", "John Moffett", "Codeabysss"]:
print(f"--- {name} ---")
dev = next((d for d in data["overlap"]["both_devs"] if name.lower() in d["name"].lower() or d["name"].lower() in name.lower()), None)
if dev:
print(f"Found in both_devs: knots={dev['commits_knots']}, core_1yr={dev['commits_core_1yr']}, core_all={dev['commits_core_all_time']}, provenance={dev.get('provenance')}")
else:
print("Not found in both_devs.")
graveyard_commits = [c for c in data["graveyard"]["commits"] if name.lower() in c["author_name"].lower()]
if graveyard_commits:
print(f"Found {len(graveyard_commits)} Knots incremental commits:")
for c in graveyard_commits[:3]:
print(f" {c['author_date']} -> {c['committer_date']} (Delta: {c['delta_days']}): {c['subject']}")
else:
print("No Knots incremental commits found.")
print()