anthropics / anthropic-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 25 files with 5,673 lines of code.
    • 1 very long files (1,155 lines of code)
    • 4 long files (2,512 lines of code)
    • 2 medium size files (511 lines of code)
    • 5 small files (814 lines of code)
    • 13 very small files (681 lines of code)
20% | 44% | 9% | 14% | 12%
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
go21% | 46% | 9% | 14% | 8%
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
pkg39% | 37% | 0% | 12% | 10%
internal0% | 51% | 18% | 15% | 13%
Longest Files (Top 25)
File# lines# units
cmd_auth.go
in pkg/cmd
1155 33
requestflag.go
in internal/requestflag
759 50
explorer.go
in internal/jsonview
670 48
flagoptions.go
in pkg/cmd
545 15
cmdutil.go
in pkg/cmd
538 20
autocomplete.go
in internal/autocomplete
291 11
innerflag.go
in internal/requestflag
220 22
worker.go
in pkg/cmd
189 5
cmd_profile.go
in pkg/cmd
186 6
encoder.go
in internal/apiform
182 5
encoder.go
in internal/apiquery
143 5
staticdisplay.go
in internal/jsonview
114 7
suggest.go
in pkg/cmd
98 4
debug_middleware.go
in internal/debugmiddleware
94 4
pwsh_autocomplete.ps1
in internal/autocomplete/shellscripts
89 -
cmdutil_unix.go
in pkg/cmd
80 3
federation.go
in pkg/cmd
61 4
bash_autocomplete.bash
in internal/autocomplete/shellscripts
46 -
query.go
in internal/apiquery
43 2
fish
fish_autocomplete.fish
in internal/autocomplete/shellscripts
42 -
extras.go
in pkg/cmd
38 1
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 20)
File# lines# units
requestflag.go
in internal/requestflag
759 50
explorer.go
in internal/jsonview
670 48
cmd_auth.go
in pkg/cmd
1155 33
innerflag.go
in internal/requestflag
220 22
cmdutil.go
in pkg/cmd
538 20
flagoptions.go
in pkg/cmd
545 15
autocomplete.go
in internal/autocomplete
291 11
staticdisplay.go
in internal/jsonview
114 7
cmd_profile.go
in pkg/cmd
186 6
worker.go
in pkg/cmd
189 5
encoder.go
in internal/apiquery
143 5
encoder.go
in internal/apiform
182 5
federation.go
in pkg/cmd
61 4
suggest.go
in pkg/cmd
98 4
debug_middleware.go
in internal/debugmiddleware
94 4
cmdutil_unix.go
in pkg/cmd
80 3
25 2
query.go
in internal/apiquery
43 2
extras.go
in pkg/cmd
38 1
binary_param.go
in internal/binaryparam
17 1
Files With Long Lines (Top 9)

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

File# lines# units# long lines
cmd_auth.go
in pkg/cmd
1155 33 15
worker.go
in pkg/cmd
189 5 7
cmdutil.go
in pkg/cmd
538 20 5
cmd_profile.go
in pkg/cmd
186 6 3
flagoptions.go
in pkg/cmd
545 15 2
extras.go
in pkg/cmd
38 1 2
autocomplete.go
in internal/autocomplete
291 11 2
bash_autocomplete.bash
in internal/autocomplete/shellscripts
46 - 1
innerflag.go
in internal/requestflag
220 22 1
Correlations

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

pkg/cmd/cmd_auth.go x: 1 commits (all time) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 commits (all time) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.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): 2 points

pkg/cmd/cmd_auth.go x: 1 contributors (all time) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 contributors (all time) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.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): 2 points

pkg/cmd/cmd_auth.go x: 1 commits (30d) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 commits (30d) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.0
0 1.0
commits (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Contributors (30 days): 2 points

pkg/cmd/cmd_auth.go x: 1 contributors (30d) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 contributors (30d) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.0
0 1.0
contributors (30d)
min: 1.0 | average: 1.0 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 1.0

File Size vs. Commits (90 days): 2 points

pkg/cmd/cmd_auth.go x: 1 commits (90d) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 commits (90d) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.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): 2 points

pkg/cmd/cmd_auth.go x: 1 contributors (90d) y: 1155 lines of code pkg/cmd/cmd_profile.go x: 1 contributors (90d) y: 186 lines of code
1155.0
lines of code
  min: 186.0
  average: 670.5
  25th percentile: 186.0
  median: 670.5
  75th percentile: 1155.0
  max: 1155.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