openai/terraform-provider-openai
File Size The distribution of size of files (measured in lines of code). |
File Size Overall
- There are 86 files with 19,605 lines of code.
- 1 very long files (1,576 lines of code)
- 1 long files (733 lines of code)
- 34 medium size files (9,980 lines of code)
- 42 small files (7,051 lines of code)
- 8 very small files (265 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 |
|---|---|---|
| 1576 | 107 | |
| 733 | 23 | |
| 427 | 10 | |
| 421 | 9 | |
| 410 | 9 | |
| 398 | 9 | |
| 395 | 9 | |
| 377 | 9 | |
| 373 | 9 | |
| 368 | 9 | |
| 365 | 9 | |
| 340 | 9 | |
| 318 | 9 | |
| 318 | 9 | |
| 308 | 9 | |
| 303 | 5 | |
| 302 | 9 | |
| 296 | 9 | |
| 294 | 9 | |
| 288 | 9 | |
| 285 | 9 | |
| 285 | 9 | |
| 266 | 6 | |
| 254 | 9 | |
| 249 | 6 | |
| 248 | 5 | |
| 230 | 9 | |
| 214 | 6 | |
| 211 | 5 | |
| 210 | 9 | |
| 208 | 6 | |
| 208 | 6 | |
| 205 | 6 | |
| 203 | 9 | |
| 202 | 8 | |
| 201 | 6 | |
| 200 | 5 | |
| 197 | 9 | |
| 195 | 6 | |
| 195 | 6 | |
| 195 | 6 | |
| 194 | 6 | |
| 191 | 9 | |
| 191 | 5 | |
| 191 | 5 | |
| 191 | 9 | |
| 189 | 6 | |
| 188 | 6 | |
| 184 | 6 | |
| 184 | 6 |
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 |
|---|---|---|---|---|---|
| 1576 | ~10k–30k | 14 | ~100 | ~20 | |
| 266 | ~1.5k–5k | 10 | ~15 | ~15 | |
| 427 | ~2k–7k | 5 | ~70 | ~7 | |
| 318 | ~2k–5k | 6 | ~10 | ~30 | |
| 254 | ~1.5k–5k | 6 | ~30 | ~7 | |
| 302 | ~2k–5k | 5 | ~20 | ~15 | |
| 373 | ~2k–7k | 4 | ~20 | ~15 | |
| 368 | ~2k–7k | 4 | ~20 | ~20 | |
| 733 | ~5k–15k | 2 | ~500 | ~2 | |
| 410 | ~2k–7k | 3 | ~5 | ~70 | |
| 398 | ~2k–7k | 3 | ~10 | ~30 | |
| 230 | ~1.5k–5k | 5 | ~10 | ~30 | |
| 365 | ~2k–7k | 3 | ~7 | ~50 | |
| 340 | ~2k–5k | 3 | ~7 | ~50 | |
| 318 | ~2k–5k | 3 | ~100 | ~3 | |
| 294 | ~2k–5k | 3 | ~100 | ~3 | |
| 214 | ~1k–3k | 4 | ~10 | ~20 | |
| 285 | ~1.5k–5k | 3 | ~100 | ~3 | |
| 285 | ~1.5k–5k | 3 | ~15 | ~20 | |
| 421 | ~2k–7k | 2 | ~7 | ~50 |
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 |
|---|---|---|
| 1576 | 107 | |
| 733 | 23 | |
| 427 | 10 | |
| 191 | 9 | |
| 377 | 9 | |
| 318 | 9 | |
| 318 | 9 | |
| 340 | 9 | |
| 308 | 9 | |
| 230 | 9 | |
| 285 | 9 | |
| 285 | 9 | |
| 294 | 9 | |
| 410 | 9 | |
| 296 | 9 | |
| 197 | 9 | |
| 395 | 9 | |
| 421 | 9 | |
| 191 | 9 | |
| 203 | 9 | |
| 254 | 9 | |
| 288 | 9 | |
| 368 | 9 | |
| 398 | 9 | |
| 210 | 9 | |
| 373 | 9 | |
| 302 | 9 | |
| 365 | 9 | |
| 202 | 8 | |
| 108 | 7 | |
| 266 | 6 | |
| 195 | 6 | |
| 201 | 6 | |
| 208 | 6 | |
| 180 | 6 | |
| 179 | 6 | |
| 208 | 6 | |
| 249 | 6 | |
| 169 | 6 | |
| 184 | 6 | |
| 159 | 6 | |
| 194 | 6 | |
| 205 | 6 | |
| 195 | 6 | |
| 180 | 6 | |
| 189 | 6 | |
| 214 | 6 | |
| 184 | 6 | |
| 184 | 6 | |
| 195 | 6 |
Files With Long Lines (Top 50)
There are 76 files with lines longer than 120 characters. In total, there are 1262 long lines.
| File | # lines | # units | # long lines |
|---|---|---|---|
| 421 | 9 | 45 | |
| 395 | 9 | 43 | |
| 398 | 9 | 36 | |
| 1576 | 107 | 35 | |
| 377 | 9 | 32 | |
| 318 | 9 | 32 | |
| 288 | 9 | 32 | |
| 410 | 9 | 31 | |
| 294 | 9 | 30 | |
| 285 | 9 | 27 | |
| 365 | 9 | 26 | |
| 318 | 9 | 24 | |
| 254 | 9 | 24 | |
| 373 | 9 | 24 | |
| 302 | 9 | 24 | |
| 427 | 10 | 23 | |
| 308 | 9 | 22 | |
| 285 | 9 | 22 | |
| 368 | 9 | 22 | |
| 340 | 9 | 20 | |
| 230 | 9 | 20 | |
| 296 | 9 | 19 | |
| 266 | 6 | 18 | |
| 200 | 5 | 18 | |
| 211 | 5 | 18 | |
| 210 | 9 | 18 | |
| 197 | 9 | 17 | |
| 249 | 6 | 16 | |
| 205 | 6 | 16 | |
| 214 | 6 | 16 | |
| 191 | 9 | 15 | |
| 208 | 6 | 15 | |
| 191 | 5 | 15 | |
| 208 | 6 | 15 | |
| 191 | 5 | 15 | |
| 248 | 5 | 15 | |
| 191 | 9 | 15 | |
| 203 | 9 | 15 | |
| 160 | 5 | 14 | |
| 178 | 5 | 13 | |
| 195 | 6 | 13 | |
| 201 | 6 | 13 | |
| 176 | 5 | 13 | |
| 160 | 5 | 13 | |
| 194 | 6 | 13 | |
| 178 | 5 | 13 | |
| 195 | 6 | 13 | |
| 184 | 6 | 13 | |
| 178 | 5 | 13 | |
| 145 | 5 | 12 |
Correlations
File Size vs. Commits (all time): 83 points
|
|
1576.0 | lines of code min: 2.0average: 235.78 25th percentile: 165.0 median: 194.0 75th percentile: 285.0 max: 1576.0 |
|
| 0 | 14.0 | ||
|
commits (all time) min: 1.0 | average: 2.94 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 3.0 | max: 14.0
|
|||
File Size vs. Contributors (all time): 83 points
|
|
1576.0 | lines of code min: 2.0average: 235.78 25th percentile: 165.0 median: 194.0 75th percentile: 285.0 max: 1576.0 |
|
| 0 | 5.0 | ||
|
contributors (all time) min: 1.0 | average: 1.76 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.0 | max: 5.0
|
|||
File Size vs. Commits (30 days): 76 points
|
|
1576.0 | lines of code min: 89.0average: 246.36 25th percentile: 166.0 median: 195.0 75th percentile: 287.25 max: 1576.0 |
|
| 0 | 3.0 | ||
|
commits (30d) min: 1.0 | average: 2.28 | 25th percentile: 2.0 | median: 2.0 | 75th percentile: 3.0 | max: 3.0
|
|||
File Size vs. Contributors (30 days): 76 points
|
|
1576.0 | lines of code min: 89.0average: 246.36 25th percentile: 166.0 median: 195.0 75th percentile: 287.25 max: 1576.0 |
|
| 0 | 2.0 | ||
|
contributors (30d) min: 1.0 | average: 1.32 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.0 | max: 2.0
|
|||
File Size vs. Commits (90 days): 83 points
|
|
1576.0 | lines of code min: 2.0average: 235.78 25th percentile: 165.0 median: 194.0 75th percentile: 285.0 max: 1576.0 |
|
| 0 | 12.0 | ||
|
commits (90d) min: 1.0 | average: 2.77 | 25th percentile: 2.0 | median: 3.0 | 75th percentile: 3.0 | max: 12.0
|
|||
File Size vs. Contributors (90 days): 83 points
|
|
1576.0 | lines of code min: 2.0average: 235.78 25th percentile: 165.0 median: 194.0 75th percentile: 285.0 max: 1576.0 |
|
| 0 | 5.0 | ||
|
contributors (90d) min: 1.0 | average: 1.69 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 2.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