Method
Posnett
The published three-feature model of Posnett et al. uses source lines, Halstead volume, and byte entropy. We apply its original coefficients without retraining and use the predicted probability of readable code as the score.
Score scale: 0–1; higher is more readable.
Dataset results
| Dataset | Coverage | Spearman ρ |
|---|---|---|
| MBJP | 17/17 | 0.5 |
| Buse | 100/100 | 0.751 |
| Scalabrino | 200/200 | 0.519 |
| Dorn | 360/360 | 0.47 |
| Schnappinger | 300/304 | 0.6 |
| JetBrains | 119/119 | 0.324 |
| Java transformations | 1400/1400 | — |
| Python transformations | 1400/1400 | — |