Commit 8b2bd86
fix: completeness now accounts for missed files
Previously, completeness was calculated only across matched files
(files both the tool and human touched), ignoring missed files entirely.
This gave inflated scores -- e.g., 97.2% when only 4 out of 31 Go files
were matched.
Now, every missed Go file in the ground truth contributes a 0% score to
the average. If the tool matches 4 files at 97% but misses 10 files,
completeness = (4*97% + 10*0%) / 14 = 27.7%, not 97%.
This gives an honest picture of how much of the total implementation
the tool actually covered.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent a86c8b6 commit 8b2bd86
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
406 | 410 | | |
407 | 411 | | |
408 | 412 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | 413 | | |
413 | 414 | | |
414 | 415 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments