guardian/google-admanager-api
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 295 files with 9,155 lines of code.
- 0 very long files (0 lines of code)
- 1 long files (692 lines of code)
- 3 medium size files (1,059 lines of code)
- 7 small files (1,002 lines of code)
- 284 very small files (6,402 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 |
|---|---|---|
| 692 | - | |
| 475 | 102 | |
| 324 | - | |
| 260 | - | |
| 183 | 17 | |
| 174 | - | |
| 172 | - | |
| 139 | 5 | |
| 118 | - | |
| 112 | - | |
| 104 | 12 | |
| 88 | - | |
| 85 | - | |
| 83 | 8 | |
| 82 | 1 | |
| 81 | 6 | |
| 81 | 8 | |
| 79 | 9 | |
| 78 | - | |
| 77 | 2 | |
| 77 | - | |
| 75 | 4 | |
| 73 | 10 | |
| 72 | - | |
| 71 | 1 | |
| 69 | 1 | |
| 68 | - | |
| 68 | - | |
| 66 | - | |
| 65 | - | |
| 63 | 4 | |
| 62 | 8 | |
| 61 | - | |
| 60 | - | |
| 57 | 5 | |
| 56 | - | |
| 55 | - | |
| 55 | - | |
| 54 | 1 | |
| 52 | 1 | |
| 51 | - | |
| 51 | 6 | |
| 49 | - | |
| 49 | 4 | |
| 49 | 6 | |
| 49 | - | |
| 47 | - | |
| 47 | - | |
| 47 | 2 | |
| 46 | 7 |
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 |
|---|---|---|---|---|---|
| 475 | ~3k–7k | 8 | ~100 | ~5 | |
| 324 | ~2k–5k | 2 | ~300 | ~2 | |
| 174 | ~1k–3k | 2 | ~300 | ~1 | |
| 172 | ~1k–3k | 2 | ~150 | ~1 | |
| 139 | ~700–2k | 2 | ~100 | ~1 | |
| 104 | ~700–1.5k | 2 | ~70 | ~2 | |
| 88 | ~500–1.5k | 2 | ~100 | ~1 | |
| 78 | ~500–1.5k | 2 | ~50 | ~2 | |
| 77 | ~500–1.5k | 2 | ~50 | ~2 | |
| 112 | ~700–2k | 1 | ~150 | ~1 | |
| 85 | ~500–1.5k | 1 | ~70 | ~1 | |
| 81 | ~500–1.5k | 1 | ~30 | ~3 | |
| 81 | ~500–1.5k | 1 | ~70 | ~2 | |
| 79 | ~500–1.5k | 1 | ~30 | ~3 | |
| 77 | ~500–1.5k | 1 | ~70 | ~1 | |
| 36 | under 1k | 2 | ~15 | ~3 | |
| 72 | ~500–1.5k | 1 | ~70 | ~1 | |
| 71 | ~300–1k | 1 | ~30 | ~3 | |
| 66 | ~300–1k | 1 | ~100 | ~1 | |
| 32 | under 1k | 2 | ~30 | ~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 |
|---|---|---|
| 475 | 102 | |
| 183 | 17 | |
| 104 | 12 | |
| 73 | 10 | |
| 79 | 9 | |
| 83 | 8 | |
| 62 | 8 | |
| 81 | 8 | |
| 46 | 7 | |
| 41 | 7 | |
| 51 | 6 | |
| 49 | 6 | |
| 81 | 6 | |
| 42 | 6 | |
| 139 | 5 | |
| 36 | 5 | |
| 57 | 5 | |
| 44 | 5 | |
| 38 | 5 | |
| 44 | 5 | |
| 44 | 5 | |
| 35 | 5 | |
| 44 | 5 | |
| 35 | 5 | |
| 44 | 5 | |
| 41 | 5 | |
| 35 | 5 | |
| 44 | 5 | |
| 37 | 5 | |
| 44 | 5 | |
| 41 | 5 | |
| 39 | 5 | |
| 39 | 5 | |
| 40 | 4 | |
| 75 | 4 | |
| 39 | 4 | |
| 25 | 4 | |
| 21 | 4 | |
| 49 | 4 | |
| 63 | 4 | |
| 23 | 4 | |
| 27 | 4 | |
| 23 | 3 | |
| 28 | 3 | |
| 35 | 3 | |
| 15 | 3 | |
| 32 | 3 | |
| 34 | 3 | |
| 31 | 3 | |
| 18 | 3 |
Files With Long Lines (Top 3)
There are 3 files with lines longer than 120 characters. In total, there are 12 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 692 | - | 10 | |
| 32 | 3 | 1 | |
| 61 | - | 1 |
Correlations
File Size vs. Commits (all time): 295 points
|
|
692.0 | lines of code min: 1.0average: 31.03 25th percentile: 5.0 median: 17.0 75th percentile: 40.0 max: 692.0 |
|
| 0 | 18.0 | ||
|
commits (all time) min: 1.0 | average: 6.13 | 25th percentile: 3.0 | median: 6.0 | 75th percentile: 8.0 | max: 18.0
|
|||
File Size vs. Contributors (all time): 295 points
|
|
692.0 | lines of code min: 1.0average: 31.03 25th percentile: 5.0 median: 17.0 75th percentile: 40.0 max: 692.0 |
|
| 0 | 7.0 | ||
|
contributors (all time) min: 1.0 | average: 4.09 | 25th percentile: 3.0 | median: 4.0 | 75th percentile: 5.0 | max: 7.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): 8 points
|
|
475.0 | lines of code min: 5.0average: 167.63 25th percentile: 46.0 median: 121.5 75th percentile: 286.5 max: 475.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): 8 points
|
|
475.0 | lines of code min: 5.0average: 167.63 25th percentile: 46.0 median: 121.5 75th percentile: 286.5 max: 475.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