anthropics/claudes-c-compiler
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 364 files with 151,285 lines of code.
- 37 very long files (51,275 lines of code)
- 72 long files (52,378 lines of code)
- 111 medium size files (35,926 lines of code)
- 55 small files (7,977 lines of code)
- 89 very small files (3,729 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 |
|---|---|---|
| 2467 | 148 | |
| 2409 | 279 | |
| 2325 | 131 | |
| 2104 | 48 | |
| 1847 | 44 | |
| 1738 | 51 | |
| 1592 | 49 | |
| 1551 | 35 | |
| 1547 | 42 | |
| 1547 | 37 | |
| 1541 | 58 | |
| 1420 | 38 | |
| 1391 | 15 | |
| 1388 | 35 | |
| 1352 | 31 | |
| 1346 | - | |
| 1264 | 21 | |
| 1251 | 1 | |
| 1250 | 172 | |
| 1244 | 5 | |
| 1235 | - | |
| 1197 | 19 | |
| 1178 | 23 | |
| 1170 | 20 | |
| 1165 | 25 | |
| 1146 | 4 | |
| 1134 | 46 | |
| 1126 | 42 | |
| 1100 | 13 | |
| 1053 | 19 | |
| 1045 | 23 | |
| 1038 | 68 | |
| 1036 | 10 | |
| 1029 | - | |
| 1028 | 3 | |
| 1014 | 8 | |
| 1007 | - | |
| 997 | 13 | |
| 992 | 28 | |
| 991 | 127 | |
| 982 | 25 | |
| 978 | 1 | |
| 974 | 19 | |
| 971 | 65 | |
| 966 | 80 | |
| 949 | - | |
| 949 | 47 | |
| 946 | 48 | |
| 941 | 2 | |
| 940 | - |
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 |
|---|---|---|---|---|---|
| 1100 | ~7k–20k | 209 | ~50 | ~20 | |
| 1352 | ~7k–20k | 117 | ~50 | ~20 | |
| 1592 | ~10k–30k | 94 | ~70 | ~20 | |
| 1197 | ~7k–20k | 103 | ~30 | ~30 | |
| 1391 | ~7k–20k | 78 | ~50 | ~30 | |
| 677 | ~3k–10k | 157 | ~70 | ~10 | |
| 1045 | ~7k–15k | 92 | ~70 | ~15 | |
| 2104 | ~10k–30k | 45 | ~100 | ~20 | |
| 2325 | ~15k–50k | 36 | ~150 | ~15 | |
| 413 | ~2k–7k | 199 | ~70 | ~5 | |
| 1738 | ~10k–30k | 46 | ~100 | ~15 | |
| 1036 | ~7k–15k | 77 | ~30 | ~30 | |
| 1388 | ~7k–20k | 55 | ~50 | ~20 | |
| 1038 | ~7k–15k | 69 | ~30 | ~30 | |
| 1264 | ~7k–20k | 52 | ~50 | ~20 | |
| 843 | ~5k–15k | 72 | ~30 | ~20 | |
| 1146 | ~7k–20k | 51 | ~50 | ~20 | |
| 1165 | ~7k–20k | 50 | ~70 | ~15 | |
| 2467 | ~15k–50k | 23 | ~300 | ~10 | |
| 600 | ~3k–10k | 88 | ~15 | ~50 |
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 |
|---|---|---|
| 2409 | 279 | |
| 1250 | 172 | |
| 2467 | 148 | |
| 2325 | 131 | |
| 991 | 127 | |
| 966 | 80 | |
| 1038 | 68 | |
| 971 | 65 | |
| 730 | 59 | |
| 1541 | 58 | |
| 1738 | 51 | |
| 360 | 50 | |
| 1592 | 49 | |
| 829 | 49 | |
| 2104 | 48 | |
| 240 | 48 | |
| 946 | 48 | |
| 949 | 47 | |
| 263 | 47 | |
| 1134 | 46 | |
| 1847 | 44 | |
| 380 | 42 | |
| 1547 | 42 | |
| 1126 | 42 | |
| 634 | 42 | |
| 1420 | 38 | |
| 1547 | 37 | |
| 1551 | 35 | |
| 1388 | 35 | |
| 1352 | 31 | |
| 992 | 28 | |
| 912 | 26 | |
| 265 | 25 | |
| 982 | 25 | |
| 1165 | 25 | |
| 1045 | 23 | |
| 1178 | 23 | |
| 1264 | 21 | |
| 686 | 20 | |
| 437 | 20 | |
| 1170 | 20 | |
| 774 | 20 | |
| 974 | 19 | |
| 1197 | 19 | |
| 1053 | 19 | |
| 753 | 19 | |
| 901 | 18 | |
| 341 | 18 | |
| 723 | 18 | |
| 551 | 17 |
Files With Long Lines (Top 50)
There are 152 files with lines longer than 120 characters. In total, there are 897 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 673 | 9 | 51 | |
| 1178 | 23 | 39 | |
| 634 | 42 | 33 | |
| 551 | 17 | 32 | |
| 1346 | - | 31 | |
| 1847 | 44 | 30 | |
| 1235 | - | 28 | |
| 264 | 6 | 26 | |
| 787 | 9 | 26 | |
| 843 | 17 | 23 | |
| 1100 | 13 | 21 | |
| 1264 | 21 | 16 | |
| 288 | 6 | 15 | |
| 974 | 19 | 14 | |
| 1045 | 23 | 14 | |
| 1014 | 8 | 13 | |
| 2104 | 48 | 13 | |
| 510 | 1 | 13 | |
| 1146 | 4 | 12 | |
| 448 | - | 12 | |
| 1038 | 68 | 11 | |
| 627 | 9 | 10 | |
| 311 | 4 | 10 | |
| 1251 | 1 | 10 | |
| 805 | 13 | 9 | |
| 901 | 18 | 9 | |
| 708 | 2 | 9 | |
| 1551 | 35 | 9 | |
| 2325 | 131 | 9 | |
| 446 | 1 | 9 | |
| 1547 | 37 | 9 | |
| 563 | - | 8 | |
| 1007 | - | 8 | |
| 830 | - | 8 | |
| 992 | 28 | 7 | |
| 1197 | 19 | 7 | |
| 185 | 1 | 7 | |
| 520 | 3 | 7 | |
| 940 | - | 7 | |
| 677 | 10 | 6 | |
| 323 | 4 | 6 | |
| 700 | 14 | 6 | |
| 609 | 2 | 6 | |
| 776 | - | 6 | |
| 434 | 8 | 6 | |
| 982 | 25 | 5 | |
| 814 | 9 | 5 | |
| 596 | 3 | 5 | |
| 771 | 16 | 5 | |
| 1244 | 5 | 5 |
Correlations
File Size vs. Commits (all time): 364 points
|
|
2467.0 | lines of code min: 3.0average: 415.62 25th percentile: 102.25 median: 267.0 75th percentile: 598.25 max: 2467.0 |
|
| 0 | 209.0 | ||
|
commits (all time) min: 1.0 | average: 14.15 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 15.0 | max: 209.0
|
|||
File Size vs. Contributors (all time): 364 points
|
|
2467.0 | lines of code min: 3.0average: 415.62 25th percentile: 102.25 median: 267.0 75th percentile: 598.25 max: 2467.0 |
|
| 0 | 1.0 | ||
|
contributors (all time) min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.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): 0 points
No data for "commits (90d)" vs. "lines of code".
File Size vs. Contributors (90 days): 0 points
No data for "contributors (90d)" vs. "lines of code".
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