STUD
← Plays

Calculate · Assess & Decide · Engineering

Defect density per module with ranked hotspots

Defect density per module against your chosen size unit, the overall density, and a ranking of the most defect-dense modules.

You receive: A reviewed defect-density calculator + the passing test report, run on your module defect and size counts.

Part of Ship MVP

What's verified: STUD verifies the calculator computes defect density per module on held-out cases: defects divided by size (LOC, or LOC/1000 for KLOC) times your per-scale, the overall density across the totals, and the ranking with name-ascending tie-breaks. STUD does NOT count real defects or lines for you, nor judge whether a module's density is acceptable; it checks the arithmetic on the counts you provide.

Opens soon

Cost15 credits
ProtectionHeld until verified delivery

This play is verified and ready. It opens soon, once sign-in and payments are live.

Example

A sample of what this play produces. Your result is generated for your inputs.

Overall density0.85
RankNameDensity
1platform/src/lib1.94
2platform/src/app1.45
3platform/src/components1.05
4platform/src/db0.58
5judge/stud_judge0.42
Inputs
Modules
NameSizeDefects
platform/src/app1240018
platform/src/components86009
platform/src/db52003
judge/stud_judge2600011
platform/src/lib31006
Size unitKLOC
Per scale1
Rank orderdesc
Rounding dp2

Arithmetic recomputed against the tasks.py compute_defect_density oracle, 2026-08-08, on the modules of STUD's own codebase (defect counts illustrative): per KLOC, app 18/12.4 = 1.45, components 9/8.6 = 1.05, db 3/5.2 = 0.58, judge 11/26 = 0.42, lib 6/3.1 = 1.94; overall 47 defects over 55.3 KLOC = 0.85. Ranked descending, platform/src/lib is the hotspot at 1.94 defects per KLOC, more than twice the overall density.

Get early access to STUD the day it goes live.