File Size Overall
- There are 425 files with 36,994 lines of code.
- 2 very long files (2,241 lines of code)
- 6 long files (3,944 lines of code)
- 36 medium size files (11,545 lines of code)
- 52 small files (7,715 lines of code)
- 329 very small files (11,549 lines of code)
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
File Size per Logical Decomposition
primary
Longest Files (Top 50)
| File | # lines | # units |
|---|---|---|
| 1148 | 50 | |
| 1093 | 59 | |
| 865 | 77 | |
| 690 | 25 | |
| 663 | 43 | |
| 620 | 55 | |
| 582 | 38 | |
| 524 | 31 | |
| 498 | 24 | |
| 497 | 18 | |
| 493 | 29 | |
| 467 | 29 | |
| 463 | 26 | |
| 461 | 37 | |
| 448 | 25 | |
| 444 | 33 | |
| 399 | 12 | |
| 397 | 36 | |
| 396 | 17 | |
| 386 | 21 | |
| 363 | 35 | |
| 358 | 37 | |
| 332 | 14 | |
| 328 | 36 | |
| 309 | 31 | |
| 280 | 20 | |
| 271 | 25 | |
| 257 | 4 | |
| 252 | 1 | |
| 245 | 23 | |
| 244 | 13 | |
| 244 | 8 | |
| 244 | 7 | |
| 238 | 9 | |
| 236 | 23 | |
| 230 | 20 | |
| 229 | 22 | |
| 227 | 17 | |
| 227 | 16 | |
| 223 | 12 | |
| 221 | 14 | |
| 220 | 10 | |
| 213 | 26 | |
| 205 | 15 | |
| 196 | 13 | |
| 191 | 13 | |
| 188 | 26 | |
| 188 | 10 | |
| 187 | 12 | |
| 185 | 3 |
Large Files That Change Often (Top 20)
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 |
|---|---|---|---|---|---|
| 865 | ~5k–15k | 13 | ~20 | ~30 | |
| 1093 | ~7k–20k | 9 | ~30 | ~50 | |
| 69 | ~300–1k | 106 | ~3 | ~20 | |
| 663 | ~3k–10k | 9 | ~50 | ~15 | |
| 582 | ~3k–10k | 9 | ~20 | ~30 | |
| 690 | ~3k–10k | 7 | ~30 | ~30 | |
| 463 | ~3k–7k | 9 | ~15 | ~30 | |
| 1148 | ~7k–20k | 3 | ~500 | ~3 | |
| 397 | ~2k–7k | 7 | ~30 | ~10 | |
| 461 | ~3k–7k | 6 | ~15 | ~30 | |
| 448 | ~3k–7k | 6 | ~70 | ~7 | |
| 358 | ~2k–7k | 7 | ~20 | ~20 | |
| 620 | ~3k–10k | 4 | ~15 | ~30 | |
| 328 | ~2k–5k | 7 | ~30 | ~10 | |
| 245 | ~1.5k–5k | 9 | ~30 | ~7 | |
| 498 | ~3k–7k | 4 | ~30 | ~20 | |
| 493 | ~3k–7k | 4 | ~30 | ~15 | |
| 386 | ~2k–7k | 5 | ~20 | ~20 | |
| 213 | ~1k–3k | 9 | ~10 | ~20 | |
| 271 | ~1.5k–5k | 7 | ~15 | ~15 |
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 50)
| File | # lines | # units |
|---|---|---|
| 865 | 77 | |
| 1093 | 59 | |
| 620 | 55 | |
| 1148 | 50 | |
| 663 | 43 | |
| 582 | 38 | |
| 461 | 37 | |
| 358 | 37 | |
| 328 | 36 | |
| 397 | 36 | |
| 363 | 35 | |
| 444 | 33 | |
| 309 | 31 | |
| 524 | 31 | |
| 467 | 29 | |
| 493 | 29 | |
| 188 | 26 | |
| 158 | 26 | |
| 213 | 26 | |
| 463 | 26 | |
| 690 | 25 | |
| 271 | 25 | |
| 448 | 25 | |
| 498 | 24 | |
| 236 | 23 | |
| 245 | 23 | |
| 229 | 22 | |
| 164 | 22 | |
| 155 | 21 | |
| 386 | 21 | |
| 280 | 20 | |
| 230 | 20 | |
| 173 | 19 | |
| 497 | 18 | |
| 227 | 17 | |
| 147 | 17 | |
| 396 | 17 | |
| 148 | 16 | |
| 227 | 16 | |
| 114 | 16 | |
| 98 | 15 | |
| 205 | 15 | |
| 182 | 15 | |
| 221 | 14 | |
| 332 | 14 | |
| 125 | 14 | |
| 244 | 13 | |
| 104 | 13 | |
| 162 | 13 | |
| 196 | 13 |
Files With Long Lines (Top 2)
There are 2 files with lines longer than 120 characters. In total, there are 3 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 1093 | 59 | 2 | |
| 137 | 9 | 1 |
Correlations
File Size vs. Commits (all time): 425 points
|
|
1148.0 | lines of code min: 2.0average: 87.04 25th percentile: 19.0 median: 40.0 75th percentile: 90.5 max: 1148.0 |
|
| 0 | 1124.0 | ||
|
commits (all time) min: 1.0 | average: 18.42 | 25th percentile: 4.0 | median: 12.0 | 75th percentile: 20.5 | max: 1124.0
|
|||
File Size vs. Contributors (all time): 425 points
|
|
1148.0 | lines of code min: 2.0average: 87.04 25th percentile: 19.0 median: 40.0 75th percentile: 90.5 max: 1148.0 |
|
| 0 | 6.0 | ||
|
contributors (all time) min: 1.0 | average: 1.76 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 6.0
|
|||
File Size vs. Commits (30 days): 17 points
|
|
865.0 | lines of code min: 15.0average: 219.71 25th percentile: 29.0 median: 82.0 75th percentile: 385.0 max: 865.0 |
|
| 0 | 12.0 | ||
|
commits (30d) min: 1.0 | average: 1.88 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 12.0
|
|||
File Size vs. Contributors (30 days): 17 points
|
|
865.0 | lines of code min: 15.0average: 219.71 25th percentile: 29.0 median: 82.0 75th percentile: 385.0 max: 865.0 |
|
| 0 | 1.0 | ||
|
contributors (30d) min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0
|
|||
File Size vs. Commits (90 days): 64 points
|
|
1148.0 | lines of code min: 7.0average: 213.86 25th percentile: 40.0 median: 138.0 75th percentile: 264.5 max: 1148.0 |
|
| 0 | 22.0 | ||
|
commits (90d) min: 1.0 | average: 2.3 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 22.0
|
|||
File Size vs. Contributors (90 days): 64 points
|
|
1148.0 | lines of code min: 7.0average: 213.86 25th percentile: 40.0 median: 138.0 75th percentile: 264.5 max: 1148.0 |
|
| 0 | 2.0 | ||
|
contributors (90d) min: 1.0 | average: 1.03 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.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...
- To learn more about bloaters and how to deal with long code structures, Sokrates recommends the following resources:
- Refactoring bloaters, sourcemaking.com
- The Blob Software Development Anti-Pattern, sourcemaking.com