Module extractor
Expand description
Per-file function extraction + clone grouping.
Given the source of one Tier-1 file, find every function-shaped subtree,
fingerprint each, and return FunctionFingerprint records. The grouper
(next layer up) consumes these across all files and emits clone families
by fingerprint.digest equality.
Structs§
- Clone
Group - One clone family: a fingerprint shared by ≥ 2 members.
- Function
Fingerprint - One function found in one file at one rev, with its structural fingerprint.
Functions§
- extract_
functions - Parse
codeforlangand return oneFunctionFingerprintper function- shaped node. The min-fragment-size filter is applied by the caller againstfingerprint.node_countso callers can tune it per-run. - group_
clones - Group function-fingerprints by digest, return families of size ≥ 2.
min_node_countfilters out trivial functions (default 30 ≈ 5-8 statements of structural shape after identifier/literal normalization).