1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
#[macro_use] extern crate lazy_static; #[macro_use] extern crate failure; #[macro_use] extern crate log; #[macro_use] extern crate derive_builder; #[macro_use] extern crate derive_getters; use crate::git::GitCalculator; use crate::git_logger::GitLogConfig; pub mod git_file_history; pub mod git_logger; pub mod git; pub mod git_file_future; pub mod git_user_dictionary; pub mod toxicity_indicator_calculator; pub fn scanner_by_years(git_years: u64) -> GitCalculator { let calculator = GitCalculator::new( GitLogConfig::default() .include_merges(true) .since_years(git_years), true, ); calculator }