pub struct RepositoryAnalysis {
pub files: Vec<FileInfo>,
pub heuristic_scores: HashMap<String, f64>,
pub centrality_scores: Option<HashMap<String, f64>>,
pub final_scores: HashMap<String, f64>,
pub metadata: AnalysisMetadata,
}Expand description
High-level repository analysis results
Fields§
§files: Vec<FileInfo>All scanned files with metadata
heuristic_scores: HashMap<String, f64>Heuristic scores for each file
centrality_scores: Option<HashMap<String, f64>>Graph centrality scores (if graph feature enabled)
final_scores: HashMap<String, f64>Combined final scores
metadata: AnalysisMetadataAnalysis metadata
Implementations§
Source§impl RepositoryAnalysis
impl RepositoryAnalysis
Sourcepub fn files_above_threshold(&self, threshold: f64) -> Vec<(&str, f64)>
pub fn files_above_threshold(&self, threshold: f64) -> Vec<(&str, f64)>
Get files above a certain score threshold
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Get total number of analyzed files
Trait Implementations§
Source§impl Clone for RepositoryAnalysis
impl Clone for RepositoryAnalysis
Source§fn clone(&self) -> RepositoryAnalysis
fn clone(&self) -> RepositoryAnalysis
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepositoryAnalysis
impl RefUnwindSafe for RepositoryAnalysis
impl Send for RepositoryAnalysis
impl Sync for RepositoryAnalysis
impl Unpin for RepositoryAnalysis
impl UnwindSafe for RepositoryAnalysis
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more