Skip to content

#679: keep the bonus earned up to the threshold - #707

Open
morphqdd wants to merge 1 commit into
zerocracy:masterfrom
morphqdd:679
Open

#679: keep the bonus earned up to the threshold#707
morphqdd wants to merge 1 commit into
zerocracy:masterfrom
morphqdd:679

Conversation

@morphqdd

@morphqdd morphqdd commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

At hoc == hoc_threshold the whole hits-of-code bonus was thrown away and the
penalty was added at the same instant, so one extra line in the diff cost 16
points with the shipped defaults.

The bonus is now counted up to the threshold and kept there, and only the penalty
applies above it, so the transition is the penalty itself and nothing more.

The expected numbers in test_check_all_bills move with it, for the four inputs
at or above the threshold.

Closes #679

yegor256 commented Sep 3, 2026

Copy link
Copy Markdown
Member

Thanks — smooths the hits-of-code cliff at the threshold, with a regression test and updated bill expectations. CI is green.

@rultor merge


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One extra hit-of-code at hoc_threshold costs 16 points in code-contribution-was-rewarded

2 participants