pub struct CommitFeatures {
pub defect_category: u8,
pub files_changed: f32,
pub lines_added: f32,
pub lines_deleted: f32,
pub complexity_delta: f32,
pub timestamp: f64,
pub hour_of_day: u8,
pub day_of_week: u8,
}Expand description
Commit-level features for defect prediction (8-dimensional).
This structure matches the org-intel CommitFeatures format for
compatibility with defect prediction pipelines.
Fields§
§defect_category: u8Predicted defect category (0-255). Categories include: 0=clean, 1=bug, 2=security, 3=perf, etc.
files_changed: f32Number of files changed in the commit.
lines_added: f32Total lines of code added.
lines_deleted: f32Total lines of code deleted.
complexity_delta: f32Estimated change in cyclomatic complexity.
timestamp: f64Unix timestamp of the commit.
hour_of_day: u8Hour of day the commit was made (0-23).
day_of_week: u8Day of week (0=Sunday, 6=Saturday).
Implementations§
Source§impl CommitFeatures
impl CommitFeatures
Trait Implementations§
Source§impl Clone for CommitFeatures
impl Clone for CommitFeatures
Source§fn clone(&self) -> CommitFeatures
fn clone(&self) -> CommitFeatures
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 moreSource§impl Debug for CommitFeatures
impl Debug for CommitFeatures
Source§impl Default for CommitFeatures
impl Default for CommitFeatures
Source§impl PartialEq for CommitFeatures
impl PartialEq for CommitFeatures
impl Copy for CommitFeatures
impl StructuralPartialEq for CommitFeatures
Auto Trait Implementations§
impl Freeze for CommitFeatures
impl RefUnwindSafe for CommitFeatures
impl Send for CommitFeatures
impl Sync for CommitFeatures
impl Unpin for CommitFeatures
impl UnsafeUnpin for CommitFeatures
impl UnwindSafe for CommitFeatures
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> 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