MCPcopy Create free account
hub / github.com/codealong/codealong / calculate_impact

Function calculate_impact

codealong/src/hunk_analyzer.rs:64–69  ·  view source on GitHub ↗

Current line impact calculation is a simple function that tries to incoporate the following ideas: 1. Large hunks of code have less cognitive overhead on a per-line basis than small or single-line changes. To incorporate this, the impact of a hunk grows sub-linearly with its size. 2. Different types of work have less cognitive overhead. Dealing with refactorings of legacy code requires more cont

(work_stats: &WorkStats, weight: f64)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

finishMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected