openai/openai-apps-sdk-examples
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 88 files with 13,922 lines of code.
- 2 very long files (2,801 lines of code)
- 5 long files (3,871 lines of code)
- 11 medium size files (3,510 lines of code)
- 18 small files (2,571 lines of code)
- 52 very small files (1,169 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 |
|---|---|---|
| 1459 | 2 | |
| 1342 | 4 | |
| 948 | - | |
| 836 | - | |
| 756 | 8 | |
| 740 | 12 | |
| 591 | 17 | |
| 484 | - | |
| 461 | 10 | |
| 353 | 5 | |
| 349 | 12 | |
| 347 | 16 | |
| 276 | 7 | |
| 275 | - | |
| 259 | 6 | |
| 253 | 5 | |
| 248 | 3 | |
| 205 | - | |
| 184 | 6 | |
| 170 | 1 | |
| 170 | - | |
| 169 | - | |
| 166 | - | |
| 165 | - | |
| 159 | - | |
| 147 | - | |
| 145 | - | |
| 139 | 2 | |
| 138 | 4 | |
| 135 | - | |
| 124 | - | |
| 117 | - | |
| 115 | 4 | |
| 112 | - | |
| 110 | - | |
| 106 | - | |
| 96 | - | |
| 92 | - | |
| 91 | - | |
| 83 | 2 | |
| 78 | - | |
| 78 | - | |
| 75 | - | |
| 56 | 1 | |
| 55 | - | |
| 43 | 4 | |
| 43 | - | |
| 43 | - | |
| 39 | - | |
| 39 | - |
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 |
|---|---|---|---|---|---|
| 1342 | ~7k–20k | 9 | ~1,000 | ~2 | |
| 740 | ~5k–15k | 10 | ~500 | ~2 | |
| 1459 | ~10k–30k | 4 | ~1,000 | ~2 | |
| 259 | ~1.5k–5k | 21 | ~20 | ~10 | |
| 591 | ~3k–10k | 8 | ~500 | ~1 | |
| 756 | ~5k–15k | 6 | ~500 | ~2 | |
| 347 | ~2k–5k | 12 | ~30 | ~10 | |
| 461 | ~3k–7k | 9 | ~150 | ~3 | |
| 276 | ~1.5k–5k | 13 | ~10 | ~30 | |
| 353 | ~2k–5k | 10 | ~150 | ~2 | |
| 253 | ~1.5k–5k | 13 | ~150 | ~2 | |
| 248 | ~1.5k–5k | 11 | ~150 | ~2 | |
| 349 | ~2k–5k | 7 | ~200 | ~2 | |
| 275 | ~1.5k–5k | 7 | ~7 | ~30 | |
| 184 | ~1k–3k | 7 | ~100 | ~2 | |
| 92 | ~500–1.5k | 12 | ~30 | ~3 | |
| 115 | ~700–2k | 9 | ~70 | ~2 | |
| 75 | ~500–1.5k | 10 | ~30 | ~3 | |
| 78 | ~500–1.5k | 8 | ~30 | ~3 | |
| 205 | ~1k–3k | 3 | ~200 | ~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 23)
| File | # lines | # units |
|---|---|---|
| 591 | 17 | |
| 347 | 16 | |
| 740 | 12 | |
| 349 | 12 | |
| 461 | 10 | |
| 756 | 8 | |
| 276 | 7 | |
| 184 | 6 | |
| 259 | 6 | |
| 353 | 5 | |
| 253 | 5 | |
| 115 | 4 | |
| 138 | 4 | |
| 43 | 4 | |
| 1342 | 4 | |
| 38 | 3 | |
| 248 | 3 | |
| 1459 | 2 | |
| 83 | 2 | |
| 11 | 2 | |
| 139 | 2 | |
| 170 | 1 | |
| 56 | 1 |
Files With Long Lines (Top 35)
There are 35 files with lines longer than 120 characters. In total, there are 141 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 1459 | 2 | 13 | |
| 1342 | 4 | 13 | |
| 138 | 4 | 11 | |
| 740 | 12 | 8 | |
| 166 | - | 8 | |
| 948 | - | 8 | |
| 276 | 7 | 7 | |
| 353 | 5 | 7 | |
| 484 | - | 6 | |
| 591 | 17 | 4 | |
| 165 | - | 4 | |
| 253 | 5 | 4 | |
| 139 | 2 | 4 | |
| 135 | - | 4 | |
| 159 | - | 3 | |
| 106 | - | 3 | |
| 147 | - | 3 | |
| 169 | - | 3 | |
| 55 | - | 3 | |
| 248 | 3 | 3 | |
| 110 | - | 3 | |
| 78 | - | 2 | |
| 91 | - | 2 | |
| 170 | - | 2 | |
| 124 | - | 2 | |
| 43 | - | 2 | |
| 461 | 10 | 1 | |
| 112 | - | 1 | |
| 96 | - | 1 | |
| 170 | 1 | 1 | |
| 39 | - | 1 | |
| 756 | 8 | 1 | |
| 43 | - | 1 | |
| 29 | - | 1 | |
| 39 | - | 1 |
Correlations
File Size vs. Commits (all time): 80 points
|
|
1459.0 | lines of code min: 1.0average: 145.07 25th percentile: 5.0 median: 65.5 75th percentile: 165.75 max: 1459.0 |
|
| 0 | 21.0 | ||
|
commits (all time) min: 1.0 | average: 4.7 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 5.75 | max: 21.0
|
|||
File Size vs. Contributors (all time): 80 points
|
|
1459.0 | lines of code min: 1.0average: 145.07 25th percentile: 5.0 median: 65.5 75th percentile: 165.75 max: 1459.0 |
|
| 0 | 7.0 | ||
|
contributors (all time) min: 1.0 | average: 2.36 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 2.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): 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