Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/hive-not-swarm/blob/master/sources/count_pr_links.py # hive-not-swarm aien-dev/hive-not-swarm Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `hive-not-swarm / sources / count_pr_links.py` 15 lines ยท 774 bytes Raw Blame History 1 """Recount the Section 4.1 pull-request link counts from sources/repository_pr_links.json.""" 2 import json 3 from pathlib import Path 4 5 data = json.loads((Path(__file__).resolve().parent / 'repository_pr_links.json').read_text()) 6 CUT = '2026-10-12T00:00:00Z' 7 for label, keep in (('before', lambda t: t < CUT), ('on_or_after', lambda t: t >= CUT)): 8 prs = [p for p in data['pull_requests'] if keep(p['createdAt'])] 9 states = {} 10 for p in prs: 11 states[p['state']] = states.get(p['state'], 0) + 1 12 print(label, 'pull_requests', len(prs), 13 'formal_closing_link', sum(p['formal_closing_link'] for p in prs), 14 'issue_number_in_title_or_body', sum(p['issue_number_in_title_or_body'] for p in prs), 15 'states', dict(sorted(states.items())))