anthropics / github-mcp-server
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 18 files with 4,695 lines of code.
    • 1 very long files (1,183 lines of code)
    • 2 long files (1,634 lines of code)
    • 1 medium size files (347 lines of code)
    • 9 small files (1,344 lines of code)
    • 5 very small files (187 lines of code)
25% | 34% | 7% | 28% | 3%
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
go25% | 35% | 7% | 28% | 3%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pkg28% | 39% | 0% | 28% | 3%
cmd0% | 0% | 65% | 34% | 0%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 18)
File# lines# units
pullrequests.go
in pkg/github
1183 13
repositories.go
in pkg/github
924 12
issues.go
in pkg/github
710 9
main.go
in cmd/mcpcurl
347 6
search.go
in pkg/github
199 3
main.go
in cmd/github-mcp-server
185 5
166 6
code_scanning.go
in pkg/github
147 2
toolsets.go
in pkg/toolsets
144 14
server.go
in pkg/github
141 11
secret_scanning.go
in pkg/github
141 2
dynamic_tools.go
in pkg/github
114 4
tools.go
in pkg/github
107 3
translations.go
in pkg/translations
57 3
context_tools.go
in pkg/github
46 1
38 -
io.go
in pkg/log
34 3
resources.go
in pkg/github
12 1
Files With Most Units (Top 17)
File# lines# units
toolsets.go
in pkg/toolsets
144 14
pullrequests.go
in pkg/github
1183 13
repositories.go
in pkg/github
924 12
server.go
in pkg/github
141 11
issues.go
in pkg/github
710 9
main.go
in cmd/mcpcurl
347 6
166 6
main.go
in cmd/github-mcp-server
185 5
dynamic_tools.go
in pkg/github
114 4
translations.go
in pkg/translations
57 3
tools.go
in pkg/github
107 3
search.go
in pkg/github
199 3
io.go
in pkg/log
34 3
code_scanning.go
in pkg/github
147 2
secret_scanning.go
in pkg/github
141 2
resources.go
in pkg/github
12 1
context_tools.go
in pkg/github
46 1
Files With Long Lines (Top 11)

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

File# lines# units# long lines
pullrequests.go
in pkg/github
1183 13 42
repositories.go
in pkg/github
924 12 19
issues.go
in pkg/github
710 9 12
166 6 6
dynamic_tools.go
in pkg/github
114 4 6
secret_scanning.go
in pkg/github
141 2 6
tools.go
in pkg/github
107 3 5
code_scanning.go
in pkg/github
147 2 5
main.go
in cmd/github-mcp-server
185 5 3
search.go
in pkg/github
199 3 3
context_tools.go
in pkg/github
46 1 2
Correlations

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

pkg/github/issues.go x: 27 commits (all time) y: 710 lines of code pkg/github/pullrequests.go x: 26 commits (all time) y: 1183 lines of code pkg/github/repositories.go x: 30 commits (all time) y: 924 lines of code pkg/github/tools.go x: 8 commits (all time) y: 107 lines of code cmd/github-mcp-server/main.go x: 20 commits (all time) y: 185 lines of code pkg/github/code_scanning.go x: 14 commits (all time) y: 147 lines of code pkg/github/context_tools.go x: 2 commits (all time) y: 46 lines of code pkg/github/dynamic_tools.go x: 2 commits (all time) y: 114 lines of code pkg/github/search.go x: 16 commits (all time) y: 199 lines of code pkg/github/secret_scanning.go x: 2 commits (all time) y: 141 lines of code pkg/github/resources.go x: 1 commits (all time) y: 12 lines of code pkg/github/server.go x: 43 commits (all time) y: 141 lines of code pkg/translations/translations.go x: 4 commits (all time) y: 57 lines of code cmd/mcpcurl/main.go x: 5 commits (all time) y: 347 lines of code pkg/github/repository_resource.go x: 7 commits (all time) y: 166 lines of code .goreleaser.yaml x: 2 commits (all time) y: 38 lines of code pkg/log/io.go x: 2 commits (all time) y: 34 lines of code
1183.0
lines of code
  min: 12.0
  average: 260.83
  25th percentile: 54.25
  median: 142.5
  75th percentile: 236.0
  max: 1183.0
0 43.0
commits (all time)
min: 1.0 | average: 11.83 | 25th percentile: 2.0 | median: 6.0 | 75th percentile: 21.5 | max: 43.0

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

pkg/github/issues.go x: 9 contributors (all time) y: 710 lines of code pkg/github/pullrequests.go x: 9 contributors (all time) y: 1183 lines of code pkg/github/repositories.go x: 13 contributors (all time) y: 924 lines of code pkg/github/tools.go x: 5 contributors (all time) y: 107 lines of code cmd/github-mcp-server/main.go x: 6 contributors (all time) y: 185 lines of code pkg/github/code_scanning.go x: 6 contributors (all time) y: 147 lines of code pkg/github/context_tools.go x: 2 contributors (all time) y: 46 lines of code pkg/github/dynamic_tools.go x: 2 contributors (all time) y: 114 lines of code pkg/github/search.go x: 6 contributors (all time) y: 199 lines of code pkg/github/secret_scanning.go x: 2 contributors (all time) y: 141 lines of code pkg/github/resources.go x: 1 contributors (all time) y: 12 lines of code pkg/github/server.go x: 14 contributors (all time) y: 141 lines of code pkg/translations/translations.go x: 3 contributors (all time) y: 57 lines of code cmd/mcpcurl/main.go x: 3 contributors (all time) y: 347 lines of code pkg/github/repository_resource.go x: 5 contributors (all time) y: 166 lines of code .goreleaser.yaml x: 1 contributors (all time) y: 38 lines of code pkg/log/io.go x: 1 contributors (all time) y: 34 lines of code
1183.0
lines of code
  min: 12.0
  average: 260.83
  25th percentile: 54.25
  median: 142.5
  75th percentile: 236.0
  max: 1183.0
0 14.0
contributors (all time)
min: 1.0 | average: 5.0 | 25th percentile: 2.0 | median: 4.0 | 75th percentile: 6.75 | max: 14.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".