openai / tart-guest-agent
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 26 files with 1,982 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (541 lines of code)
    • 1 medium size files (253 lines of code)
    • 4 small files (573 lines of code)
    • 20 very small files (615 lines of code)
0% | 27% | 12% | 28% | 31%
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% | 28% | 13% | 30% | 28%
proto0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
internal0% | 28% | 13% | 30% | 26%
proto0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
.github0% | 0% | 0% | 0% | 100%
Longest Files (Top 26)
File# lines# units
agent.pb.go
in internal/rpc
541 70
exec.go
in internal/rpc
253 4
vdagent.go
in internal/spice/vdagent
198 4
root.go
in internal/command
157 4
diskresizer.go
in internal/diskresizer
114 3
agent_grpc.pb.go
in internal/rpc
104 10
listener.go
in internal/vsock
63 4
vd.go
in internal/spice/vd
61 -
vdi.go
in internal/spice/vdi
49 3
proto
agent.proto
in proto/rpc
47 -
clipboard.go
in internal/spice/vd
44 3
agentmessage.go
in internal/spice/vd
41 3
main.go
in cmd
40 2
conn.go
in internal/vsock
35 8
clipboardrequest.go
in internal/spice/vd
30 3
clipboardgrab.go
in internal/spice/vd
30 3
resolveip.go
in internal/rpc
28 1
tart.go
in internal/tart
28 1
capability.go
in internal/spice/vd
28 3
rpc.go
in internal/rpc
26 2
version.go
in internal/version
23 1
addr.go
in internal/vsock
11 2
buf.yaml
in root
10 -
dependabot.yaml
in .github
10 -
8 -
logginglevel.go
in internal/logginglevel
3 -
Files With Most Units (Top 20)
File# lines# units
agent.pb.go
in internal/rpc
541 70
agent_grpc.pb.go
in internal/rpc
104 10
conn.go
in internal/vsock
35 8
root.go
in internal/command
157 4
exec.go
in internal/rpc
253 4
vdagent.go
in internal/spice/vdagent
198 4
listener.go
in internal/vsock
63 4
vdi.go
in internal/spice/vdi
49 3
clipboardrequest.go
in internal/spice/vd
30 3
capability.go
in internal/spice/vd
28 3
agentmessage.go
in internal/spice/vd
41 3
clipboard.go
in internal/spice/vd
44 3
clipboardgrab.go
in internal/spice/vd
30 3
diskresizer.go
in internal/diskresizer
114 3
main.go
in cmd
40 2
rpc.go
in internal/rpc
26 2
addr.go
in internal/vsock
11 2
resolveip.go
in internal/rpc
28 1
tart.go
in internal/tart
28 1
version.go
in internal/version
23 1
Files With Long Lines (Top 3)

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

File# lines# units# long lines
agent.pb.go
in internal/rpc
541 70 5
agent_grpc.pb.go
in internal/rpc
104 10 3
diskresizer.go
in internal/diskresizer
114 3 1
Correlations

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

internal/rpc/agent.pb.go x: 3 commits (all time) y: 541 lines of code internal/rpc/exec.go x: 4 commits (all time) y: 253 lines of code proto/rpc/agent.proto x: 3 commits (all time) y: 47 lines of code internal/command/root.go x: 8 commits (all time) y: 157 lines of code internal/spice/vdagent/vdagent.go x: 3 commits (all time) y: 198 lines of code cmd/main.go x: 2 commits (all time) y: 40 lines of code internal/tart/tart.go x: 3 commits (all time) y: 28 lines of code internal/rpc/rpc.go x: 2 commits (all time) y: 26 lines of code internal/vsock/listener.go x: 2 commits (all time) y: 63 lines of code .github/dependabot.yaml x: 1 commits (all time) y: 10 lines of code internal/rpc/agent_grpc.pb.go x: 2 commits (all time) y: 104 lines of code internal/rpc/resolveip.go x: 1 commits (all time) y: 28 lines of code buf.gen.yaml x: 1 commits (all time) y: 8 lines of code internal/vsock/addr.go x: 1 commits (all time) y: 11 lines of code internal/vsock/conn.go x: 1 commits (all time) y: 35 lines of code internal/spice/vd/agentmessage.go x: 1 commits (all time) y: 41 lines of code internal/spice/vd/clipboard.go x: 1 commits (all time) y: 44 lines of code internal/spice/vd/clipboardgrab.go x: 1 commits (all time) y: 30 lines of code internal/spice/vd/vd.go x: 1 commits (all time) y: 61 lines of code internal/spice/vdi/vdi.go x: 1 commits (all time) y: 49 lines of code internal/diskresizer/diskresizer.go x: 1 commits (all time) y: 114 lines of code internal/logginglevel/logginglevel.go x: 1 commits (all time) y: 3 lines of code internal/version/version.go x: 1 commits (all time) y: 23 lines of code
541.0
lines of code
  min: 3.0
  average: 76.23
  25th percentile: 25.25
  median: 37.5
  75th percentile: 73.25
  max: 541.0
0 8.0
commits (all time)
min: 1.0 | average: 1.85 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 2.25 | max: 8.0

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

internal/rpc/agent.pb.go x: 2 contributors (all time) y: 541 lines of code internal/rpc/exec.go x: 2 contributors (all time) y: 253 lines of code proto/rpc/agent.proto x: 2 contributors (all time) y: 47 lines of code internal/command/root.go x: 1 contributors (all time) y: 157 lines of code internal/spice/vdagent/vdagent.go x: 1 contributors (all time) y: 198 lines of code cmd/main.go x: 1 contributors (all time) y: 40 lines of code internal/tart/tart.go x: 1 contributors (all time) y: 28 lines of code internal/rpc/rpc.go x: 1 contributors (all time) y: 26 lines of code internal/vsock/listener.go x: 1 contributors (all time) y: 63 lines of code .github/dependabot.yaml x: 1 contributors (all time) y: 10 lines of code internal/rpc/agent_grpc.pb.go x: 1 contributors (all time) y: 104 lines of code buf.gen.yaml x: 1 contributors (all time) y: 8 lines of code internal/vsock/addr.go x: 1 contributors (all time) y: 11 lines of code internal/vsock/conn.go x: 1 contributors (all time) y: 35 lines of code internal/spice/vd/agentmessage.go x: 1 contributors (all time) y: 41 lines of code internal/spice/vd/clipboard.go x: 1 contributors (all time) y: 44 lines of code internal/spice/vd/clipboardgrab.go x: 1 contributors (all time) y: 30 lines of code internal/spice/vd/vd.go x: 1 contributors (all time) y: 61 lines of code internal/spice/vdi/vdi.go x: 1 contributors (all time) y: 49 lines of code internal/diskresizer/diskresizer.go x: 1 contributors (all time) y: 114 lines of code internal/logginglevel/logginglevel.go x: 1 contributors (all time) y: 3 lines of code internal/version/version.go x: 1 contributors (all time) y: 23 lines of code
541.0
lines of code
  min: 3.0
  average: 76.23
  25th percentile: 25.25
  median: 37.5
  75th percentile: 73.25
  max: 541.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.12 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.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): 3 points

internal/rpc/agent.pb.go x: 1 commits (90d) y: 541 lines of code internal/rpc/exec.go x: 1 commits (90d) y: 253 lines of code proto/rpc/agent.proto x: 1 commits (90d) y: 47 lines of code
541.0
lines of code
  min: 47.0
  average: 280.33
  25th percentile: 47.0
  median: 253.0
  75th percentile: 541.0
  max: 541.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): 3 points

internal/rpc/agent.pb.go x: 1 contributors (90d) y: 541 lines of code internal/rpc/exec.go x: 1 contributors (90d) y: 253 lines of code proto/rpc/agent.proto x: 1 contributors (90d) y: 47 lines of code
541.0
lines of code
  min: 47.0
  average: 280.33
  25th percentile: 47.0
  median: 253.0
  75th percentile: 541.0
  max: 541.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