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

DatasetCoverageSpearman ρ
MBJP17/17-0.59
Buse100/100-0.136
Scalabrino200/200-0.359
Dorn360/360-0.229
Schnappinger304/304-0.571
JetBrains119/119-0.279
Java transformations1400/1400—
Python transformations1400/1400—