pub struct HybridFaultLocalizer;Expand description
Combines SBFL with git history for enhanced fault localization
Implementations§
Source§impl HybridFaultLocalizer
impl HybridFaultLocalizer
Sourcepub fn combine_scores(
sbfl_result: &FaultLocalizationResult,
historical_suspiciousness: &HashMap<String, f32>,
alpha: f32,
) -> FaultLocalizationResult
pub fn combine_scores( sbfl_result: &FaultLocalizationResult, historical_suspiciousness: &HashMap<String, f32>, alpha: f32, ) -> FaultLocalizationResult
Combine SBFL suspiciousness with SZZ historical data
Formula: combined = α * sbfl_score + (1-α) * historical_score Where α is the weighting factor (default 0.7 for SBFL)
Auto Trait Implementations§
impl Freeze for HybridFaultLocalizer
impl RefUnwindSafe for HybridFaultLocalizer
impl Send for HybridFaultLocalizer
impl Sync for HybridFaultLocalizer
impl Unpin for HybridFaultLocalizer
impl UnwindSafe for HybridFaultLocalizer
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> 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