guardian/consent-management-platform
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 36 files with 6,174 lines of code.
- 0 very long files (0 lines of code)
- 0 long files (0 lines of code)
- 13 medium size files (4,536 lines of code)
- 7 small files (957 lines of code)
- 16 very small files (681 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 36)
| File | # lines | # units |
|---|---|---|
| 416 | - | |
| 416 | - | |
| 407 | 11 | |
| 407 | 11 | |
| 373 | - | |
| 373 | - | |
| 356 | - | |
| 356 | - | |
| 330 | - | |
| 309 | - | |
| 288 | - | |
| 288 | - | |
| 217 | - | |
| 196 | 1 | |
| 157 | 10 | |
| 132 | 3 | |
| 130 | 7 | |
| 121 | 1 | |
| 111 | 7 | |
| 110 | - | |
| 100 | - | |
| 99 | 6 | |
| 85 | - | |
| 64 | 8 | |
| 56 | - | |
| 49 | - | |
| 47 | 4 | |
| 40 | - | |
| 35 | 2 | |
| 32 | - | |
| 26 | - | |
| 21 | - | |
| 11 | 3 | |
| 9 | - | |
| 5 | - | |
| 2 | - |
Large Files That Change Often (Top 13)
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 |
|---|---|---|---|---|---|
| 407 | ~2k–7k | 3 | ~200 | ~2 | |
| 407 | ~2k–7k | 3 | ~200 | ~2 | |
| 196 | ~1k–3k | 3 | ~50 | ~3 | |
| 121 | ~700–2k | 3 | ~20 | ~7 | |
| 157 | ~1k–3k | 2 | ~100 | ~2 | |
| 130 | ~700–2k | 2 | ~30 | ~5 | |
| 56 | ~300–1k | 4 | ~15 | ~5 | |
| 111 | ~700–2k | 2 | ~50 | ~3 | |
| 85 | ~500–1.5k | 2 | ~70 | ~2 | |
| 132 | ~700–2k | 1 | ~70 | ~2 | |
| 100 | ~700–1.5k | 1 | ~100 | ~1 | |
| 49 | under 1k | 2 | ~20 | ~2 | |
| 35 | under 1k | 2 | ~15 | ~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 13)
| File | # lines | # units |
|---|---|---|
| 407 | 11 | |
| 407 | 11 | |
| 157 | 10 | |
| 64 | 8 | |
| 130 | 7 | |
| 111 | 7 | |
| 99 | 6 | |
| 47 | 4 | |
| 11 | 3 | |
| 132 | 3 | |
| 35 | 2 | |
| 121 | 1 | |
| 196 | 1 |
Files With Long Lines (Top 15)
There are 15 files with lines longer than 120 characters. In total, there are 37 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 130 | 7 | 5 | |
| 356 | - | 3 | |
| 356 | - | 3 | |
| 416 | - | 3 | |
| 373 | - | 3 | |
| 416 | - | 3 | |
| 373 | - | 3 | |
| 288 | - | 2 | |
| 288 | - | 2 | |
| 309 | - | 2 | |
| 330 | - | 2 | |
| 217 | - | 2 | |
| 100 | - | 2 | |
| 64 | 8 | 1 | |
| 99 | 6 | 1 |
Correlations
File Size vs. Commits (all time): 36 points
|
|
416.0 | lines of code min: 2.0average: 171.5 25th percentile: 41.75 median: 116.0 75th percentile: 324.75 max: 416.0 |
|
| 0 | 22.0 | ||
|
commits (all time) min: 1.0 | average: 3.61 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 3.0 | max: 22.0
|
|||
File Size vs. Contributors (all time): 36 points
|
|
416.0 | lines of code min: 2.0average: 171.5 25th percentile: 41.75 median: 116.0 75th percentile: 324.75 max: 416.0 |
|
| 0 | 8.0 | ||
|
contributors (all time) min: 1.0 | average: 1.81 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 8.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): 0 points
No data for "commits (90d)" vs. "lines of code".
File Size vs. Contributors (90 days): 0 points
No data for "contributors (90d)" vs. "lines of code".
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