Skip to main content

_diffctx/config/
analytics.rs

1use once_cell::sync::Lazy;
2
3pub struct AnalyticsConfig {
4    pub hotspot_degree_weight: f64,
5    pub hotspot_churn_weight: f64,
6}
7
8impl Default for AnalyticsConfig {
9    fn default() -> Self {
10        Self {
11            hotspot_degree_weight: 0.5,
12            hotspot_churn_weight: 0.5,
13        }
14    }
15}
16
17pub static ANALYTICS: Lazy<AnalyticsConfig> = Lazy::new(AnalyticsConfig::default);