anthropics/claude-code-action
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 69 files with 10,075 lines of code.
- 1 very long files (1,155 lines of code)
- 1 long files (855 lines of code)
- 14 medium size files (4,141 lines of code)
- 16 small files (2,282 lines of code)
- 37 very small files (1,642 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 |
|---|---|---|
| 1155 | 54 | |
| 855 | 10 | |
| 487 | 5 | |
| 485 | 11 | |
| 380 | 7 | |
| 323 | 12 | |
| 315 | 6 | |
| 281 | 11 | |
| 278 | 14 | |
| 266 | 2 | |
| 243 | 4 | |
| 231 | 6 | |
| 226 | 7 | |
| 220 | 9 | |
| 204 | 4 | |
| 202 | - | |
| 197 | 7 | |
| 180 | 9 | |
| 175 | 3 | |
| 153 | - | |
| 149 | - | |
| 146 | 2 | |
| 146 | 5 | |
| 145 | 4 | |
| 136 | - | |
| 135 | 7 | |
| 134 | 2 | |
| 123 | 8 | |
| 119 | 4 | |
| 116 | 1 | |
| 115 | - | |
| 113 | 5 | |
| 98 | - | |
| 97 | 3 | |
| 93 | 2 | |
| 89 | 6 | |
| 84 | - | |
| 83 | - | |
| 82 | - | |
| 80 | 3 | |
| 76 | 1 | |
| 72 | 1 | |
| 66 | 2 | |
| 64 | 3 | |
| 54 | 1 | |
| 54 | 1 | |
| 53 | 1 | |
| 45 | 1 | |
| 43 | 1 | |
| 43 | 4 |
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 |
|---|---|---|---|---|---|
| 315 | ~2k–5k | 219 | ~5 | ~70 | |
| 855 | ~5k–15k | 18 | ~20 | ~30 | |
| 485 | ~3k–7k | 10 | ~50 | ~10 | |
| 243 | ~1.5k–5k | 17 | ~20 | ~10 | |
| 231 | ~1.5k–5k | 14 | ~30 | ~7 | |
| 220 | ~1.5k–5k | 13 | ~30 | ~7 | |
| 226 | ~1.5k–5k | 12 | ~30 | ~7 | |
| 487 | ~3k–7k | 5 | ~50 | ~10 | |
| 281 | ~1.5k–5k | 7 | ~15 | ~20 | |
| 145 | ~1k–3k | 12 | ~20 | ~7 | |
| 1155 | ~7k–20k | 1 | ~2,000 | ~1 | |
| 380 | ~2k–7k | 3 | ~70 | ~5 | |
| 197 | ~1k–3k | 5 | ~15 | ~15 | |
| 323 | ~2k–5k | 3 | ~50 | ~7 | |
| 149 | ~1k–3k | 6 | ~5 | ~30 | |
| 115 | ~700–2k | 7 | ~5 | ~20 | |
| 113 | ~700–2k | 7 | ~30 | ~3 | |
| 153 | ~1k–3k | 5 | ~15 | ~10 | |
| 146 | ~1k–3k | 5 | ~30 | ~5 | |
| 180 | ~1k–3k | 4 | ~100 | ~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 50)
| File | # lines | # units |
|---|---|---|
| 1155 | 54 | |
| 278 | 14 | |
| 323 | 12 | |
| 281 | 11 | |
| 485 | 11 | |
| 855 | 10 | |
| 180 | 9 | |
| 220 | 9 | |
| 123 | 8 | |
| 226 | 7 | |
| 197 | 7 | |
| 135 | 7 | |
| 380 | 7 | |
| 231 | 6 | |
| 89 | 6 | |
| 315 | 6 | |
| 487 | 5 | |
| 146 | 5 | |
| 113 | 5 | |
| 145 | 4 | |
| 43 | 4 | |
| 30 | 4 | |
| 243 | 4 | |
| 119 | 4 | |
| 204 | 4 | |
| 175 | 3 | |
| 64 | 3 | |
| 36 | 3 | |
| 97 | 3 | |
| 42 | 3 | |
| 80 | 3 | |
| 66 | 2 | |
| 93 | 2 | |
| 14 | 2 | |
| 266 | 2 | |
| 19 | 2 | |
| 146 | 2 | |
| 134 | 2 | |
| 23 | 1 | |
| 41 | 1 | |
| 72 | 1 | |
| 54 | 1 | |
| 18 | 1 | |
| 43 | 1 | |
| 36 | 1 | |
| 11 | 1 | |
| 45 | 1 | |
| 53 | 1 | |
| 116 | 1 | |
| 21 | 1 |
Files With Long Lines (Top 21)
There are 21 files with lines longer than 120 characters. In total, there are 114 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 855 | 10 | 54 | |
| 136 | - | 20 | |
| 175 | 3 | 5 | |
| 72 | 1 | 4 | |
| 202 | - | 4 | |
| 243 | 4 | 4 | |
| 226 | 7 | 3 | |
| 485 | 11 | 3 | |
| 76 | 1 | 2 | |
| 119 | 4 | 2 | |
| 204 | 4 | 2 | |
| 153 | - | 2 | |
| 89 | 6 | 1 | |
| 19 | - | 1 | |
| 197 | 7 | 1 | |
| 487 | 5 | 1 | |
| 30 | 4 | 1 | |
| 220 | 9 | 1 | |
| 146 | 2 | 1 | |
| 146 | 5 | 1 | |
| 113 | 5 | 1 |
Correlations
File Size vs. Commits (all time): 69 points
|
|
1155.0 | lines of code min: 2.0average: 146.01 25th percentile: 38.5 median: 93.0 75th percentile: 188.5 max: 1155.0 |
|
| 0 | 219.0 | ||
|
commits (all time) min: 1.0 | average: 10.68 | 25th percentile: 1.0 | median: 4.0 | 75th percentile: 11.0 | max: 219.0
|
|||
File Size vs. Contributors (all time): 69 points
|
|
1155.0 | lines of code min: 2.0average: 146.01 25th percentile: 38.5 median: 93.0 75th percentile: 188.5 max: 1155.0 |
|
| 0 | 19.0 | ||
|
contributors (all time) min: 1.0 | average: 4.06 | 25th percentile: 1.0 | median: 3.0 | 75th percentile: 6.0 | max: 19.0
|
|||
File Size vs. Commits (30 days): 3 points
|
|
315.0 | lines of code min: 12.0average: 201.67 25th percentile: 12.0 median: 278.0 75th percentile: 315.0 max: 315.0 |
|
| 0 | 28.0 | ||
|
commits (30d) min: 1.0 | average: 10.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 28.0 | max: 28.0
|
|||
File Size vs. Contributors (30 days): 3 points
|
|
315.0 | lines of code min: 12.0average: 201.67 25th percentile: 12.0 median: 278.0 75th percentile: 315.0 max: 315.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): 44 points
|
|
855.0 | lines of code min: 9.0average: 173.14 25th percentile: 80.5 median: 140.0 75th percentile: 229.75 max: 855.0 |
|
| 0 | 82.0 | ||
|
commits (90d) min: 1.0 | average: 3.66 | 25th percentile: 1.0 | median: 1.5 | 75th percentile: 2.75 | max: 82.0
|
|||
File Size vs. Contributors (90 days): 44 points
|
|
855.0 | lines of code min: 9.0average: 173.14 25th percentile: 80.5 median: 140.0 75th percentile: 229.75 max: 855.0 |
|
| 0 | 4.0 | ||
|
contributors (90d) min: 1.0 | average: 1.82 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.75 | max: 4.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