pub struct TrainDataConfig {
pub repos: Vec<PathBuf>,
pub output: PathBuf,
pub max_commits: usize,
pub min_msg_len: usize,
pub max_files: usize,
pub dedup_cap: usize,
pub resume: bool,
pub verbose: bool,
}Expand description
Configuration for training data generation.
Fields§
§repos: Vec<PathBuf>§output: PathBuf§max_commits: usize§min_msg_len: usize§max_files: usize§dedup_cap: usize§resume: bool§verbose: boolTrait Implementations§
Source§impl Debug for TrainDataConfig
impl Debug for TrainDataConfig
Auto Trait Implementations§
impl Freeze for TrainDataConfig
impl RefUnwindSafe for TrainDataConfig
impl Send for TrainDataConfig
impl Sync for TrainDataConfig
impl Unpin for TrainDataConfig
impl UnsafeUnpin for TrainDataConfig
impl UnwindSafe for TrainDataConfig
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