Method
LLOC
Logical lines of code count statement and declaration nodes in the source AST, excluding comments and blank lines. Java and Python use their respective grammars; C, C++, and CUDA use the C++ grammar. Lower counts are treated as higher readability in controlled comparisons.
Score scale: Logical lines; fewer is more readable.
Dataset results
| Dataset | Coverage | Spearman ρ |
|---|---|---|
| MBJP | 17/17 | -0.59 |
| Buse | 100/100 | -0.136 |
| Scalabrino | 200/200 | -0.359 |
| Dorn | 360/360 | -0.229 |
| Schnappinger | 304/304 | -0.571 |
| JetBrains | 119/119 | -0.279 |
| Java transformations | 1400/1400 | — |
| Python transformations | 1400/1400 | — |