(self)
| 185 | return self.expanded / (self.loc+1) |
| 186 | |
| 187 | def to_string(self): |
| 188 | exp_bytes, exp_unit = fmt_bytes(self.expanded_bytes) |
| 189 | in_bytes, in_unit = fmt_bytes(self.in_bytes) |
| 190 | return "{:>9,} LoC ({:>7,} {}) to {:>12,} LoC ({:>7,} {}) ({:>5.0f}x)".format( |
| 191 | self.loc, in_bytes, in_unit, self.expanded, exp_bytes, exp_unit, self.ratio()) |
| 192 | |
| 193 | |
| 194 | class File(CompilationData): |