Skip to main content

calculate_impact_scores

Function calculate_impact_scores 

Source
pub fn calculate_impact_scores(
    events: &[&GitEvent],
    get_files: impl Fn(&str) -> Option<Vec<String>>,
    file_heatmap: &FileHeatmap,
) -> CommitImpactAnalysis
Expand description

Impact Scoreを計算

計算式:

  • ファイル数要素: (files_changed / 50).min(1.0) * 0.4
  • 変更行数要素: (total_changes / 500).min(1.0) * 0.4
  • ファイル重要度要素: avg_file_heat * 0.2