guardian/interactive-style-library
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 62 files with 5,131 lines of code.
- 0 very long files (0 lines of code)
- 1 long files (639 lines of code)
- 3 medium size files (801 lines of code)
- 11 small files (1,606 lines of code)
- 47 very small files (2,085 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 |
|---|---|---|
| 639 | - | |
| 393 | 9 | |
| 205 | - | |
| 203 | 11 | |
| 200 | 10 | |
| 195 | - | |
| 159 | - | |
| 157 | - | |
| 157 | 7 | |
| 151 | - | |
| 123 | - | |
| 119 | 7 | |
| 117 | - | |
| 117 | 10 | |
| 111 | - | |
| 91 | 1 | |
| 90 | 1 | |
| 89 | 10 | |
| 87 | - | |
| 86 | 1 | |
| 83 | - | |
| 77 | 4 | |
| 75 | 2 | |
| 70 | - | |
| 70 | 8 | |
| 68 | 1 | |
| 66 | - | |
| 64 | 1 | |
| 61 | - | |
| 59 | 4 | |
| 58 | - | |
| 51 | 1 | |
| 49 | - | |
| 48 | 1 | |
| 48 | - | |
| 47 | 3 | |
| 43 | - | |
| 42 | - | |
| 41 | 1 | |
| 41 | 1 | |
| 41 | 3 | |
| 40 | - | |
| 36 | 4 | |
| 35 | 4 | |
| 33 | 2 | |
| 32 | 1 | |
| 28 | 1 | |
| 28 | 1 | |
| 27 | - | |
| 25 | - |
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 |
|---|---|---|---|---|---|
| 200 | ~1k–3k | 6 | ~50 | ~5 | |
| 203 | ~1k–3k | 5 | ~50 | ~3 | |
| 393 | ~2k–7k | 2 | ~200 | ~2 | |
| 157 | ~1k–3k | 5 | ~50 | ~3 | |
| 77 | ~500–1.5k | 9 | ~20 | ~5 | |
| 639 | ~3k–10k | 1 | ~2 | ~300 | |
| 91 | ~500–1.5k | 7 | ~30 | ~3 | |
| 70 | ~300–1k | 7 | ~10 | ~7 | |
| 117 | ~700–2k | 4 | ~70 | ~2 | |
| 151 | ~1k–3k | 3 | ~70 | ~2 | |
| 89 | ~500–1.5k | 5 | ~30 | ~3 | |
| 205 | ~1k–3k | 2 | ~100 | ~2 | |
| 195 | ~1k–3k | 2 | ~100 | ~2 | |
| 75 | ~500–1.5k | 5 | ~5 | ~15 | |
| 90 | ~500–1.5k | 4 | ~50 | ~2 | |
| 87 | ~500–1.5k | 4 | ~30 | ~2 | |
| 86 | ~500–1.5k | 4 | ~30 | ~3 | |
| 68 | ~300–1k | 5 | ~20 | ~3 | |
| 159 | ~1k–3k | 2 | ~100 | ~2 | |
| 49 | under 1k | 6 | ~20 | ~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 32)
| File | # lines | # units |
|---|---|---|
| 203 | 11 | |
| 117 | 10 | |
| 200 | 10 | |
| 89 | 10 | |
| 393 | 9 | |
| 70 | 8 | |
| 157 | 7 | |
| 119 | 7 | |
| 77 | 4 | |
| 35 | 4 | |
| 59 | 4 | |
| 36 | 4 | |
| 47 | 3 | |
| 41 | 3 | |
| 75 | 2 | |
| 33 | 2 | |
| 32 | 1 | |
| 23 | 1 | |
| 51 | 1 | |
| 28 | 1 | |
| 90 | 1 | |
| 64 | 1 | |
| 86 | 1 | |
| 91 | 1 | |
| 68 | 1 | |
| 48 | 1 | |
| 41 | 1 | |
| 41 | 1 | |
| 28 | 1 | |
| 19 | 1 | |
| 16 | 1 | |
| 21 | 1 |
Files With Long Lines (Top 12)
There are 12 files with lines longer than 120 characters. In total, there are 24 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 86 | 1 | 4 | |
| 43 | - | 3 | |
| 61 | - | 3 | |
| 49 | - | 2 | |
| 42 | - | 2 | |
| 40 | - | 2 | |
| 48 | - | 2 | |
| 70 | - | 2 | |
| 51 | 1 | 1 | |
| 91 | 1 | 1 | |
| 14 | - | 1 | |
| 14 | - | 1 |
Correlations
File Size vs. Commits (all time): 61 points
|
|
639.0 | lines of code min: 2.0average: 84.1 25th percentile: 30.0 median: 58.0 75th percentile: 101.0 max: 639.0 |
|
| 0 | 9.0 | ||
|
commits (all time) min: 1.0 | average: 3.26 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 5.0 | max: 9.0
|
|||
File Size vs. Contributors (all time): 61 points
|
|
639.0 | lines of code min: 2.0average: 84.1 25th percentile: 30.0 median: 58.0 75th percentile: 101.0 max: 639.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): 7 points
|
|
393.0 | lines of code min: 5.0average: 133.86 25th percentile: 25.0 median: 77.0 75th percentile: 205.0 max: 393.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): 7 points
|
|
393.0 | lines of code min: 5.0average: 133.86 25th percentile: 25.0 median: 77.0 75th percentile: 205.0 max: 393.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