Skip to main content

StructuralStats

Struct StructuralStats 

Source
pub struct StructuralStats {
Show 25 fields pub files: usize, pub units: usize, pub candidate: CandidateStats, pub near_match: NearMatchStats, pub control_flow: ControlFlowStats, pub maximal: RegionStats, pub regions: usize, pub region_singletons: usize, pub region_overlapping: usize, pub region_adjoining: usize, pub region_subsumed: usize, pub region_merged: usize, pub below_min_clone_token_regions: usize, pub nested_pairs: usize, pub alternative_pairs: usize, pub divergent_shape_pairs: usize, pub below_min_clone_token_pairs: usize, pub unit_pairs: usize, pub verification_budget_dropped: usize, pub verified_pairs: usize, pub unrepresented_pairs: usize, pub described_pairs: usize, pub severed_pairs: usize, pub grouping: GroupingStats, pub siblings: SiblingSweepStats,
}
Expand description

Funnel counters across the whole run: how many fragments, candidate pairs and verified pairs each stage saw.

Fields§

§files: usize

Files analysed.

§units: usize

Units across all files.

§candidate: CandidateStats

Exact-seed candidate extraction statistics.

§near_match: NearMatchStats

Near-match extraction statistics.

§control_flow: ControlFlowStats

Control-flow skeleton extraction statistics.

§maximal: RegionStats

Maximal-region consolidation statistics.

§regions: usize

Duplicated runs confirmed against the source tokens.

§region_singletons: usize

Occurrences dropped for holding content no other occurrence of their candidate run shared: the statement summaries agreed but the code did not.

§region_overlapping: usize

Occurrences dropped for covering source a kept occurrence of the same run already covers, which makes them one stretch of code rather than two instances of it.

§region_adjoining: usize

Occurrences dropped for continuing a kept occurrence of the same run, statement for statement, inside one block. Those tile one stretch of code, so the run is that stretch’s period rather than a copy of it.

§region_subsumed: usize

Confirmed runs dropped because a longer run covers every one of their occurrences and claims at least as much about them.

§region_merged: usize

Longer runs made by joining confirmed runs that describe one stretch at two offsets. The parts they cover leave through region_subsumed.

§below_min_clone_token_regions: usize

Confirmed duplicated statement runs dropped because at least one occurrence is shorter than the configured minimum clone length.

§nested_pairs: usize

Candidate pairs dropped because one unit encloses the other.

§alternative_pairs: usize

Candidate pairs dropped because the two units sit under different arms of one preprocessor conditional, so no build holds both.

§divergent_shape_pairs: usize

Candidate pairs dropped because the two units hold too different a mix of shapes for verification to have anything to find.

§below_min_clone_token_pairs: usize

Candidate unit pairs dropped because one member is shorter than the configured minimum clone length.

§unit_pairs: usize

Distinct unit pairs handed to verification.

§verification_budget_dropped: usize

Candidate unit pairs left unverified after the verification budget was spent. A nonzero count means the reported groups can be incomplete.

§verified_pairs: usize

Unit pairs that verification accepted as clones.

§unrepresented_pairs: usize

Verified pairs no reported group holds both halves of.

§described_pairs: usize

Verified pairs left out of that carry-out because a group already relates their two sides, one of them holding a unit nested inside the other side.

§severed_pairs: usize

Verified pairs left out because the component ceiling cut their two sides into separate pieces, so no group was ever in a position to hold both. Zero unless GroupingConfig::max_component fired.

§grouping: GroupingStats

Grouping statistics.

§siblings: SiblingSweepStats

Post-grouping sibling-sweep accounting.

Trait Implementations§

Source§

impl Clone for StructuralStats

Source§

fn clone(&self) -> StructuralStats

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StructuralStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for StructuralStats

Source§

fn default() -> StructuralStats

Returns the “default value” for a type. Read more
Source§

impl Eq for StructuralStats

Source§

impl PartialEq for StructuralStats

Source§

fn eq(&self, other: &StructuralStats) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StructuralStats

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.