Files
MeltMind/tools/greif_census/grp.py
T
ClaudeandClaude Opus 5.5 628a10bad3 docs: Claude design-state record and Greif v5 census tools
Consolidated MeltMind design decisions, S1 result review and Drive index;
stdlib-only ZIP range-read census (624 logs) with SHA256SUMS. Review
material only; not for main.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 08:52:20 +00:00

9 lines
464 B
Python

import sys,collections
names=[l.split()[0] for l in open(sys.argv[1])]
key=lambda n:n.split('_')[1]
c=collections.Counter(key(n) for n in names)
print('files',len(names),'groups',len(c),'singletons',sum(1 for v in c.values() if v==1))
h=collections.Counter(c.values()); print('group size histogram',sorted(h.items()))
print('largest',c.most_common(5))
print('prefix unique',len(set(n.split('_')[0] for n in names)),'all 24hex',all(len(key(n))==24 for n in names))