pub struct StructuralReport {
pub units: Vec<StructuralUnit>,
pub groups: GroupingSet,
pub regions: Vec<StructuralRegion>,
pub details: Vec<GroupDetail>,
pub unrepresented: Vec<VerifiedPair>,
pub siblings: Vec<GroupSiblings>,
pub near_misses: Vec<StructuralNearMiss>,
pub stats: StructuralStats,
}Expand description
The structural run’s output: cohesive groups over Self::units, plus the
funnel statistics.
Fields§
§units: Vec<StructuralUnit>Analysed units; a group’s member indices index this slice.
groups: GroupingSetCohesive clone groups.
regions: Vec<StructuralRegion>Duplicated statement runs, each with every place it occurs. The units involved need not be clones of each other: this is the sub-unit view of the same corpus.
details: Vec<GroupDetail>Reporting detail per group, parallel to groups.groups: stable clone id
and the medoid-to-member similarity breakdowns.
unrepresented: Vec<VerifiedPair>Verified clone pairs no group holds both halves of, strongest first. Real copies that a partition into groups cannot express.
siblings: Vec<GroupSiblings>Incomplete local mirrors attached to primary groups without changing the primary grouping relation.
near_misses: Vec<StructuralNearMiss>Bounded LSH diagnostics immediately below the primary near-match estimate gate. These pairs are not primary findings.
stats: StructuralStatsFunnel statistics.
Implementations§
Source§impl StructuralReport
impl StructuralReport
Sourcepub fn apply_test_path_evidence(&mut self, test_files: &[bool])
pub fn apply_test_path_evidence(&mut self, test_files: &[bool])
Add configured test-path evidence to units in matching files.
test_files is indexed like the source slice passed to structural
analysis. Marker evidence is never overwritten. The method then
recomputes the parallel group facts, keeping test_code true only
where every member remains test code. Candidate extraction,
verification, and grouping have already finished and are untouched.
Trait Implementations§
Source§impl Clone for StructuralReport
impl Clone for StructuralReport
Source§fn clone(&self) -> StructuralReport
fn clone(&self) -> StructuralReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more