guardian/content-api-scala-client
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 31 files with 1,453 lines of code.
- 0 very long files (0 lines of code)
- 0 long files (0 lines of code)
- 2 medium size files (522 lines of code)
- 0 small files (0 lines of code)
- 29 very small files (931 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 31)
| File | # lines | # units |
|---|---|---|
| 309 | 21 | |
| 213 | 6 | |
| 92 | 6 | |
| 87 | 4 | |
| 75 | 7 | |
| 64 | 3 | |
| 62 | 5 | |
| 49 | 4 | |
| 47 | 2 | |
| 47 | 9 | |
| 42 | 3 | |
| 37 | 1 | |
| 33 | 1 | |
| 31 | - | |
| 27 | 1 | |
| 25 | - | |
| 25 | 1 | |
| 24 | 1 | |
| 23 | 1 | |
| 21 | - | |
| 18 | - | |
| 13 | - | |
| 13 | 1 | |
| 12 | 1 | |
| 12 | - | |
| 11 | - | |
| 11 | 1 | |
| 10 | - | |
| 8 | - | |
| 7 | - | |
| 5 | - |
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 |
|---|---|---|---|---|---|
| 213 | ~1k–3k | 12 | ~15 | ~15 | |
| 309 | ~2k–5k | 5 | ~30 | ~10 | |
| 25 | under 1k | 55 | ~3 | ~7 | |
| 75 | ~500–1.5k | 2 | ~100 | ~1 | |
| 64 | ~300–1k | 2 | ~100 | ~1 | |
| 62 | ~300–1k | 2 | ~70 | ~1 | |
| 31 | under 1k | 4 | ~5 | ~7 | |
| 49 | under 1k | 2 | ~100 | ~1 | |
| 47 | under 1k | 2 | ~50 | ~1 | |
| 92 | ~500–1.5k | 1 | ~30 | ~3 | |
| 87 | ~500–1.5k | 1 | ~100 | ~1 | |
| 37 | under 1k | 2 | ~50 | ~1 | |
| 33 | under 1k | 2 | ~70 | ~0 | |
| 25 | under 1k | 2 | ~30 | ~1 | |
| 24 | under 1k | 2 | ~20 | ~1 | |
| 47 | under 1k | 1 | ~30 | ~2 | |
| 42 | under 1k | 1 | ~20 | ~2 | |
| 12 | under 1k | 3 | ~10 | ~1 | |
| 18 | under 1k | 2 | ~20 | ~1 | |
| 27 | under 1k | 1 | ~20 | ~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 20)
| File | # lines | # units |
|---|---|---|
| 309 | 21 | |
| 47 | 9 | |
| 75 | 7 | |
| 213 | 6 | |
| 92 | 6 | |
| 62 | 5 | |
| 49 | 4 | |
| 87 | 4 | |
| 42 | 3 | |
| 64 | 3 | |
| 47 | 2 | |
| 24 | 1 | |
| 25 | 1 | |
| 33 | 1 | |
| 37 | 1 | |
| 12 | 1 | |
| 13 | 1 | |
| 27 | 1 | |
| 11 | 1 | |
| 23 | 1 |
Files With Long Lines (Top 16)
There are 16 files with lines longer than 120 characters. In total, there are 49 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 213 | 6 | 13 | |
| 87 | 4 | 6 | |
| 309 | 21 | 5 | |
| 47 | 2 | 4 | |
| 92 | 6 | 4 | |
| 27 | 1 | 4 | |
| 64 | 3 | 3 | |
| 49 | 4 | 2 | |
| 25 | - | 1 | |
| 42 | 3 | 1 | |
| 75 | 7 | 1 | |
| 62 | 5 | 1 | |
| 33 | 1 | 1 | |
| 37 | 1 | 1 | |
| 8 | - | 1 | |
| 11 | 1 | 1 |
Correlations
File Size vs. Commits (all time): 31 points
|
|
309.0 | lines of code min: 5.0average: 46.87 25th percentile: 12.0 median: 25.0 75th percentile: 49.0 max: 309.0 |
|
| 0 | 227.0 | ||
|
commits (all time) min: 2.0 | average: 21.84 | 25th percentile: 2.0 | median: 5.0 | 75th percentile: 15.0 | max: 227.0
|
|||
File Size vs. Contributors (all time): 31 points
|
|
309.0 | lines of code min: 5.0average: 46.87 25th percentile: 12.0 median: 25.0 75th percentile: 49.0 max: 309.0 |
|
| 0 | 54.0 | ||
|
contributors (all time) min: 2.0 | average: 7.26 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 6.0 | max: 54.0
|
|||
File Size vs. Commits (30 days): 16 points
|
|
309.0 | lines of code min: 5.0average: 63.06 25th percentile: 19.5 median: 35.0 75th percentile: 63.5 max: 309.0 |
|
| 0 | 7.0 | ||
|
commits (30d) min: 1.0 | average: 1.5 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 7.0
|
|||
File Size vs. Contributors (30 days): 16 points
|
|
309.0 | lines of code min: 5.0average: 63.06 25th percentile: 19.5 median: 35.0 75th percentile: 63.5 max: 309.0 |
|
| 0 | 4.0 | ||
|
contributors (30d) min: 1.0 | average: 1.25 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 4.0
|
|||
File Size vs. Commits (90 days): 31 points
|
|
309.0 | lines of code min: 5.0average: 46.87 25th percentile: 12.0 median: 25.0 75th percentile: 49.0 max: 309.0 |
|
| 0 | 27.0 | ||
|
commits (90d) min: 1.0 | average: 2.48 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 27.0
|
|||
File Size vs. Contributors (90 days): 31 points
|
|
309.0 | lines of code min: 5.0average: 46.87 25th percentile: 12.0 median: 25.0 75th percentile: 49.0 max: 309.0 |
|
| 0 | 8.0 | ||
|
contributors (90d) min: 1.0 | average: 1.74 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 8.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