anthropics/anthropic-sdk-csharp
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 2,055 files with 340,280 lines of code.
- 17 very long files (28,232 lines of code)
- 52 long files (33,729 lines of code)
- 390 medium size files (123,087 lines of code)
- 684 small files (92,388 lines of code)
- 912 very small files (62,844 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 |
|---|---|---|
| 2458 | 82 | |
| 2457 | 82 | |
| 2386 | 96 | |
| 2318 | 78 | |
| 2258 | 12 | |
| 2205 | 9 | |
| 2113 | 88 | |
| 1579 | 64 | |
| 1553 | 64 | |
| 1364 | 56 | |
| 1236 | 60 | |
| 1100 | 50 | |
| 1080 | 50 | |
| 1066 | 50 | |
| 1031 | 58 | |
| 1022 | 48 | |
| 1006 | 50 | |
| 953 | 50 | |
| 922 | 44 | |
| 904 | 40 | |
| 895 | 1 | |
| 878 | 42 | |
| 851 | 50 | |
| 828 | 50 | |
| 786 | 36 | |
| 762 | 38 | |
| 757 | 36 | |
| 748 | 36 | |
| 740 | 36 | |
| 727 | 33 | |
| 722 | 34 | |
| 702 | 36 | |
| 694 | 34 | |
| 691 | 33 | |
| 677 | 18 | |
| 669 | 39 | |
| 665 | 36 | |
| 659 | 39 | |
| 656 | 34 | |
| 646 | 26 | |
| 638 | 32 | |
| 631 | 32 | |
| 616 | 24 | |
| 613 | 28 | |
| 599 | 19 | |
| 598 | 19 | |
| 597 | 32 | |
| 591 | 32 | |
| 587 | 32 | |
| 582 | 30 |
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 |
|---|---|---|---|---|---|
| 2113 | ~10k–30k | 47 | ~150 | ~15 | |
| 2205 | ~15k–50k | 43 | ~150 | ~15 | |
| 2258 | ~15k–50k | 39 | ~150 | ~15 | |
| 1236 | ~7k–20k | 50 | ~70 | ~15 | |
| 895 | ~5k–15k | 69 | ~30 | ~30 | |
| 1066 | ~7k–15k | 48 | ~100 | ~10 | |
| 2457 | ~15k–50k | 16 | ~300 | ~7 | |
| 1553 | ~10k–30k | 25 | ~150 | ~10 | |
| 1364 | ~7k–20k | 28 | ~150 | ~7 | |
| 2458 | ~15k–50k | 15 | ~300 | ~7 | |
| 2318 | ~15k–50k | 15 | ~300 | ~7 | |
| 757 | ~5k–15k | 42 | ~50 | ~15 | |
| 1006 | ~7k–15k | 30 | ~100 | ~10 | |
| 677 | ~3k–10k | 44 | ~30 | ~20 | |
| 1100 | ~7k–20k | 22 | ~150 | ~7 | |
| 2386 | ~15k–50k | 10 | ~500 | ~5 | |
| 1080 | ~7k–20k | 22 | ~150 | ~7 | |
| 616 | ~3k–10k | 38 | ~70 | ~7 | |
| 922 | ~5k–15k | 24 | ~100 | ~7 | |
| 669 | ~3k–10k | 27 | ~70 | ~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 |
|---|---|---|
| 2386 | 96 | |
| 2113 | 88 | |
| 2458 | 82 | |
| 2457 | 82 | |
| 2318 | 78 | |
| 1579 | 64 | |
| 1553 | 64 | |
| 1236 | 60 | |
| 1031 | 58 | |
| 1364 | 56 | |
| 1006 | 50 | |
| 851 | 50 | |
| 1066 | 50 | |
| 953 | 50 | |
| 1080 | 50 | |
| 1100 | 50 | |
| 828 | 50 | |
| 1022 | 48 | |
| 922 | 44 | |
| 878 | 42 | |
| 904 | 40 | |
| 669 | 39 | |
| 659 | 39 | |
| 762 | 38 | |
| 665 | 36 | |
| 740 | 36 | |
| 702 | 36 | |
| 748 | 36 | |
| 786 | 36 | |
| 757 | 36 | |
| 722 | 34 | |
| 694 | 34 | |
| 656 | 34 | |
| 727 | 33 | |
| 691 | 33 | |
| 572 | 32 | |
| 571 | 32 | |
| 591 | 32 | |
| 587 | 32 | |
| 573 | 32 | |
| 541 | 32 | |
| 597 | 32 | |
| 638 | 32 | |
| 631 | 32 | |
| 522 | 32 | |
| 548 | 32 | |
| 537 | 31 | |
| 533 | 30 | |
| 582 | 30 | |
| 480 | 30 |
Files With Long Lines (Top 41)
There are 41 files with lines longer than 120 characters. In total, there are 65 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 1066 | 50 | 3 | |
| 1236 | 60 | 3 | |
| 135 | 9 | 3 | |
| 616 | 24 | 3 | |
| 102 | 2 | 3 | |
| 757 | 36 | 3 | |
| 171 | 5 | 3 | |
| 188 | 6 | 2 | |
| 106 | 4 | 2 | |
| 404 | 22 | 2 | |
| 94 | 2 | 2 | |
| 319 | 18 | 2 | |
| 345 | 20 | 2 | |
| 786 | 36 | 2 | |
| 64 | 5 | 2 | |
| 147 | 8 | 2 | |
| 187 | 6 | 2 | |
| 591 | 32 | 1 | |
| 394 | 22 | 1 | |
| 1022 | 48 | 1 | |
| 480 | 24 | 1 | |
| 465 | 21 | 1 | |
| 459 | 24 | 1 | |
| 121 | 9 | 1 | |
| 121 | 9 | 1 | |
| 121 | 9 | 1 | |
| 124 | 9 | 1 | |
| 121 | 9 | 1 | |
| 702 | 36 | 1 | |
| 133 | 9 | 1 | |
| 121 | 9 | 1 | |
| 121 | 9 | 1 | |
| 121 | 9 | 1 | |
| 127 | 9 | 1 | |
| 124 | 9 | 1 | |
| 124 | 9 | 1 | |
| 121 | 8 | 1 | |
| 404 | 22 | 1 | |
| 179 | 9 | 1 | |
| 147 | 9 | 1 | |
| 177 | 10 | 1 |
Correlations
File Size vs. Commits (all time): 2055 points
|
|
2458.0 | lines of code min: 1.0average: 165.59 25th percentile: 75.0 median: 108.0 75th percentile: 179.0 max: 2458.0 |
|
| 0 | 162.0 | ||
|
commits (all time) min: 1.0 | average: 6.06 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 6.0 | max: 162.0
|
|||
File Size vs. Contributors (all time): 2055 points
|
|
2458.0 | lines of code min: 1.0average: 165.59 25th percentile: 75.0 median: 108.0 75th percentile: 179.0 max: 2458.0 |
|
| 0 | 17.0 | ||
|
contributors (all time) min: 1.0 | average: 2.1 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 17.0
|
|||
File Size vs. Commits (30 days): 954 points
|
|
2458.0 | lines of code min: 1.0average: 204.28 25th percentile: 79.0 median: 133.0 75th percentile: 231.0 max: 2458.0 |
|
| 0 | 18.0 | ||
|
commits (30d) min: 2.0 | average: 2.47 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 18.0
|
|||
File Size vs. Contributors (30 days): 954 points
|
|
2458.0 | lines of code min: 1.0average: 204.28 25th percentile: 79.0 median: 133.0 75th percentile: 231.0 max: 2458.0 |
|
| 0 | 5.0 | ||
|
contributors (30d) min: 1.0 | average: 2.12 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 5.0
|
|||
File Size vs. Commits (90 days): 1431 points
|
|
2458.0 | lines of code min: 1.0average: 188.21 25th percentile: 75.0 median: 115.0 75th percentile: 217.0 max: 2458.0 |
|
| 0 | 54.0 | ||
|
commits (90d) min: 1.0 | average: 2.78 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 54.0
|
|||
File Size vs. Contributors (90 days): 1431 points
|
|
2458.0 | lines of code min: 1.0average: 188.21 25th percentile: 75.0 median: 115.0 75th percentile: 217.0 max: 2458.0 |
|
| 0 | 9.0 | ||
|
contributors (90d) min: 1.0 | average: 2.06 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.0 | max: 9.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