pub struct StructuralConfig {
pub min_clone_tokens: u32,
pub candidate: CandidateConfig,
pub near_match: NearMatchConfig,
pub control_flow: ControlFlowConfig,
pub maximal: MaximalConfig,
pub literals: LiteralNorm,
pub verify: VerifyConfig,
pub verification_budget: usize,
pub max_shape_divergence: f64,
pub grouping: GroupingConfig,
pub siblings: SiblingConfig,
}Expand description
Tuning for a whole structural run: one config per stage.
Fields§
§min_clone_tokens: u32Smallest whole-unit or statement-run clone length, in parsed tokens, that the structural pipeline reports.
Candidate extraction can still see shorter code so its other funnel
counters describe the full search space. Short candidates leave before
precise verification and are accounted for in StructuralStats.
candidate: CandidateConfigExact-seed candidate extraction.
near_match: NearMatchConfigMinHash/LSH near-match extraction.
control_flow: ControlFlowConfigControl-flow skeleton extraction.
maximal: MaximalConfigFolding seed matches into maximal shared runs.
literals: LiteralNormLiteral strategy the duplicated runs are confirmed under: it decides whether two runs differing only in literal values are the same run.
verify: VerifyConfigPrecise verification.
verification_budget: usizeUpper bound on distinct unit pairs passed to precise verification.
Pairs are ordered canonically before this budget is spent, so lowering it changes coverage deterministically and is reported in the funnel.
max_shape_divergence: f64How far apart two units’ shape mixes may be and still be worth
verifying; see
shape_divergence.
grouping: GroupingConfigMedoid grouping.
siblings: SiblingConfigBounded post-grouping search for incomplete copies beside an established group. This never changes primary group membership.
Trait Implementations§
Source§impl Clone for StructuralConfig
impl Clone for StructuralConfig
Source§fn clone(&self) -> StructuralConfig
fn clone(&self) -> StructuralConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more