pub struct ScoreInput {Show 13 fields
pub churn_recent: u64,
pub churn_long: u64,
pub commits_recent: u32,
pub commits_long: u32,
pub authors_long: u32,
pub ownership_top_share: f64,
pub bug_fix_commits: u32,
pub security_fix_commits: u32,
pub sloc: u64,
pub age_days: u32,
pub recent_window_days: u32,
pub change_entropy_recent: f64,
pub cochange_entropy_recent: f64,
}Available on crate feature
vcs-git only.Expand description
Raw signals consumed by the weighted formula. Decoupled from
Stats so the formula is unit-testable on synthetic inputs
without constructing a full stats record.
Fields§
§churn_recent: u64Lines added + deleted in the recent window.
churn_long: u64Lines added + deleted in the long window.
commits_recent: u32Distinct commits in the recent window.
commits_long: u32Distinct commits in the long window.
Distinct authors in the long window.
Top-author share of edits in [0, 1].
bug_fix_commits: u32Long-window bug-fix commit count.
security_fix_commits: u32Long-window security-fix commit count.
sloc: u64Source lines of the file at the target ref (tie-breaker).
age_days: u32Days since the file’s first in-window commit (capped at window).
recent_window_days: u32Recent-window length in days (new-file threshold).
change_entropy_recent: f64Recent-window change entropy (Hassan HCM share, in bits).
cochange_entropy_recent: f64Recent-window co-change graph entropy (in bits).
Trait Implementations§
Source§impl Clone for ScoreInput
impl Clone for ScoreInput
Source§fn clone(&self) -> ScoreInput
fn clone(&self) -> ScoreInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScoreInput
Auto Trait Implementations§
impl Freeze for ScoreInput
impl RefUnwindSafe for ScoreInput
impl Send for ScoreInput
impl Sync for ScoreInput
impl Unpin for ScoreInput
impl UnsafeUnpin for ScoreInput
impl UnwindSafe for ScoreInput
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