File Size Overall
  • There are 18 files with 918 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (319 lines of code)
    • 2 small files (289 lines of code)
    • 15 very small files (310 lines of code)
0% | 0% | 34% | 31% | 33%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
scala0% | 0% | 45% | 41% | 13%
mustache0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
scrooge-generator-typescript0% | 0% | 42% | 16% | 41%
sbt-scrooge-typescript0% | 0% | 0% | 100% | 0%
Longest Files (Top 18)
File# lines# units
TypescriptGenerator.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
319 9
ScroogeTypescriptGen.scala
in sbt-scrooge-typescript/src/main/scala/com/gu/thrift
169 4
TemplateModels.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
120 -
ScalaObjectHandler.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
67 6
read_field.mustache
in scrooge-generator-typescript/src/main/resources/typescript
37 -
struct_read.mustache
in scrooge-generator-typescript/src/main/resources/typescript
34 -
write_field.mustache
in scrooge-generator-typescript/src/main/resources/typescript
33 -
union_read.mustache
in scrooge-generator-typescript/src/main/resources/typescript
31 -
MustacheUtils.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
18 2
union_write.mustache
in scrooge-generator-typescript/src/main/resources/typescript
17 -
union.mustache
in scrooge-generator-typescript/src/main/resources/typescript
13 -
struct_write.mustache
in scrooge-generator-typescript/src/main/resources/typescript
13 -
struct.mustache
in scrooge-generator-typescript/src/main/resources/typescript
11 -
imports.mustache
in scrooge-generator-typescript/src/main/resources/typescript
11 -
NPMLibraries.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
10 -
enum.mustache
in scrooge-generator-typescript/src/main/resources/typescript
6 -
autogen.mustache
in scrooge-generator-typescript/src/main/resources/typescript
5 -
const.mustache
in scrooge-generator-typescript/src/main/resources/typescript
4 -
Large Files That Change Often (Top 2)
To change a file, an AI coding agent (or a person) has to read it: these files are read the most for the changes in the past year (lines × changes).
File# lines≈ tokens
to read
# changes
(1y)
≈ lines edited
per change
lines read per
line changed
ScroogeTypescriptGen.scala
in sbt-scrooge-typescript/src/main/scala/com/gu/thrift
169 ~1k–3k 3 ~30 ~5
NPMLibraries.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
10 under 1k 2 ~5 ~2

Tokens are lines × 7 to 14 (analysis.fileReadsForChanges). Lines edited per change are the file's lines added and deleted divided by its commits over the whole history. Agents read about 2,000 lines at a time: when a 17,000-line file was split into modules, the tokens an agent read for the same change fell by 83% (The Economic Benefit of Refactoring, 2026).

Files With Most Units (Top 4)
File# lines# units
TypescriptGenerator.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
319 9
ScalaObjectHandler.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
67 6
ScroogeTypescriptGen.scala
in sbt-scrooge-typescript/src/main/scala/com/gu/thrift
169 4
MustacheUtils.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
18 2
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
ScroogeTypescriptGen.scala
in sbt-scrooge-typescript/src/main/scala/com/gu/thrift
169 4 12
TypescriptGenerator.scala
in scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript
319 9 2
Correlations

File Size vs. Commits (all time): 18 points

scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/NPMLibraries.scala x: 9 commits (all time) y: 10 lines of code sbt-scrooge-typescript/src/main/scala/com/gu/thrift/ScroogeTypescriptGen.scala x: 17 commits (all time) y: 169 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/ScalaObjectHandler.scala x: 4 commits (all time) y: 67 lines of code scrooge-generator-typescript/src/main/resources/typescript/read_field.mustache x: 5 commits (all time) y: 37 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/TypescriptGenerator.scala x: 10 commits (all time) y: 319 lines of code scrooge-generator-typescript/src/main/resources/typescript/imports.mustache x: 4 commits (all time) y: 11 lines of code scrooge-generator-typescript/src/main/resources/typescript/union.mustache x: 4 commits (all time) y: 13 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/TemplateModels.scala x: 4 commits (all time) y: 120 lines of code scrooge-generator-typescript/src/main/resources/typescript/autogen.mustache x: 2 commits (all time) y: 5 lines of code scrooge-generator-typescript/src/main/resources/typescript/enum.mustache x: 2 commits (all time) y: 6 lines of code scrooge-generator-typescript/src/main/resources/typescript/struct_read.mustache x: 2 commits (all time) y: 34 lines of code scrooge-generator-typescript/src/main/resources/typescript/struct_write.mustache x: 2 commits (all time) y: 13 lines of code scrooge-generator-typescript/src/main/resources/typescript/union_read.mustache x: 2 commits (all time) y: 31 lines of code scrooge-generator-typescript/src/main/resources/typescript/union_write.mustache x: 2 commits (all time) y: 17 lines of code scrooge-generator-typescript/src/main/resources/typescript/write_field.mustache x: 2 commits (all time) y: 33 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/MustacheUtils.scala x: 2 commits (all time) y: 18 lines of code
319.0
lines of code
  min: 4.0
  average: 51.0
  25th percentile: 10.75
  median: 17.5
  75th percentile: 44.5
  max: 319.0
0 17.0
commits (all time)
min: 2.0 | average: 4.39 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 4.25 | max: 17.0

File Size vs. Contributors (all time): 18 points

scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/NPMLibraries.scala x: 8 contributors (all time) y: 10 lines of code sbt-scrooge-typescript/src/main/scala/com/gu/thrift/ScroogeTypescriptGen.scala x: 6 contributors (all time) y: 169 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/ScalaObjectHandler.scala x: 3 contributors (all time) y: 67 lines of code scrooge-generator-typescript/src/main/resources/typescript/read_field.mustache x: 2 contributors (all time) y: 37 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/TypescriptGenerator.scala x: 1 contributors (all time) y: 319 lines of code scrooge-generator-typescript/src/main/resources/typescript/imports.mustache x: 1 contributors (all time) y: 11 lines of code scrooge-generator-typescript/src/main/resources/typescript/union.mustache x: 1 contributors (all time) y: 13 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/TemplateModels.scala x: 1 contributors (all time) y: 120 lines of code scrooge-generator-typescript/src/main/resources/typescript/autogen.mustache x: 1 contributors (all time) y: 5 lines of code scrooge-generator-typescript/src/main/resources/typescript/enum.mustache x: 1 contributors (all time) y: 6 lines of code scrooge-generator-typescript/src/main/resources/typescript/struct_read.mustache x: 1 contributors (all time) y: 34 lines of code scrooge-generator-typescript/src/main/resources/typescript/union_read.mustache x: 1 contributors (all time) y: 31 lines of code scrooge-generator-typescript/src/main/resources/typescript/union_write.mustache x: 1 contributors (all time) y: 17 lines of code scrooge-generator-typescript/src/main/resources/typescript/write_field.mustache x: 1 contributors (all time) y: 33 lines of code scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/MustacheUtils.scala x: 1 contributors (all time) y: 18 lines of code
319.0
lines of code
  min: 4.0
  average: 51.0
  25th percentile: 10.75
  median: 17.5
  75th percentile: 44.5
  max: 319.0
0 8.0
contributors (all time)
min: 1.0 | average: 1.83 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.25 | max: 8.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 1 points

scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/NPMLibraries.scala x: 2 commits (90d) y: 10 lines of code
10.0
lines of code
  min: 10.0
  average: 10.0
  25th percentile: 10.0
  median: 10.0
  75th percentile: 10.0
  max: 10.0
0 2.0
commits (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0

File Size vs. Contributors (90 days): 1 points

scrooge-generator-typescript/src/main/scala/com/gu/scrooge/backend/typescript/NPMLibraries.scala x: 2 contributors (90d) y: 10 lines of code
10.0
lines of code
  min: 10.0
  average: 10.0
  25th percentile: 10.0
  median: 10.0
  75th percentile: 10.0
  max: 10.0
0 2.0
contributors (90d)
min: 2.0 | average: 2.0 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 2.0
About This Analysis
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...