guardian/affiliate-product-directory
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 44 files with 2,827 lines of code.
- 0 very long files (0 lines of code)
- 0 long files (0 lines of code)
- 2 medium size files (647 lines of code)
- 4 small files (497 lines of code)
- 38 very small files (1,683 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 44)
| File | # lines | # units |
|---|---|---|
| 418 | - | |
| 229 | 9 | |
| 155 | 7 | |
| 129 | 2 | |
| 109 | 5 | |
| 104 | 1 | |
| 99 | 7 | |
| 93 | 5 | |
| 91 | 6 | |
| 87 | 1 | |
| 83 | 1 | |
| 83 | 2 | |
| 79 | 6 | |
| 75 | 2 | |
| 74 | 4 | |
| 71 | 2 | |
| 70 | 2 | |
| 67 | 2 | |
| 64 | 6 | |
| 60 | 3 | |
| 56 | 5 | |
| 55 | 2 | |
| 44 | 4 | |
| 43 | - | |
| 42 | 1 | |
| 38 | 1 | |
| 36 | 2 | |
| 32 | 1 | |
| 26 | 4 | |
| 26 | 2 | |
| 25 | 1 | |
| 23 | - | |
| 21 | - | |
| 20 | - | |
| 18 | - | |
| 17 | 1 | |
| 17 | - | |
| 14 | - | |
| 12 | - | |
| 10 | 1 | |
| 6 | 1 | |
| 3 | - | |
| 2 | - | |
| 1 | - |
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 |
|---|---|---|---|---|---|
| 87 | ~500–1.5k | 51 | ~50 | ~2 | |
| 129 | ~700–2k | 33 | ~50 | ~2 | |
| 418 | ~2k–7k | 9 | ~500 | ~1 | |
| 99 | ~500–1.5k | 26 | ~20 | ~5 | |
| 55 | ~300–1k | 38 | ~15 | ~3 | |
| 229 | ~1.5k–5k | 7 | ~100 | ~2 | |
| 67 | ~300–1k | 23 | ~30 | ~2 | |
| 109 | ~700–2k | 13 | ~30 | ~3 | |
| 155 | ~1k–3k | 9 | ~50 | ~3 | |
| 75 | ~500–1.5k | 17 | ~70 | ~1 | |
| 74 | ~500–1.5k | 12 | ~30 | ~3 | |
| 36 | under 1k | 20 | ~15 | ~3 | |
| 79 | ~500–1.5k | 8 | ~70 | ~2 | |
| 64 | ~300–1k | 9 | ~30 | ~2 | |
| 71 | ~300–1k | 7 | ~50 | ~2 | |
| 60 | ~300–1k | 8 | ~30 | ~2 | |
| 91 | ~500–1.5k | 4 | ~30 | ~3 | |
| 42 | under 1k | 8 | ~20 | ~2 | |
| 83 | ~500–1.5k | 4 | ~50 | ~2 | |
| 104 | ~700–1.5k | 3 | ~50 | ~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 |
|---|---|---|
| 229 | 9 | |
| 99 | 7 | |
| 155 | 7 | |
| 91 | 6 | |
| 64 | 6 | |
| 79 | 6 | |
| 56 | 5 | |
| 93 | 5 | |
| 109 | 5 | |
| 26 | 4 | |
| 44 | 4 | |
| 74 | 4 | |
| 60 | 3 | |
| 70 | 2 | |
| 55 | 2 | |
| 129 | 2 | |
| 36 | 2 | |
| 75 | 2 | |
| 67 | 2 | |
| 83 | 2 | |
| 71 | 2 | |
| 26 | 2 | |
| 38 | 1 | |
| 83 | 1 | |
| 104 | 1 | |
| 32 | 1 | |
| 87 | 1 | |
| 17 | 1 | |
| 25 | 1 | |
| 10 | 1 | |
| 42 | 1 | |
| 6 | 1 |
Files With Long Lines (Top 7)
There are 7 files with lines longer than 120 characters. In total, there are 20 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 418 | - | 9 | |
| 67 | 2 | 4 | |
| 91 | 6 | 2 | |
| 60 | 3 | 2 | |
| 38 | 1 | 1 | |
| 229 | 9 | 1 | |
| 79 | 6 | 1 |
Correlations
File Size vs. Commits (all time): 44 points
|
|
418.0 | lines of code min: 1.0average: 64.25 25th percentile: 20.25 median: 49.5 75th percentile: 83.0 max: 418.0 |
|
| 0 | 51.0 | ||
|
commits (all time) min: 1.0 | average: 9.55 | 25th percentile: 3.0 | median: 6.5 | 75th percentile: 11.5 | max: 51.0
|
|||
File Size vs. Contributors (all time): 44 points
|
|
418.0 | lines of code min: 1.0average: 64.25 25th percentile: 20.25 median: 49.5 75th percentile: 83.0 max: 418.0 |
|
| 0 | 5.0 | ||
|
contributors (all time) min: 1.0 | average: 2.55 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 5.0
|
|||
File Size vs. Commits (30 days): 38 points
|
|
418.0 | lines of code min: 1.0average: 71.45 25th percentile: 24.5 median: 62.0 75th percentile: 88.0 max: 418.0 |
|
| 0 | 19.0 | ||
|
commits (30d) min: 1.0 | average: 5.5 | 25th percentile: 3.0 | median: 4.0 | 75th percentile: 8.0 | max: 19.0
|
|||
File Size vs. Contributors (30 days): 38 points
|
|
418.0 | lines of code min: 1.0average: 71.45 25th percentile: 24.5 median: 62.0 75th percentile: 88.0 max: 418.0 |
|
| 0 | 3.0 | ||
|
contributors (30d) min: 1.0 | average: 2.26 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 3.0
|
|||
File Size vs. Commits (90 days): 44 points
|
|
418.0 | lines of code min: 1.0average: 64.25 25th percentile: 20.25 median: 49.5 75th percentile: 83.0 max: 418.0 |
|
| 0 | 51.0 | ||
|
commits (90d) min: 1.0 | average: 9.55 | 25th percentile: 3.0 | median: 6.5 | 75th percentile: 11.5 | max: 51.0
|
|||
File Size vs. Contributors (90 days): 44 points
|
|
418.0 | lines of code min: 1.0average: 64.25 25th percentile: 20.25 median: 49.5 75th percentile: 83.0 max: 418.0 |
|
| 0 | 5.0 | ||
|
contributors (90d) min: 1.0 | average: 2.55 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 5.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