anthropics/ClaudeForFoundationModels
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 37 files with 3,678 lines of code.
- 0 very long files (0 lines of code)
- 0 long files (0 lines of code)
- 6 medium size files (1,796 lines of code)
- 6 small files (707 lines of code)
- 25 very small files (1,175 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 37)
| File | # lines | # units |
|---|---|---|
| 490 | 8 | |
| 430 | 5 | |
| 239 | 2 | |
| 217 | 2 | |
| 211 | - | |
| 209 | 2 | |
| 132 | - | |
| 126 | - | |
| 121 | 6 | |
| 116 | - | |
| 111 | 12 | |
| 101 | 7 | |
| 94 | - | |
| 83 | - | |
| 83 | - | |
| 82 | - | |
| 79 | - | |
| 77 | - | |
| 64 | - | |
| 64 | 2 | |
| 64 | 2 | |
| 55 | - | |
| 52 | - | |
| 51 | - | |
| 49 | 1 | |
| 49 | - | |
| 38 | - | |
| 36 | - | |
| 32 | 6 | |
| 30 | - | |
| 19 | - | |
| 16 | - | |
| 16 | - | |
| 16 | - | |
| 13 | - | |
| 7 | - | |
| 6 | - |
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 |
|---|---|---|---|---|---|
| 490 | ~3k–7k | 5 | ~100 | ~5 | |
| 239 | ~1.5k–5k | 5 | ~100 | ~3 | |
| 211 | ~1k–3k | 4 | ~70 | ~3 | |
| 132 | ~700–2k | 6 | ~15 | ~10 | |
| 77 | ~500–1.5k | 8 | ~7 | ~10 | |
| 430 | ~3k–7k | 1 | ~700 | ~1 | |
| 36 | under 1k | 8 | ~3 | ~10 | |
| 121 | ~700–2k | 2 | ~100 | ~2 | |
| 217 | ~1.5k–5k | 1 | ~300 | ~1 | |
| 126 | ~700–2k | 1 | ~15 | ~7 | |
| 116 | ~700–2k | 1 | ~50 | ~2 | |
| 111 | ~700–2k | 1 | ~150 | ~1 | |
| 101 | ~700–1.5k | 1 | ~100 | ~1 | |
| 83 | ~500–1.5k | 1 | ~15 | ~5 | |
| 83 | ~500–1.5k | 1 | ~150 | ~1 | |
| 82 | ~500–1.5k | 1 | ~7 | ~10 | |
| 79 | ~500–1.5k | 1 | ~20 | ~3 | |
| 64 | ~300–1k | 1 | ~100 | ~1 | |
| 64 | ~300–1k | 1 | ~50 | ~2 | |
| 55 | ~300–1k | 1 | ~15 | ~3 |
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 12)
| File | # lines | # units |
|---|---|---|
| 111 | 12 | |
| 490 | 8 | |
| 101 | 7 | |
| 32 | 6 | |
| 121 | 6 | |
| 430 | 5 | |
| 217 | 2 | |
| 239 | 2 | |
| 209 | 2 | |
| 64 | 2 | |
| 64 | 2 | |
| 49 | 1 |
Files With Long Lines (Top 1)
There is only one file with lines longer than 120 characters. In total, there is only one long line.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 16 | - | 1 |
Correlations
File Size vs. Commits (all time): 29 points
|
|
490.0 | lines of code min: 6.0average: 108.86 25th percentile: 42.5 median: 79.0 75th percentile: 123.5 max: 490.0 |
|
| 0 | 8.0 | ||
|
commits (all time) min: 1.0 | average: 2.1 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 8.0
|
|||
File Size vs. Contributors (all time): 29 points
|
|
490.0 | lines of code min: 6.0average: 108.86 25th percentile: 42.5 median: 79.0 75th percentile: 123.5 max: 490.0 |
|
| 0 | 5.0 | ||
|
contributors (all time) min: 1.0 | average: 1.52 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 5.0
|
|||
File Size vs. Commits (30 days): 12 points
|
|
490.0 | lines of code min: 7.0average: 125.5 25th percentile: 39.25 median: 79.5 75th percentile: 191.25 max: 490.0 |
|
| 0 | 3.0 | ||
|
commits (30d) min: 1.0 | average: 1.75 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.75 | max: 3.0
|
|||
File Size vs. Contributors (30 days): 12 points
|
|
490.0 | lines of code min: 7.0average: 125.5 25th percentile: 39.25 median: 79.5 75th percentile: 191.25 max: 490.0 |
|
| 0 | 3.0 | ||
|
contributors (30d) min: 1.0 | average: 1.33 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 3.0
|
|||
File Size vs. Commits (90 days): 27 points
|
|
490.0 | lines of code min: 6.0average: 114.41 25th percentile: 49.0 median: 82.0 75th percentile: 126.0 max: 490.0 |
|
| 0 | 6.0 | ||
|
commits (90d) min: 1.0 | average: 1.89 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 6.0
|
|||
File Size vs. Contributors (90 days): 27 points
|
|
490.0 | lines of code min: 6.0average: 114.41 25th percentile: 49.0 median: 82.0 75th percentile: 126.0 max: 490.0 |
|
| 0 | 5.0 | ||
|
contributors (90d) min: 1.0 | average: 1.52 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 5.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