openai / openai-assistants-quickstart
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 21 files with 866 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (229 lines of code)
    • 0 small files (0 lines of code)
    • 20 very small files (637 lines of code)
0% | 0% | 26% | 0% | 73%
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
tsx0% | 0% | 56% | 0% | 43%
css0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
mjs0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
app0% | 0% | 26% | 0% | 73%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 21)
File# lines# units
chat.tsx
in app/components
229 -
chat.module.css
in app/components
83 -
file-viewer.module.css
in app/components
68 -
63 -
route.tsx
in app/api/assistants/files
58 3
warnings.module.css
in app/components
52 -
weather-widget.module.css
in app/components
51 -
44 -
warnings.tsx
in app/components
40 -
weather-widget.tsx
in app/components
36 -
route.ts
in app/api/assistants
35 1
page.tsx
in app
26 -
18 -
route.ts
in app/api/assistants/threads/[threadId]/messages
14 1
route.ts
in app/api/files/[fileId]
12 1
weather.ts
in app/utils
12 -
route.ts
in app/api/assistants/threads/[threadId]/actions
10 1
route.ts
in app/api/assistants/threads
6 1
4 -
mjs
3 -
openai.ts
in app
2 -
Files With Most Units (Top 6)
File# lines# units
route.tsx
in app/api/assistants/files
58 3
route.ts
in app/api/files/[fileId]
12 1
route.ts
in app/api/assistants/threads/[threadId]/messages
14 1
route.ts
in app/api/assistants/threads/[threadId]/actions
10 1
route.ts
in app/api/assistants/threads
6 1
route.ts
in app/api/assistants
35 1
Files With Long Lines (Top 0)

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

File# lines# units# long lines
Correlations

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

app/api/assistants/route.ts x: 7 commits (all time) y: 35 lines of code app/components/chat.tsx x: 10 commits (all time) y: 229 lines of code app/api/files/[fileId]/route.ts x: 3 commits (all time) y: 12 lines of code app/components/chat.module.css x: 4 commits (all time) y: 83 lines of code app/api/assistants/threads/[threadId]/messages/route.ts x: 6 commits (all time) y: 14 lines of code app/assistant-config.ts x: 4 commits (all time) y: 4 lines of code app/api/assistants/files/route.tsx x: 3 commits (all time) y: 58 lines of code app/api/assistants/threads/[threadId]/actions/route.ts x: 3 commits (all time) y: 10 lines of code app/api/assistants/threads/route.ts x: 3 commits (all time) y: 6 lines of code app/openai.ts x: 3 commits (all time) y: 2 lines of code
229.0
lines of code
  min: 2.0
  average: 45.3
  25th percentile: 5.5
  median: 13.0
  75th percentile: 64.25
  max: 229.0
0 10.0
commits (all time)
min: 3.0 | average: 4.6 | 25th percentile: 3.0 | median: 3.5 | 75th percentile: 6.25 | max: 10.0

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

app/api/assistants/route.ts x: 5 contributors (all time) y: 35 lines of code app/components/chat.tsx x: 5 contributors (all time) y: 229 lines of code app/api/files/[fileId]/route.ts x: 3 contributors (all time) y: 12 lines of code app/components/chat.module.css x: 3 contributors (all time) y: 83 lines of code app/api/assistants/threads/[threadId]/messages/route.ts x: 5 contributors (all time) y: 14 lines of code app/assistant-config.ts x: 3 contributors (all time) y: 4 lines of code app/api/assistants/files/route.tsx x: 3 contributors (all time) y: 58 lines of code app/api/assistants/threads/[threadId]/actions/route.ts x: 3 contributors (all time) y: 10 lines of code app/api/assistants/threads/route.ts x: 3 contributors (all time) y: 6 lines of code app/openai.ts x: 3 contributors (all time) y: 2 lines of code
229.0
lines of code
  min: 2.0
  average: 45.3
  25th percentile: 5.5
  median: 13.0
  75th percentile: 64.25
  max: 229.0
0 5.0
contributors (all time)
min: 3.0 | average: 3.6 | 25th percentile: 3.0 | median: 3.0 | 75th percentile: 5.0 | max: 5.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".