anthropics/anthropic-sdk-java
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 2,446 files with 491,231 lines of code.
- 21 very long files (30,725 lines of code)
- 119 long files (75,041 lines of code)
- 621 medium size files (187,243 lines of code)
- 1,103 small files (163,426 lines of code)
- 582 very small files (34,796 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 |
|---|---|---|
| 2387 | 60 | |
| 2296 | 61 | |
| 2196 | 61 | |
| 2023 | 59 | |
| 1910 | 30 | |
| 1893 | 60 | |
| 1829 | 26 | |
| 1368 | 33 | |
| 1307 | 33 | |
| 1299 | 32 | |
| 1224 | 10 | |
| 1206 | 31 | |
| 1191 | 9 | |
| 1133 | 21 | |
| 1106 | 21 | |
| 1105 | 32 | |
| 1072 | 27 | |
| 1065 | 17 | |
| 1049 | 19 | |
| 1045 | 22 | |
| 1021 | 17 | |
| 949 | 28 | |
| 940 | 17 | |
| 891 | 26 | |
| 882 | 24 | |
| 879 | 47 | |
| 865 | 24 | |
| 850 | 23 | |
| 850 | 23 | |
| 824 | 11 | |
| 816 | 17 | |
| 802 | 24 | |
| 793 | 7 | |
| 793 | 7 | |
| 791 | 7 | |
| 780 | 14 | |
| 778 | 16 | |
| 763 | 1 | |
| 752 | 22 | |
| 742 | 14 | |
| 737 | 13 | |
| 737 | 1 | |
| 734 | 16 | |
| 734 | 17 | |
| 729 | 20 | |
| 707 | 6 | |
| 706 | 6 | |
| 700 | 10 | |
| 690 | 12 | |
| 686 | 13 |
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 |
|---|---|---|---|---|---|
| 2387 | ~15k–50k | 45 | ~300 | ~7 | |
| 1910 | ~10k–30k | 54 | ~200 | ~10 | |
| 1829 | ~10k–30k | 49 | ~150 | ~15 | |
| 2196 | ~15k–50k | 25 | ~500 | ~5 | |
| 2296 | ~15k–50k | 23 | ~500 | ~5 | |
| 1224 | ~7k–20k | 42 | ~100 | ~10 | |
| 1191 | ~7k–20k | 42 | ~200 | ~7 | |
| 2023 | ~10k–30k | 24 | ~500 | ~5 | |
| 1893 | ~10k–30k | 18 | ~500 | ~5 | |
| 1299 | ~7k–20k | 24 | ~150 | ~10 | |
| 1105 | ~7k–20k | 27 | ~150 | ~7 | |
| 1065 | ~7k–15k | 24 | ~150 | ~7 | |
| 1206 | ~7k–20k | 21 | ~300 | ~5 | |
| 791 | ~5k–15k | 31 | ~200 | ~5 | |
| 1021 | ~7k–15k | 23 | ~100 | ~10 | |
| 824 | ~5k–15k | 28 | ~70 | ~10 | |
| 949 | ~5k–15k | 24 | ~100 | ~10 | |
| 1368 | ~7k–20k | 16 | ~200 | ~7 | |
| 1133 | ~7k–20k | 19 | ~150 | ~7 | |
| 1106 | ~7k–20k | 19 | ~150 | ~7 |
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 |
|---|---|---|
| 2296 | 61 | |
| 2196 | 61 | |
| 2387 | 60 | |
| 1893 | 60 | |
| 2023 | 59 | |
| 879 | 47 | |
| 235 | 36 | |
| 1307 | 33 | |
| 1368 | 33 | |
| 1105 | 32 | |
| 1299 | 32 | |
| 1206 | 31 | |
| 1910 | 30 | |
| 532 | 29 | |
| 517 | 29 | |
| 376 | 29 | |
| 949 | 28 | |
| 1072 | 27 | |
| 345 | 27 | |
| 1829 | 26 | |
| 891 | 26 | |
| 185 | 26 | |
| 294 | 26 | |
| 419 | 25 | |
| 279 | 25 | |
| 511 | 24 | |
| 802 | 24 | |
| 882 | 24 | |
| 865 | 24 | |
| 279 | 24 | |
| 850 | 23 | |
| 850 | 23 | |
| 367 | 23 | |
| 281 | 23 | |
| 277 | 23 | |
| 1045 | 22 | |
| 752 | 22 | |
| 297 | 22 | |
| 283 | 22 | |
| 263 | 22 | |
| 266 | 22 | |
| 264 | 22 | |
| 264 | 22 | |
| 1133 | 21 | |
| 1106 | 21 | |
| 494 | 21 | |
| 332 | 21 | |
| 222 | 21 | |
| 223 | 21 | |
| 258 | 21 |
Files With Long Lines (Top 50)
There are 1229 files with lines longer than 120 characters. In total, there are 1445 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 1910 | 30 | 28 | |
| 1191 | 9 | 26 | |
| 538 | 2 | 26 | |
| 1829 | 26 | 14 | |
| 1224 | 10 | 14 | |
| 26 | - | 12 | |
| 203 | 1 | 9 | |
| 18 | - | 7 | |
| 780 | 14 | 6 | |
| 180 | 1 | 6 | |
| 179 | 1 | 6 | |
| 207 | 1 | 6 | |
| 1049 | 19 | 6 | |
| 18 | - | 6 | |
| 532 | 29 | 5 | |
| 511 | 24 | 3 | |
| 517 | 29 | 3 | |
| 12 | - | 3 | |
| 422 | 3 | 2 | |
| 426 | 3 | 2 | |
| 297 | 2 | 2 | |
| 365 | 3 | 2 | |
| 365 | 3 | 2 | |
| 617 | 10 | 2 | |
| 603 | 10 | 2 | |
| 581 | 9 | 2 | |
| 649 | 9 | 2 | |
| 467 | 2 | 2 | |
| 442 | 2 | 2 | |
| 314 | 2 | 2 | |
| 331 | 2 | 2 | |
| 442 | 3 | 2 | |
| 426 | 3 | 2 | |
| 318 | 2 | 2 | |
| 385 | 3 | 2 | |
| 386 | 3 | 2 | |
| 620 | 10 | 2 | |
| 606 | 10 | 2 | |
| 603 | 9 | 2 | |
| 670 | 9 | 2 | |
| 577 | 3 | 2 | |
| 557 | 3 | 2 | |
| 385 | 7 | 2 | |
| 707 | 6 | 2 | |
| 504 | 10 | 2 | |
| 359 | 3 | 2 | |
| 2387 | 60 | 2 | |
| 700 | 10 | 2 | |
| 678 | 10 | 2 | |
| 548 | 6 | 2 |
Correlations
File Size vs. Commits (all time): 2446 points
|
|
2387.0 | lines of code min: 1.0average: 200.83 25th percentile: 109.0 median: 155.0 75th percentile: 228.0 max: 2387.0 |
|
| 0 | 233.0 | ||
|
commits (all time) min: 1.0 | average: 7.06 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 9.0 | max: 233.0
|
|||
File Size vs. Contributors (all time): 2446 points
|
|
2387.0 | lines of code min: 1.0average: 200.83 25th percentile: 109.0 median: 155.0 75th percentile: 228.0 max: 2387.0 |
|
| 0 | 18.0 | ||
|
contributors (all time) min: 1.0 | average: 3.38 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 4.0 | max: 18.0
|
|||
File Size vs. Commits (30 days): 2324 points
|
|
2387.0 | lines of code min: 1.0average: 208.65 25th percentile: 113.0 median: 162.0 75th percentile: 235.0 max: 2387.0 |
|
| 0 | 22.0 | ||
|
commits (30d) min: 1.0 | average: 2.56 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 22.0
|
|||
File Size vs. Contributors (30 days): 2324 points
|
|
2387.0 | lines of code min: 1.0average: 208.65 25th percentile: 113.0 median: 162.0 75th percentile: 235.0 max: 2387.0 |
|
| 0 | 8.0 | ||
|
contributors (30d) min: 1.0 | average: 2.14 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 8.0
|
|||
File Size vs. Commits (90 days): 2344 points
|
|
2387.0 | lines of code min: 1.0average: 207.55 25th percentile: 113.0 median: 162.0 75th percentile: 233.75 max: 2387.0 |
|
| 0 | 56.0 | ||
|
commits (90d) min: 1.0 | average: 4.34 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 5.0 | max: 56.0
|
|||
File Size vs. Contributors (90 days): 2344 points
|
|
2387.0 | lines of code min: 1.0average: 207.55 25th percentile: 113.0 median: 162.0 75th percentile: 233.75 max: 2387.0 |
|
| 0 | 8.0 | ||
|
contributors (90d) min: 1.0 | average: 3.02 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 4.0 | max: 8.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