openai / openai-deno-build
File Size

The distribution of size of files (measured in lines of code).

Intro
  • 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...
File Size Overall
  • There are 116 files with 13,786 lines of code.
    • 1 very long files (1,103 lines of code)
    • 4 long files (2,748 lines of code)
    • 15 medium size files (4,797 lines of code)
    • 15 small files (2,042 lines of code)
    • 81 very small files (3,096 lines of code)
8% | 19% | 34% | 14% | 22%
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
ts8% | 19% | 34% | 14% | 22%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT48% | 0% | 41% | 6% | 3%
lib0% | 54% | 25% | 6% | 13%
resources0% | 23% | 32% | 24% | 19%
_vendor0% | 0% | 39% | 19% | 41%
internal0% | 0% | 76% | 0% | 23%
_shims0% | 0% | 0% | 0% | 100%
helpers0% | 0% | 0% | 0% | 100%
shims0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
core.ts
in root
1103 37
757 15
740 26
runs.ts
in resources/beta/threads/runs
648 3
threads.ts
in resources/beta/threads
603 1
475 13
assistants.ts
in resources/beta
461 -
completions.ts
in resources/chat
405 -
string.ts
in _vendor/zod-to-json-schema/parsers
386 3
stringify.ts
in internal/qs
376 9
mod.ts
in root
374 8
331 19
messages.ts
in resources/beta/threads
324 -
steps.ts
in resources/beta/threads/runs
290 -
parseDef.ts
in _vendor/zod-to-json-schema
254 1
parser.ts
in _vendor/partial-json-parser
246 3
parser.ts
in lib
227 9
uploads.ts
in root
224 5
utils.ts
in internal/qs
223 10
file-batches.ts
in resources/beta/vector-stores
201 4
vector-stores.ts
in resources/beta/vector-stores
188 -
jobs.ts
in resources/fine-tuning/jobs
185 -
180 9
files.ts
in resources/beta/vector-stores
177 4
completions.ts
in resources/beta/chat
162 -
error.ts
in root
146 6
files.ts
in resources
131 1
union.ts
in _vendor/zod-to-json-schema/parsers
125 1
completions.ts
in resources
123 -
number.ts
in _vendor/zod-to-json-schema/parsers
107 1
moderations.ts
in resources
105 -
batches.ts
in resources
105 -
zodToJsonSchema.ts
in _vendor/zod-to-json-schema
105 -
chat.ts
in resources/chat
102 -
bigint.ts
in _vendor/zod-to-json-schema/parsers
101 1
87 3
87 3
87 4
86 3
86 5
line.ts
in internal/decoders
86 1
transcriptions.ts
in resources/audio
85 -
mod.ts
in _shims
85 2
Options.ts
in _vendor/zod-to-json-schema
80 -
record.ts
in _vendor/zod-to-json-schema/parsers
77 2
77 -
images.ts
in resources
75 -
date.ts
in _vendor/zod-to-json-schema/parsers
75 1
types.ts
in internal/qs
75 -
beta.ts
in resources/beta
74 -
Files With Most Units (Top 50)
File# lines# units
core.ts
in root
1103 37
740 26
331 19
757 15
475 13
utils.ts
in internal/qs
223 10
parser.ts
in lib
227 9
180 9
stringify.ts
in internal/qs
376 9
mod.ts
in root
374 8
error.ts
in root
146 6
86 5
zod.ts
in helpers
72 5
uploads.ts
in root
224 5
file-batches.ts
in resources/beta/vector-stores
201 4
files.ts
in resources/beta/vector-stores
177 4
87 4
runs.ts
in resources/beta/threads/runs
648 3
87 3
86 3
87 3
string.ts
in _vendor/zod-to-json-schema/parsers
386 3
parser.ts
in _vendor/partial-json-parser
246 3
10 2
mod.ts
in _shims
85 2
record.ts
in _vendor/zod-to-json-schema/parsers
77 2
object.ts
in _vendor/zod-to-json-schema/parsers
61 2
tuple.ts
in _vendor/zod-to-json-schema/parsers
60 2
threads.ts
in resources/beta/threads
603 1
files.ts
in resources
131 1
24 1
registry.ts
in _shims
70 1
effects.ts
in _vendor/zod-to-json-schema/parsers
12 1
union.ts
in _vendor/zod-to-json-schema/parsers
125 1
boolean.ts
in _vendor/zod-to-json-schema/parsers
8 1
enum.ts
in _vendor/zod-to-json-schema/parsers
11 1
set.ts
in _vendor/zod-to-json-schema/parsers
42 1
default.ts
in _vendor/zod-to-json-schema/parsers
12 1
bigint.ts
in _vendor/zod-to-json-schema/parsers
101 1
map.ts
in _vendor/zod-to-json-schema/parsers
40 1
nullable.ts
in _vendor/zod-to-json-schema/parsers
53 1
nativeEnum.ts
in _vendor/zod-to-json-schema/parsers
23 1
branded.ts
in _vendor/zod-to-json-schema/parsers
6 1
never.ts
in _vendor/zod-to-json-schema/parsers
8 1
array.ts
in _vendor/zod-to-json-schema/parsers
57 1
date.ts
in _vendor/zod-to-json-schema/parsers
75 1
promise.ts
in _vendor/zod-to-json-schema/parsers
9 1
unknown.ts
in _vendor/zod-to-json-schema/parsers
4 1
undefined.ts
in _vendor/zod-to-json-schema/parsers
8 1
null.ts
in _vendor/zod-to-json-schema/parsers
14 1
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
mod.ts
in root
374 8 5
string.ts
in _vendor/zod-to-json-schema/parsers
386 3 3
file-batches.ts
in resources/beta/vector-stores
201 4 1
parser.ts
in lib
227 9 1
475 13 1
mod.ts
in _shims
85 2 1
86 5 1
core.ts
in root
1103 37 1
uploads.ts
in root
224 5 1
line.ts
in internal/decoders
86 1 1
Correlations

File Size vs. Commits (all time): 109 points

resources/chat/completions.ts x: 29 commits (all time) y: 405 lines of code version.ts x: 125 commits (all time) y: 1 lines of code core.ts x: 17 commits (all time) y: 1103 lines of code lib/AbstractChatCompletionRunner.ts x: 9 commits (all time) y: 475 lines of code mod.ts x: 36 commits (all time) y: 374 lines of code resources/beta/assistants.ts x: 13 commits (all time) y: 461 lines of code resources/chat/chat.ts x: 13 commits (all time) y: 102 lines of code resources/chat/mod.ts x: 7 commits (all time) y: 36 lines of code internal/decoders/line.ts x: 1 commits (all time) y: 86 lines of code streaming.ts x: 7 commits (all time) y: 331 lines of code resources/completions.ts x: 11 commits (all time) y: 123 lines of code resources/audio/audio.ts x: 6 commits (all time) y: 49 lines of code resources/audio/mod.ts x: 5 commits (all time) y: 18 lines of code resources/audio/transcriptions.ts x: 9 commits (all time) y: 85 lines of code resources/audio/translations.ts x: 8 commits (all time) y: 64 lines of code resources/mod.ts x: 13 commits (all time) y: 70 lines of code resources/moderations.ts x: 7 commits (all time) y: 105 lines of code resources/embeddings.ts x: 7 commits (all time) y: 45 lines of code internal/qs/formats.ts x: 1 commits (all time) y: 8 lines of code internal/qs/mod.ts x: 1 commits (all time) y: 16 lines of code internal/qs/stringify.ts x: 1 commits (all time) y: 376 lines of code internal/qs/types.ts x: 1 commits (all time) y: 75 lines of code internal/qs/utils.ts x: 1 commits (all time) y: 223 lines of code resources/beta/chat/completions.ts x: 8 commits (all time) y: 162 lines of code _vendor/partial-json-parser/parser.ts x: 2 commits (all time) y: 246 lines of code _vendor/zod-to-json-schema/parseDef.ts x: 4 commits (all time) y: 254 lines of code _vendor/zod-to-json-schema/parsers/effects.ts x: 2 commits (all time) y: 12 lines of code resources/beta/threads/runs/runs.ts x: 28 commits (all time) y: 648 lines of code resources/beta/threads/threads.ts x: 26 commits (all time) y: 603 lines of code resources/fine-tuning/jobs/jobs.ts x: 7 commits (all time) y: 185 lines of code error.ts x: 4 commits (all time) y: 146 lines of code resources/beta/beta.ts x: 10 commits (all time) y: 74 lines of code resources/beta/mod.ts x: 10 commits (all time) y: 52 lines of code resources/beta/vector-stores/file-batches.ts x: 6 commits (all time) y: 201 lines of code resources/beta/vector-stores/files.ts x: 8 commits (all time) y: 177 lines of code resources/beta/vector-stores/mod.ts x: 2 commits (all time) y: 30 lines of code resources/beta/vector-stores/vector-stores.ts x: 5 commits (all time) y: 188 lines of code uploads.ts x: 4 commits (all time) y: 224 lines of code helpers/zod.ts x: 5 commits (all time) y: 72 lines of code lib/AssistantStream.ts x: 8 commits (all time) y: 740 lines of code lib/ChatCompletionRunner.ts x: 6 commits (all time) y: 86 lines of code resources/beta/threads/runs/steps.ts x: 9 commits (all time) y: 290 lines of code resources/files.ts x: 12 commits (all time) y: 131 lines of code resources/uploads/uploads.ts x: 2 commits (all time) y: 59 lines of code _vendor/zod-to-json-schema/Options.ts x: 4 commits (all time) y: 80 lines of code _vendor/zod-to-json-schema/zodToJsonSchema.ts x: 5 commits (all time) y: 105 lines of code _vendor/zod-to-json-schema/Refs.ts x: 3 commits (all time) y: 37 lines of code _vendor/zod-to-json-schema/parsers/nullable.ts x: 2 commits (all time) y: 53 lines of code _vendor/zod-to-json-schema/util.ts x: 1 commits (all time) y: 9 lines of code _vendor/zod-to-json-schema/errorMessages.ts x: 1 commits (all time) y: 39 lines of code _vendor/zod-to-json-schema/parsers/any.ts x: 1 commits (all time) y: 4 lines of code _vendor/zod-to-json-schema/parsers/array.ts x: 1 commits (all time) y: 57 lines of code _vendor/zod-to-json-schema/parsers/bigint.ts x: 1 commits (all time) y: 101 lines of code _vendor/zod-to-json-schema/parsers/intersection.ts x: 1 commits (all time) y: 61 lines of code _vendor/zod-to-json-schema/parsers/map.ts x: 1 commits (all time) y: 40 lines of code _vendor/zod-to-json-schema/parsers/nativeEnum.ts x: 1 commits (all time) y: 23 lines of code _vendor/zod-to-json-schema/parsers/number.ts x: 1 commits (all time) y: 107 lines of code _vendor/zod-to-json-schema/parsers/string.ts x: 1 commits (all time) y: 386 lines of code _vendor/zod-to-json-schema/parsers/union.ts x: 1 commits (all time) y: 125 lines of code lib/ChatCompletionStream.ts x: 8 commits (all time) y: 757 lines of code lib/ChatCompletionStreamingRunner.ts x: 5 commits (all time) y: 87 lines of code lib/RunnableFunction.ts x: 4 commits (all time) y: 87 lines of code lib/parser.ts x: 1 commits (all time) y: 227 lines of code resources/beta/threads/messages.ts x: 9 commits (all time) y: 324 lines of code resources/beta/threads/mod.ts x: 9 commits (all time) y: 71 lines of code resources/shared.ts x: 6 commits (all time) y: 31 lines of code lib/EventStream.ts x: 1 commits (all time) y: 180 lines of code resources/audio/speech.ts x: 8 commits (all time) y: 28 lines of code resources/images.ts x: 6 commits (all time) y: 75 lines of code _shims/node-runtime.ts x: 2 commits (all time) y: 87 lines of code resources/uploads/parts.ts x: 1 commits (all time) y: 28 lines of code resources/models.ts x: 4 commits (all time) y: 38 lines of code resources/fine-tuning/fine-tuning.ts x: 3 commits (all time) y: 20 lines of code resources/fine-tuning/jobs/mod.ts x: 1 commits (all time) y: 19 lines of code resources/fine-tuning/mod.ts x: 2 commits (all time) y: 14 lines of code pagination.ts x: 3 commits (all time) y: 77 lines of code resource.ts x: 2 commits (all time) y: 7 lines of code resources/beta/chat/chat.ts x: 3 commits (all time) y: 10 lines of code resources/beta/chat/mod.ts x: 2 commits (all time) y: 2 lines of code _shims/registry.ts x: 1 commits (all time) y: 70 lines of code
1103.0
lines of code
  min: 1.0
  average: 125.79
  25th percentile: 23.5
  median: 70.0
  75th percentile: 128.0
  max: 1103.0
0 125.0
commits (all time)
min: 1.0 | average: 5.91 | 25th percentile: 1.0 | median: 2.0 | 75th percentile: 7.0 | max: 125.0

File Size vs. Contributors (all time): 109 points

resources/chat/completions.ts x: 1 contributors (all time) y: 405 lines of code version.ts x: 2 contributors (all time) y: 1 lines of code core.ts x: 2 contributors (all time) y: 1103 lines of code lib/AbstractChatCompletionRunner.ts x: 2 contributors (all time) y: 475 lines of code mod.ts x: 2 contributors (all time) y: 374 lines of code resources/beta/assistants.ts x: 1 contributors (all time) y: 461 lines of code resources/chat/chat.ts x: 1 contributors (all time) y: 102 lines of code resources/chat/mod.ts x: 1 contributors (all time) y: 36 lines of code internal/decoders/line.ts x: 1 contributors (all time) y: 86 lines of code streaming.ts x: 2 contributors (all time) y: 331 lines of code resources/completions.ts x: 1 contributors (all time) y: 123 lines of code resources/audio/audio.ts x: 1 contributors (all time) y: 49 lines of code resources/audio/mod.ts x: 1 contributors (all time) y: 18 lines of code resources/audio/translations.ts x: 1 contributors (all time) y: 64 lines of code resources/mod.ts x: 2 contributors (all time) y: 70 lines of code resources/moderations.ts x: 1 contributors (all time) y: 105 lines of code resources/embeddings.ts x: 1 contributors (all time) y: 45 lines of code internal/qs/formats.ts x: 1 contributors (all time) y: 8 lines of code internal/qs/mod.ts x: 1 contributors (all time) y: 16 lines of code internal/qs/stringify.ts x: 1 contributors (all time) y: 376 lines of code internal/qs/types.ts x: 1 contributors (all time) y: 75 lines of code internal/qs/utils.ts x: 1 contributors (all time) y: 223 lines of code resources/beta/chat/completions.ts x: 2 contributors (all time) y: 162 lines of code _vendor/partial-json-parser/parser.ts x: 1 contributors (all time) y: 246 lines of code _vendor/zod-to-json-schema/parseDef.ts x: 1 contributors (all time) y: 254 lines of code _vendor/zod-to-json-schema/parsers/effects.ts x: 1 contributors (all time) y: 12 lines of code resources/beta/threads/runs/runs.ts x: 1 contributors (all time) y: 648 lines of code resources/beta/threads/threads.ts x: 1 contributors (all time) y: 603 lines of code resources/fine-tuning/jobs/jobs.ts x: 1 contributors (all time) y: 185 lines of code error.ts x: 1 contributors (all time) y: 146 lines of code resources/beta/beta.ts x: 2 contributors (all time) y: 74 lines of code resources/beta/mod.ts x: 2 contributors (all time) y: 52 lines of code resources/beta/vector-stores/file-batches.ts x: 1 contributors (all time) y: 201 lines of code resources/beta/vector-stores/files.ts x: 1 contributors (all time) y: 177 lines of code resources/beta/vector-stores/mod.ts x: 1 contributors (all time) y: 30 lines of code resources/beta/vector-stores/vector-stores.ts x: 1 contributors (all time) y: 188 lines of code helpers/zod.ts x: 1 contributors (all time) y: 72 lines of code lib/AssistantStream.ts x: 1 contributors (all time) y: 740 lines of code lib/ChatCompletionRunner.ts x: 2 contributors (all time) y: 86 lines of code resources/beta/threads/runs/steps.ts x: 1 contributors (all time) y: 290 lines of code resources/files.ts x: 1 contributors (all time) y: 131 lines of code resources/uploads/uploads.ts x: 1 contributors (all time) y: 59 lines of code _vendor/zod-to-json-schema/Options.ts x: 1 contributors (all time) y: 80 lines of code _vendor/zod-to-json-schema/parsers/nullable.ts x: 1 contributors (all time) y: 53 lines of code _vendor/zod-to-json-schema/parsers/any.ts x: 1 contributors (all time) y: 4 lines of code _vendor/zod-to-json-schema/parsers/map.ts x: 1 contributors (all time) y: 40 lines of code _vendor/zod-to-json-schema/parsers/nativeEnum.ts x: 1 contributors (all time) y: 23 lines of code _vendor/zod-to-json-schema/parsers/string.ts x: 1 contributors (all time) y: 386 lines of code lib/ChatCompletionStream.ts x: 2 contributors (all time) y: 757 lines of code lib/ChatCompletionStreamingRunner.ts x: 2 contributors (all time) y: 87 lines of code lib/parser.ts x: 1 contributors (all time) y: 227 lines of code resources/beta/threads/messages.ts x: 1 contributors (all time) y: 324 lines of code resources/shared.ts x: 1 contributors (all time) y: 31 lines of code lib/EventStream.ts x: 1 contributors (all time) y: 180 lines of code _shims/node-runtime.ts x: 1 contributors (all time) y: 87 lines of code resources/beta/chat/chat.ts x: 2 contributors (all time) y: 10 lines of code
1103.0
lines of code
  min: 1.0
  average: 125.79
  25th percentile: 23.5
  median: 70.0
  75th percentile: 128.0
  max: 1103.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.14 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.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".