openai / openai-builder-lab-solution
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 128 files with 6,240 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (516 lines of code)
    • 11 small files (1,388 lines of code)
    • 115 very small files (4,336 lines of code)
0% | 0% | 8% | 22% | 69%
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% | 11% | 35% | 53%
ts0% | 0% | 10% | 0% | 89%
py0% | 0% | 0% | 76% | 23%
css0% | 0% | 0% | 0% | 100%
cjs0% | 0% | 0% | 0% | 100%
mjs0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
challenge50% | 0% | 27% | 23% | 48%
challenge40% | 0% | 0% | 34% | 65%
challenge30% | 0% | 0% | 24% | 75%
challenge20% | 0% | 0% | 12% | 87%
challenge10% | 0% | 0% | 14% | 85%
starting_point0% | 0% | 0% | 14% | 85%
Longest Files (Top 50)
File# lines# units
chart.tsx
in challenge5/frontend/components/ui
311 1
assistant.ts
in challenge5/frontend/lib
205 1
voice-mode.tsx
in challenge5/frontend/components
199 4
voice-mode.tsx
in challenge4/frontend/components
162 3
app.py
in challenge3/python-backend
133 4
app.py
in challenge5/python-backend
133 4
app.py
in challenge4/python-backend
133 4
tool-call.tsx
in challenge5/frontend/components
113 -
chat.tsx
in challenge4/frontend/components
107 -
chat.tsx
in challenge3/frontend/components
102 -
chat.tsx
in challenge2/frontend/components
102 -
chat.tsx
in challenge1/frontend/components
102 -
chat.tsx
in starting_point/frontend/components
102 -
table.tsx
in challenge5/frontend/components/ui
100 -
chat.tsx
in challenge5/frontend/components
96 -
tools.ts
in challenge3/frontend/lib
91 -
tool-call.tsx
in challenge3/frontend/components
91 -
tool-call.tsx
in challenge2/frontend/components
91 -
tool-call.tsx
in challenge1/frontend/components
91 -
tool-call.tsx
in starting_point/frontend/components
91 -
tools.ts
in challenge5/frontend/lib
91 -
tools.ts
in challenge4/frontend/lib
91 -
tool-call.tsx
in challenge4/frontend/components
91 -
globals.css
in challenge3/frontend/app
89 -
globals.css
in challenge2/frontend/app
89 -
globals.css
in challenge1/frontend/app
89 -
globals.css
in starting_point/frontend/app
89 -
globals.css
in challenge5/frontend/app
89 -
route.ts
in challenge5/frontend/app/api/get_response
89 3
globals.css
in challenge4/frontend/app
89 -
assistant.ts
in challenge3/frontend/lib
74 1
assistant.ts
in challenge2/frontend/lib
74 1
app.py
in challenge2/python-backend
74 3
assistant.ts
in challenge4/frontend/lib
74 1
tailwind.config.ts
in challenge3/frontend
63 -
tailwind.config.ts
in challenge2/frontend
63 -
tailwind.config.ts
in challenge1/frontend
63 -
tailwind.config.ts
in starting_point/frontend
63 -
tailwind.config.ts
in challenge5/frontend
63 -
tailwind.config.ts
in challenge4/frontend
63 -
assistant.ts
in challenge1/frontend/lib
54 -
assistant.ts
in starting_point/frontend/lib
54 -
message.tsx
in challenge3/frontend/components
52 -
message.tsx
in challenge2/frontend/components
52 -
message.tsx
in challenge1/frontend/components
52 -
message.tsx
in starting_point/frontend/components
52 -
message.tsx
in challenge4/frontend/components
52 -
button.tsx
in challenge5/frontend/components/ui
46 -
assistant.tsx
in challenge3/frontend/components
43 1
assistant.tsx
in challenge2/frontend/components
43 1
Files With Most Units (Top 46)
File# lines# units
app.py
in challenge3/python-backend
133 4
voice-mode.tsx
in challenge5/frontend/components
199 4
app.py
in challenge5/python-backend
133 4
app.py
in challenge4/python-backend
133 4
app.py
in challenge2/python-backend
74 3
route.ts
in challenge5/frontend/app/api/get_response
89 3
voice-mode.tsx
in challenge4/frontend/components
162 3
app.py
in challenge1/python-backend
25 2
app.py
in starting_point/python-backend
23 2
assistant.ts
in challenge3/frontend/lib
74 1
utils.ts
in challenge3/frontend/lib
5 1
assistant.tsx
in challenge3/frontend/components
43 1
layout.tsx
in challenge3/frontend/app
35 1
route.ts
in challenge3/frontend/app/api/search_location
26 1
route.ts
in challenge3/frontend/app/api/get_response
23 1
route.ts
in challenge3/frontend/app/api/create_itinerary
23 1
assistant.ts
in challenge2/frontend/lib
74 1
utils.ts
in challenge2/frontend/lib
5 1
assistant.tsx
in challenge2/frontend/components
43 1
layout.tsx
in challenge2/frontend/app
35 1
route.ts
in challenge2/frontend/app/api/search_location
26 1
route.ts
in challenge2/frontend/app/api/get_response
23 1
utils.ts
in challenge1/frontend/lib
5 1
assistant.tsx
in challenge1/frontend/components
43 1
layout.tsx
in challenge1/frontend/app
35 1
route.ts
in challenge1/frontend/app/api/get_response
20 1
utils.ts
in starting_point/frontend/lib
5 1
assistant.tsx
in starting_point/frontend/components
43 1
layout.tsx
in starting_point/frontend/app
35 1
route.ts
in starting_point/frontend/app/api/get_response
19 1
assistant.ts
in challenge5/frontend/lib
205 1
utils.ts
in challenge5/frontend/lib
5 1
chart.tsx
in challenge5/frontend/components/ui
311 1
assistant.tsx
in challenge5/frontend/components
35 1
layout.tsx
in challenge5/frontend/app
35 1
route.ts
in challenge5/frontend/app/api/session
27 1
route.ts
in challenge5/frontend/app/api/search_location
26 1
route.ts
in challenge5/frontend/app/api/create_itinerary
23 1
assistant.ts
in challenge4/frontend/lib
74 1
utils.ts
in challenge4/frontend/lib
5 1
assistant.tsx
in challenge4/frontend/components
43 1
layout.tsx
in challenge4/frontend/app
35 1
route.ts
in challenge4/frontend/app/api/session
27 1
route.ts
in challenge4/frontend/app/api/search_location
26 1
route.ts
in challenge4/frontend/app/api/get_response
23 1
route.ts
in challenge4/frontend/app/api/create_itinerary
23 1
Files With Long Lines (Top 15)

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

File# lines# units# long lines
chat.tsx
in challenge3/frontend/components
102 - 3
chat.tsx
in challenge2/frontend/components
102 - 3
chat.tsx
in challenge1/frontend/components
102 - 3
chat.tsx
in starting_point/frontend/components
102 - 3
chat.tsx
in challenge5/frontend/components
96 - 3
chat.tsx
in challenge4/frontend/components
107 - 3
chart.tsx
in challenge5/frontend/components/ui
311 1 2
constants.ts
in challenge3/frontend/lib
18 - 1
constants.ts
in challenge2/frontend/lib
10 - 1
constants.ts
in challenge5/frontend/lib
39 - 1
voice-mode.tsx
in challenge5/frontend/components
199 4 1
button.tsx
in challenge5/frontend/components/ui
46 - 1
table.tsx
in challenge5/frontend/components/ui
100 - 1
constants.ts
in challenge4/frontend/lib
26 - 1
voice-mode.tsx
in challenge4/frontend/components
162 3 1
Correlations

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

challenge1/python-backend/app.py x: 1 commits (all time) y: 25 lines of code challenge2/python-backend/app.py x: 1 commits (all time) y: 74 lines of code challenge3/python-backend/app.py x: 1 commits (all time) y: 133 lines of code starting_point/python-backend/app.py x: 1 commits (all time) y: 23 lines of code
133.0
lines of code
  min: 23.0
  average: 86.83
  25th percentile: 24.5
  median: 103.5
  75th percentile: 133.0
  max: 133.0
0 1.0
commits (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

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

challenge1/python-backend/app.py x: 1 contributors (all time) y: 25 lines of code challenge2/python-backend/app.py x: 1 contributors (all time) y: 74 lines of code challenge3/python-backend/app.py x: 1 contributors (all time) y: 133 lines of code starting_point/python-backend/app.py x: 1 contributors (all time) y: 23 lines of code
133.0
lines of code
  min: 23.0
  average: 86.83
  25th percentile: 24.5
  median: 103.5
  75th percentile: 133.0
  max: 133.0
0 1.0
contributors (all time)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.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".