pub struct CommitFeatures {Show 14 fields
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,
pub error_code_class: u8,
pub has_suggestion: u8,
pub suggestion_applicability: u8,
pub clippy_lint_count: u8,
pub span_line_delta: f32,
pub diagnostic_confidence: f32,
}Expand description
Commit features optimized for GPU processing
NLP-014: Extended from 8 to 14 dimensions for CITL integration
Fields§
§defect_category: u8§files_changed: f32§lines_added: f32§lines_deleted: f32§complexity_delta: f32§timestamp: f64§hour_of_day: u8§day_of_week: u8§error_code_class: u8Error code class: 0=type, 1=borrow, 2=name, 3=trait, 4=other
has_suggestion: u8Whether a suggestion was provided: 0 or 1
suggestion_applicability: u8Suggestion applicability: 0=none, 1=machine, 2=maybe, 3=placeholder
clippy_lint_count: u8Count of clippy lints (0-255)
span_line_delta: f32Distance from function start (normalized span line delta)
diagnostic_confidence: f32Diagnostic confidence from taxonomy mapping
Implementations§
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<'de> Deserialize<'de> for CommitFeatures
impl<'de> Deserialize<'de> for CommitFeatures
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommitFeatures
impl RefUnwindSafe for CommitFeatures
impl Send for CommitFeatures
impl Sync for CommitFeatures
impl Unpin 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> FromResponse for Twhere
T: DeserializeOwned,
impl<T> FromResponse for Twhere
T: DeserializeOwned,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.