File Size Overall
- There are 352 files with 113,446 lines of code.
- 31 very long files (54,218 lines of code)
- 37 long files (25,294 lines of code)
- 62 medium size files (19,138 lines of code)
- 58 small files (8,403 lines of code)
- 164 very small files (6,393 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 |
|---|---|---|
| 4676 | 127 | |
| 3602 | 44 | |
| 2632 | 15 | |
| 2414 | 57 | |
| 2405 | 16 | |
| 2028 | 73 | |
| 2002 | 70 | |
| 1964 | 107 | |
| 1947 | 56 | |
| 1881 | 42 | |
| 1870 | 47 | |
| 1841 | 28 | |
| 1564 | 31 | |
| 1555 | 36 | |
| 1541 | 28 | |
| 1541 | 34 | |
| 1535 | 53 | |
| 1513 | 56 | |
| 1452 | 44 | |
| 1397 | 32 | |
| 1374 | 33 | |
| 1277 | 28 | |
| 1229 | 70 | |
| 1226 | 27 | |
| 1215 | 49 | |
| 1147 | 46 | |
| 1115 | 34 | |
| 1097 | 25 | |
| 1093 | 24 | |
| 1076 | 41 | |
| 1009 | 19 | |
| 995 | 44 | |
| 968 | 10 | |
| 928 | 43 | |
| 909 | 8 | |
| 883 | 40 | |
| 863 | 24 | |
| 844 | 26 | |
| 843 | 24 | |
| 838 | 23 | |
| 832 | 13 | |
| 794 | 16 | |
| 768 | 30 | |
| 755 | 15 | |
| 718 | 17 | |
| 711 | 38 | |
| 696 | 43 | |
| 682 | 41 | |
| 661 | 31 | |
| 656 | 11 |
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 |
|---|---|---|---|---|---|
| 4676 | ~30k–70k | 63 | ~100 | ~30 | |
| 2405 | ~15k–50k | 86 | ~50 | ~50 | |
| 2632 | ~15k–50k | 76 | ~70 | ~50 | |
| 3602 | ~20k–70k | 44 | ~100 | ~30 | |
| 2414 | ~15k–50k | 47 | ~70 | ~30 | |
| 2002 | ~10k–30k | 56 | ~30 | ~70 | |
| 1964 | ~10k–30k | 54 | ~50 | ~50 | |
| 1947 | ~10k–30k | 54 | ~70 | ~30 | |
| 1870 | ~10k–30k | 51 | ~50 | ~30 | |
| 1841 | ~10k–30k | 46 | ~50 | ~30 | |
| 1541 | ~10k–30k | 32 | ~70 | ~20 | |
| 1881 | ~10k–30k | 22 | ~100 | ~15 | |
| 1397 | ~7k–20k | 29 | ~70 | ~20 | |
| 1374 | ~7k–20k | 29 | ~70 | ~20 | |
| 832 | ~5k–15k | 47 | ~20 | ~30 | |
| 883 | ~5k–15k | 38 | ~30 | ~30 | |
| 1147 | ~7k–20k | 27 | ~100 | ~10 | |
| 1093 | ~7k–20k | 28 | ~50 | ~20 | |
| 794 | ~5k–15k | 37 | ~20 | ~30 | |
| 1564 | ~10k–30k | 18 | ~150 | ~10 |
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 |
|---|---|---|
| 4676 | 127 | |
| 1964 | 107 | |
| 2028 | 73 | |
| 1229 | 70 | |
| 2002 | 70 | |
| 2414 | 57 | |
| 1947 | 56 | |
| 1513 | 56 | |
| 1535 | 53 | |
| 1215 | 49 | |
| 244 | 47 | |
| 1870 | 47 | |
| 1147 | 46 | |
| 346 | 45 | |
| 346 | 44 | |
| 1452 | 44 | |
| 3602 | 44 | |
| 995 | 44 | |
| 928 | 43 | |
| 696 | 43 | |
| 1881 | 42 | |
| 411 | 42 | |
| 314 | 41 | |
| 682 | 41 | |
| 1076 | 41 | |
| 513 | 40 | |
| 883 | 40 | |
| 711 | 38 | |
| 1555 | 36 | |
| 1541 | 34 | |
| 1115 | 34 | |
| 1374 | 33 | |
| 519 | 33 | |
| 1397 | 32 | |
| 637 | 31 | |
| 1564 | 31 | |
| 507 | 31 | |
| 661 | 31 | |
| 417 | 31 | |
| 768 | 30 | |
| 1277 | 28 | |
| 1541 | 28 | |
| 1841 | 28 | |
| 511 | 27 | |
| 1226 | 27 | |
| 337 | 27 | |
| 348 | 26 | |
| 844 | 26 | |
| 357 | 25 | |
| 520 | 25 |
Files With Long Lines (Top 12)
There are 12 files with lines longer than 120 characters. In total, there are 14 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 172 | - | 3 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 6 | - | 1 | |
| 6 | - | 1 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 6 | - | 1 | |
| 4 | - | 1 |
Correlations
File Size vs. Commits (all time): 349 points
|
|
4676.0 | lines of code min: 1.0average: 325.02 25th percentile: 40.0 median: 122.0 75th percentile: 347.0 max: 4676.0 |
|
| 0 | 131.0 | ||
|
commits (all time) min: 1.0 | average: 9.97 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 10.5 | max: 131.0
|
|||
File Size vs. Contributors (all time): 349 points
|
|
4676.0 | lines of code min: 1.0average: 325.02 25th percentile: 40.0 median: 122.0 75th percentile: 347.0 max: 4676.0 |
|
| 0 | 42.0 | ||
|
contributors (all time) min: 1.0 | average: 4.87 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 6.0 | max: 42.0
|
|||
File Size vs. Commits (30 days): 121 points
|
|
4676.0 | lines of code min: 5.0average: 655.99 25th percentile: 139.5 median: 387.0 75th percentile: 863.5 max: 4676.0 |
|
| 0 | 13.0 | ||
|
commits (30d) min: 1.0 | average: 2.67 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 13.0
|
|||
File Size vs. Contributors (30 days): 121 points
|
|
4676.0 | lines of code min: 5.0average: 655.99 25th percentile: 139.5 median: 387.0 75th percentile: 863.5 max: 4676.0 |
|
| 0 | 9.0 | ||
|
contributors (30d) min: 1.0 | average: 2.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 9.0
|
|||
File Size vs. Commits (90 days): 260 points
|
|
4676.0 | lines of code min: 1.0average: 417.51 25th percentile: 66.0 median: 198.5 75th percentile: 512.5 max: 4676.0 |
|
| 0 | 49.0 | ||
|
commits (90d) min: 1.0 | average: 5.19 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 6.0 | max: 49.0
|
|||
File Size vs. Contributors (90 days): 260 points
|
|
4676.0 | lines of code min: 1.0average: 417.51 25th percentile: 66.0 median: 198.5 75th percentile: 512.5 max: 4676.0 |
|
| 0 | 14.0 | ||
|
contributors (90d) min: 1.0 | average: 2.44 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 3.0 | max: 14.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