openai / openai-cli
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 3,965 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,983 lines of code)
    • 4 medium size files (1,122 lines of code)
    • 2 small files (257 lines of code)
    • 12 very small files (603 lines of code)
0% | 50% | 28% | 6% | 15%
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
go0% | 52% | 29% | 6% | 10%
ps10% | 0% | 0% | 0% | 100%
bash0% | 0% | 0% | 0% | 100%
fish0% | 0% | 0% | 0% | 100%
zsh0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
internal0% | 51% | 25% | 9% | 14%
pkg0% | 47% | 35% | 0% | 17%
Longest Files (Top 21)
File# lines# units
requestflag.go
in internal/requestflag
759 50
explorer.go
in internal/jsonview
679 48
flagoptions.go
in pkg/cmd
545 15
cmdutil.go
in pkg/cmd
410 16
autocomplete.go
in internal/autocomplete
291 11
innerflag.go
in internal/requestflag
220 22
encoder.go
in internal/apiform
201 6
encoder.go
in internal/apiquery
143 5
staticdisplay.go
in internal/jsonview
114 7
suggest.go
in pkg/cmd
98 4
pwsh_autocomplete.ps1
in internal/autocomplete/shellscripts
89 -
cmdutil_unix.go
in pkg/cmd
80 3
debug_middleware.go
in internal/debugmiddleware
77 3
bash_autocomplete.bash
in internal/autocomplete/shellscripts
46 -
query.go
in internal/apiquery
43 2
fish
fish_autocomplete.fish
in internal/autocomplete/shellscripts
42 -
terminal.go
in internal/jsonview
38 2
zsh_autocomplete.zsh
in internal/autocomplete/shellscripts
36 -
25 2
binary_param.go
in internal/binaryparam
17 1
form.go
in internal/apiform
12 -
Files With Most Units (Top 16)
File# lines# units
requestflag.go
in internal/requestflag
759 50
explorer.go
in internal/jsonview
679 48
innerflag.go
in internal/requestflag
220 22
cmdutil.go
in pkg/cmd
410 16
flagoptions.go
in pkg/cmd
545 15
autocomplete.go
in internal/autocomplete
291 11
staticdisplay.go
in internal/jsonview
114 7
encoder.go
in internal/apiform
201 6
encoder.go
in internal/apiquery
143 5
suggest.go
in pkg/cmd
98 4
cmdutil_unix.go
in pkg/cmd
80 3
debug_middleware.go
in internal/debugmiddleware
77 3
25 2
terminal.go
in internal/jsonview
38 2
query.go
in internal/apiquery
43 2
binary_param.go
in internal/binaryparam
17 1
Files With Long Lines (Top 5)

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

File# lines# units# long lines
cmdutil.go
in pkg/cmd
410 16 2
flagoptions.go
in pkg/cmd
545 15 2
autocomplete.go
in internal/autocomplete
291 11 2
innerflag.go
in internal/requestflag
220 22 1
bash_autocomplete.bash
in internal/autocomplete/shellscripts
46 - 1
Correlations

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

internal/autocomplete/shellscripts/bash_autocomplete.bash x: 1 commits (all time) y: 46 lines of code internal/jsonview/explorer.go x: 1 commits (all time) y: 679 lines of code internal/jsonview/staticdisplay.go x: 1 commits (all time) y: 114 lines of code internal/jsonview/terminal.go x: 1 commits (all time) y: 38 lines of code
679.0
lines of code
  min: 38.0
  average: 219.25
  25th percentile: 40.0
  median: 80.0
  75th percentile: 537.75
  max: 679.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): 4 points

internal/autocomplete/shellscripts/bash_autocomplete.bash x: 1 contributors (all time) y: 46 lines of code internal/jsonview/explorer.go x: 1 contributors (all time) y: 679 lines of code internal/jsonview/staticdisplay.go x: 1 contributors (all time) y: 114 lines of code internal/jsonview/terminal.go x: 1 contributors (all time) y: 38 lines of code
679.0
lines of code
  min: 38.0
  average: 219.25
  25th percentile: 40.0
  median: 80.0
  75th percentile: 537.75
  max: 679.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): 4 points

internal/autocomplete/shellscripts/bash_autocomplete.bash x: 1 commits (90d) y: 46 lines of code internal/jsonview/explorer.go x: 1 commits (90d) y: 679 lines of code internal/jsonview/staticdisplay.go x: 1 commits (90d) y: 114 lines of code internal/jsonview/terminal.go x: 1 commits (90d) y: 38 lines of code
679.0
lines of code
  min: 38.0
  average: 219.25
  25th percentile: 40.0
  median: 80.0
  75th percentile: 537.75
  max: 679.0
0 1.0
commits (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (90 days): 4 points

internal/autocomplete/shellscripts/bash_autocomplete.bash x: 1 contributors (90d) y: 46 lines of code internal/jsonview/explorer.go x: 1 contributors (90d) y: 679 lines of code internal/jsonview/staticdisplay.go x: 1 contributors (90d) y: 114 lines of code internal/jsonview/terminal.go x: 1 contributors (90d) y: 38 lines of code
679.0
lines of code
  min: 38.0
  average: 219.25
  25th percentile: 40.0
  median: 80.0
  75th percentile: 537.75
  max: 679.0
0 1.0
contributors (90d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0