Netflix/metaflow-nflx-extensions
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 140 files with 24,815 lines of code.
- 4 very long files (7,090 lines of code)
- 9 long files (6,292 lines of code)
- 17 medium size files (6,206 lines of code)
- 19 small files (2,621 lines of code)
- 91 very small files (2,606 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 |
|---|---|---|
| 2497 | 99 | |
| 2327 | 87 | |
| 1228 | 124 | |
| 1038 | 13 | |
| 985 | 57 | |
| 930 | 39 | |
| 856 | 14 | |
| 639 | 26 | |
| 611 | 21 | |
| 606 | 9 | |
| 560 | 12 | |
| 554 | 29 | |
| 551 | 32 | |
| 487 | 2 | |
| 466 | 38 | |
| 463 | 22 | |
| 449 | 26 | |
| 444 | 15 | |
| 442 | 29 | |
| 411 | 25 | |
| 395 | 56 | |
| 382 | 18 | |
| 366 | 1 | |
| 315 | 6 | |
| 298 | 14 | |
| 286 | 2 | |
| 264 | 14 | |
| 262 | 8 | |
| 240 | 16 | |
| 236 | 18 | |
| 197 | 12 | |
| 188 | 4 | |
| 170 | 10 | |
| 166 | 4 | |
| 165 | 8 | |
| 160 | 19 | |
| 153 | 2 | |
| 151 | 10 | |
| 139 | 11 | |
| 130 | 8 | |
| 127 | 9 | |
| 118 | 9 | |
| 117 | 7 | |
| 115 | 13 | |
| 111 | 9 | |
| 107 | 1 | |
| 103 | 2 | |
| 103 | 6 | |
| 101 | 7 | |
| 94 | 6 |
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 |
|---|---|---|---|---|---|
| 930 | ~5k–15k | 8 | ~200 | ~5 | |
| 2327 | ~15k–50k | 3 | ~1,000 | ~2 | |
| 985 | ~5k–15k | 3 | ~500 | ~2 | |
| 551 | ~3k–10k | 5 | ~200 | ~2 | |
| 2497 | ~15k–50k | 1 | ~3,000 | ~1 | |
| 1228 | ~7k–20k | 2 | ~1,000 | ~2 | |
| 463 | ~3k–7k | 5 | ~150 | ~3 | |
| 449 | ~3k–7k | 5 | ~150 | ~3 | |
| 611 | ~3k–10k | 3 | ~300 | ~2 | |
| 444 | ~3k–7k | 4 | ~200 | ~2 | |
| 856 | ~5k–15k | 2 | ~700 | ~2 | |
| 639 | ~3k–10k | 2 | ~500 | ~2 | |
| 606 | ~3k–10k | 2 | ~500 | ~2 | |
| 554 | ~3k–10k | 2 | ~500 | ~2 | |
| 1038 | ~7k–15k | 1 | ~1,500 | ~1 | |
| 487 | ~3k–7k | 2 | ~300 | ~2 | |
| 411 | ~2k–7k | 2 | ~300 | ~1 | |
| 382 | ~2k–7k | 2 | ~300 | ~1 | |
| 366 | ~2k–7k | 2 | ~200 | ~2 | |
| 139 | ~700–2k | 5 | ~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 |
|---|---|---|
| 1228 | 124 | |
| 2497 | 99 | |
| 2327 | 87 | |
| 985 | 57 | |
| 395 | 56 | |
| 930 | 39 | |
| 466 | 38 | |
| 551 | 32 | |
| 554 | 29 | |
| 442 | 29 | |
| 449 | 26 | |
| 639 | 26 | |
| 411 | 25 | |
| 463 | 22 | |
| 611 | 21 | |
| 160 | 19 | |
| 236 | 18 | |
| 382 | 18 | |
| 240 | 16 | |
| 444 | 15 | |
| 298 | 14 | |
| 264 | 14 | |
| 48 | 14 | |
| 856 | 14 | |
| 74 | 13 | |
| 115 | 13 | |
| 1038 | 13 | |
| 197 | 12 | |
| 560 | 12 | |
| 39 | 11 | |
| 139 | 11 | |
| 65 | 11 | |
| 170 | 10 | |
| 79 | 10 | |
| 151 | 10 | |
| 127 | 9 | |
| 111 | 9 | |
| 81 | 9 | |
| 118 | 9 | |
| 26 | 9 | |
| 85 | 9 | |
| 606 | 9 | |
| 45 | 8 | |
| 262 | 8 | |
| 130 | 8 | |
| 165 | 8 | |
| 74 | 7 | |
| 117 | 7 | |
| 101 | 7 | |
| 25 | 7 |
Files With Long Lines (Top 4)
There are 4 files with lines longer than 120 characters. In total, there are 8 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 94 | 6 | 4 | |
| 139 | 11 | 2 | |
| 551 | 32 | 1 | |
| 264 | 14 | 1 |
Correlations
File Size vs. Commits (all time): 140 points
|
|
2497.0 | lines of code min: 1.0average: 177.25 25th percentile: 13.0 median: 47.5 75th percentile: 163.75 max: 2497.0 |
|
| 0 | 8.0 | ||
|
commits (all time) min: 1.0 | average: 1.55 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 8.0
|
|||
File Size vs. Contributors (all time): 140 points
|
|
2497.0 | lines of code min: 1.0average: 177.25 25th percentile: 13.0 median: 47.5 75th percentile: 163.75 max: 2497.0 |
|
| 0 | 2.0 | ||
|
contributors (all time) min: 1.0 | average: 1.14 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0
|
|||
File Size vs. Commits (30 days): 12 points
|
|
611.0 | lines of code min: 1.0average: 252.33 25th percentile: 75.75 median: 174.0 75th percentile: 459.5 max: 611.0 |
|
| 0 | 3.0 | ||
|
commits (30d) min: 1.0 | average: 1.42 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 3.0
|
|||
File Size vs. Contributors (30 days): 12 points
|
|
611.0 | lines of code min: 1.0average: 252.33 25th percentile: 75.75 median: 174.0 75th percentile: 459.5 max: 611.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): 25 points
|
|
985.0 | lines of code min: 1.0average: 216.48 25th percentile: 48.5 median: 117.0 75th percentile: 354.5 max: 985.0 |
|
| 0 | 4.0 | ||
|
commits (90d) min: 1.0 | average: 1.4 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.5 | max: 4.0
|
|||
File Size vs. Contributors (90 days): 25 points
|
|
985.0 | lines of code min: 1.0average: 216.48 25th percentile: 48.5 median: 117.0 75th percentile: 354.5 max: 985.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