guardian/svelte-components-prototyping-beta
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 166 files with 21,169 lines of code.
- 3 very long files (6,627 lines of code)
- 4 long files (2,802 lines of code)
- 19 medium size files (5,876 lines of code)
- 16 small files (2,245 lines of code)
- 124 very small files (3,619 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 |
|---|---|---|
| 3712 | - | |
| 1696 | - | |
| 1219 | - | |
| 883 | - | |
| 689 | - | |
| 619 | - | |
| 611 | - | |
| 491 | - | |
| 420 | - | |
| 419 | - | |
| 391 | - | |
| 387 | 30 | |
| 359 | 19 | |
| 350 | - | |
| 348 | - | |
| 347 | 14 | |
| 288 | - | |
| 286 | - | |
| 278 | - | |
| 247 | - | |
| 230 | - | |
| 225 | - | |
| 204 | - | |
| 203 | - | |
| 202 | - | |
| 201 | - | |
| 198 | - | |
| 178 | - | |
| 175 | - | |
| 175 | - | |
| 169 | - | |
| 168 | 20 | |
| 152 | 6 | |
| 129 | - | |
| 123 | 7 | |
| 115 | 11 | |
| 112 | - | |
| 112 | - | |
| 111 | - | |
| 111 | 1 | |
| 109 | - | |
| 108 | - | |
| 100 | - | |
| 96 | - | |
| 91 | 5 | |
| 89 | - | |
| 86 | - | |
| 86 | - | |
| 84 | 4 | |
| 84 | - |
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 |
|---|---|---|---|---|---|
| 1219 | ~7k–20k | 8 | ~200 | ~5 | |
| 611 | ~3k–10k | 10 | ~200 | ~3 | |
| 689 | ~3k–10k | 7 | ~200 | ~3 | |
| 3712 | ~20k–70k | 1 | ~3,000 | ~1 | |
| 419 | ~2k–7k | 6 | ~100 | ~5 | |
| 387 | ~2k–7k | 6 | ~30 | ~10 | |
| 883 | ~5k–15k | 2 | ~500 | ~2 | |
| 1696 | ~10k–30k | 1 | ~1,500 | ~1 | |
| 391 | ~2k–7k | 4 | ~150 | ~2 | |
| 286 | ~2k–5k | 5 | ~300 | ~1 | |
| 420 | ~2k–7k | 3 | ~150 | ~3 | |
| 619 | ~3k–10k | 2 | ~300 | ~2 | |
| 347 | ~2k–5k | 3 | ~200 | ~2 | |
| 491 | ~3k–7k | 2 | ~50 | ~10 | |
| 247 | ~1.5k–5k | 3 | ~100 | ~2 | |
| 230 | ~1.5k–5k | 3 | ~100 | ~2 | |
| 204 | ~1k–3k | 3 | ~3 | ~70 | |
| 278 | ~1.5k–5k | 2 | ~150 | ~2 | |
| 169 | ~1k–3k | 3 | ~70 | ~2 | |
| 178 | ~1k–3k | 2 | ~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 37)
| File | # lines | # units |
|---|---|---|
| 387 | 30 | |
| 168 | 20 | |
| 359 | 19 | |
| 347 | 14 | |
| 115 | 11 | |
| 33 | 8 | |
| 123 | 7 | |
| 152 | 6 | |
| 91 | 5 | |
| 84 | 4 | |
| 68 | 4 | |
| 18 | 4 | |
| 26 | 2 | |
| 41 | 2 | |
| 27 | 2 | |
| 27 | 2 | |
| 37 | 2 | |
| 22 | 2 | |
| 47 | 2 | |
| 78 | 1 | |
| 33 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 9 | 1 | |
| 8 | 1 | |
| 57 | 1 | |
| 111 | 1 | |
| 56 | 1 |
Files With Long Lines (Top 42)
There are 42 files with lines longer than 120 characters. In total, there are 363 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 3712 | - | 93 | |
| 1696 | - | 73 | |
| 203 | - | 39 | |
| 204 | - | 39 | |
| 419 | - | 22 | |
| 288 | - | 11 | |
| 25 | - | 7 | |
| 21 | - | 6 | |
| 247 | - | 6 | |
| 883 | - | 5 | |
| 619 | - | 5 | |
| 25 | - | 5 | |
| 391 | - | 4 | |
| 359 | 19 | 4 | |
| 19 | - | 3 | |
| 64 | - | 3 | |
| 202 | - | 3 | |
| 33 | - | 2 | |
| 33 | - | 2 | |
| 129 | - | 2 | |
| 420 | - | 2 | |
| 20 | - | 2 | |
| 86 | - | 2 | |
| 84 | - | 2 | |
| 348 | - | 2 | |
| 46 | - | 2 | |
| 115 | 11 | 2 | |
| 168 | 20 | 1 | |
| 286 | - | 1 | |
| 108 | - | 1 | |
| 9 | - | 1 | |
| 689 | - | 1 | |
| 4 | - | 1 | |
| 4 | - | 1 | |
| 278 | - | 1 | |
| 34 | - | 1 | |
| 112 | - | 1 | |
| 30 | - | 1 | |
| 73 | - | 1 | |
| 491 | - | 1 | |
| 70 | - | 1 | |
| 68 | 4 | 1 |
Correlations
File Size vs. Commits (all time): 101 points
|
|
3712.0 | lines of code min: 1.0average: 168.43 25th percentile: 13.5 median: 37.0 75th percentile: 119.0 max: 3712.0 |
|
| 0 | 10.0 | ||
|
commits (all time) min: 1.0 | average: 2.18 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 10.0
|
|||
File Size vs. Contributors (all time): 101 points
|
|
3712.0 | lines of code min: 1.0average: 168.43 25th percentile: 13.5 median: 37.0 75th percentile: 119.0 max: 3712.0 |
|
| 0 | 2.0 | ||
|
contributors (all time) min: 1.0 | average: 1.04 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0
|
|||
File Size vs. Commits (30 days): 8 points
|
|
619.0 | lines of code min: 37.0average: 273.38 25th percentile: 96.0 median: 275.5 75th percentile: 390.0 max: 619.0 |
|
| 0 | 3.0 | ||
|
commits (30d) min: 1.0 | average: 1.38 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.75 | max: 3.0
|
|||
File Size vs. Contributors (30 days): 8 points
|
|
619.0 | lines of code min: 37.0average: 273.38 25th percentile: 96.0 median: 275.5 75th percentile: 390.0 max: 619.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): 13 points
|
|
619.0 | lines of code min: 33.0average: 211.46 25th percentile: 57.0 median: 129.0 75th percentile: 367.0 max: 619.0 |
|
| 0 | 3.0 | ||
|
commits (90d) min: 1.0 | average: 1.54 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.5 | max: 3.0
|
|||
File Size vs. Contributors (90 days): 13 points
|
|
619.0 | lines of code min: 33.0average: 211.46 25th percentile: 57.0 median: 129.0 75th percentile: 367.0 max: 619.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