anthropics/cryptography-research-demo
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 115 files with 24,723 lines of code.
- 6 very long files (8,351 lines of code)
- 6 long files (4,053 lines of code)
- 18 medium size files (5,366 lines of code)
- 30 small files (4,182 lines of code)
- 55 very small files (2,771 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 |
|---|---|---|
| 1636 | 58 | |
| 1635 | 57 | |
| 1575 | 53 | |
| 1344 | 16 | |
| 1110 | 43 | |
| 1051 | 43 | |
| 975 | 28 | |
| 845 | 21 | |
| 592 | 25 | |
| 560 | 18 | |
| 557 | 25 | |
| 524 | 15 | |
| 423 | 34 | |
| 419 | 14 | |
| 383 | 29 | |
| 356 | 12 | |
| 355 | 15 | |
| 345 | 3 | |
| 314 | 17 | |
| 296 | 3 | |
| 293 | 11 | |
| 291 | 14 | |
| 258 | 8 | |
| 254 | 14 | |
| 253 | - | |
| 238 | 13 | |
| 234 | 1 | |
| 226 | 7 | |
| 216 | 8 | |
| 212 | 8 | |
| 200 | 17 | |
| 198 | 7 | |
| 193 | 8 | |
| 176 | 10 | |
| 175 | 10 | |
| 174 | 2 | |
| 165 | 8 | |
| 164 | - | |
| 161 | 5 | |
| 160 | 2 | |
| 158 | 8 | |
| 155 | 1 | |
| 144 | 12 | |
| 140 | 8 | |
| 132 | - | |
| 130 | 6 | |
| 129 | 4 | |
| 121 | 5 | |
| 117 | 5 | |
| 117 | 8 |
Large Files That Change Often (Top 9)
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 |
|---|---|---|---|---|---|
| 132 | ~700–2k | 1 | ~150 | ~1 | |
| 94 | ~500–1.5k | 1 | ~100 | ~1 | |
| 79 | ~500–1.5k | 1 | ~100 | ~1 | |
| 24 | under 1k | 1 | ~30 | ~1 | |
| 22 | under 1k | 1 | ~30 | ~1 | |
| 11 | under 1k | 1 | ~15 | ~1 | |
| 11 | under 1k | 1 | ~15 | ~1 | |
| 10 | under 1k | 1 | ~20 | ~1 | |
| 8 | under 1k | 1 | ~7 | ~1 |
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 |
|---|---|---|
| 1636 | 58 | |
| 1635 | 57 | |
| 1575 | 53 | |
| 1051 | 43 | |
| 1110 | 43 | |
| 423 | 34 | |
| 383 | 29 | |
| 975 | 28 | |
| 557 | 25 | |
| 592 | 25 | |
| 845 | 21 | |
| 101 | 19 | |
| 109 | 19 | |
| 560 | 18 | |
| 104 | 17 | |
| 314 | 17 | |
| 200 | 17 | |
| 1344 | 16 | |
| 524 | 15 | |
| 355 | 15 | |
| 254 | 14 | |
| 291 | 14 | |
| 419 | 14 | |
| 238 | 13 | |
| 144 | 12 | |
| 84 | 12 | |
| 356 | 12 | |
| 293 | 11 | |
| 48 | 11 | |
| 100 | 10 | |
| 53 | 10 | |
| 176 | 10 | |
| 175 | 10 | |
| 64 | 9 | |
| 34 | 8 | |
| 140 | 8 | |
| 117 | 8 | |
| 165 | 8 | |
| 115 | 8 | |
| 216 | 8 | |
| 158 | 8 | |
| 258 | 8 | |
| 193 | 8 | |
| 40 | 8 | |
| 212 | 8 | |
| 107 | 7 | |
| 34 | 7 | |
| 198 | 7 | |
| 226 | 7 | |
| 90 | 7 |
Files With Long Lines (Top 38)
There are 38 files with lines longer than 120 characters. In total, there are 539 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 1344 | 16 | 105 | |
| 592 | 25 | 45 | |
| 845 | 21 | 44 | |
| 1636 | 58 | 43 | |
| 557 | 25 | 41 | |
| 1575 | 53 | 41 | |
| 975 | 28 | 35 | |
| 296 | 3 | 23 | |
| 253 | - | 16 | |
| 345 | 3 | 14 | |
| 226 | 7 | 11 | |
| 524 | 15 | 10 | |
| 234 | 1 | 10 | |
| 164 | - | 10 | |
| 100 | 4 | 9 | |
| 176 | 10 | 9 | |
| 216 | 8 | 8 | |
| 158 | 8 | 8 | |
| 1635 | 57 | 6 | |
| 83 | - | 6 | |
| 86 | 4 | 5 | |
| 115 | 5 | 5 | |
| 96 | - | 3 | |
| 291 | 14 | 3 | |
| 161 | 5 | 3 | |
| 27 | 1 | 3 | |
| 65 | - | 3 | |
| 198 | 7 | 3 | |
| 129 | 4 | 3 | |
| 423 | 34 | 2 | |
| 104 | 17 | 2 | |
| 419 | 14 | 2 | |
| 258 | 8 | 2 | |
| 314 | 17 | 2 | |
| 117 | 5 | 1 | |
| 254 | 14 | 1 | |
| 51 | 1 | 1 | |
| 560 | 18 | 1 |
Correlations
File Size vs. Commits (all time): 9 points
|
|
132.0 | lines of code min: 8.0average: 43.44 25th percentile: 10.5 median: 22.0 75th percentile: 86.5 max: 132.0 |
|
| 0 | 1.0 | ||
|
commits (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. Contributors (all time): 9 points
|
|
132.0 | lines of code min: 8.0average: 43.44 25th percentile: 10.5 median: 22.0 75th percentile: 86.5 max: 132.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): 9 points
|
|
132.0 | lines of code min: 8.0average: 43.44 25th percentile: 10.5 median: 22.0 75th percentile: 86.5 max: 132.0 |
|
| 0 | 1.0 | ||
|
commits (90d) min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0
|
|||
File Size vs. Contributors (90 days): 9 points
|
|
132.0 | lines of code min: 8.0average: 43.44 25th percentile: 10.5 median: 22.0 75th percentile: 86.5 max: 132.0 |
|
| 0 | 1.0 | ||
|
contributors (90d) min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.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