File Complexity Overall
  • There are 45 files with units, with 10,671 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 3,093 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 588 lines of code)
    • 10 slightly complex files (McCabe index sum 26-50; 3,038 lines of code)
    • 32 simple files (McCabe index sum 1-25; 3,952 lines of code)
  • 34 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 28% | 5% | 28% | 37%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
py0% | 19% | 6% | 31% | 42%
js0% | 80% | 0% | 14% | 5%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
live-api0% | 28% | 5% | 28% | 37%
Most Complex Files (Top 45)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
agent-ui.js
in live-api/agent/ui
1293 37 244 19 43
session.py
in live-api/spot/apps/api
1800 73 141 8 12
main.py
in live-api/spot/apps/api
588 55 68 12 6
media-handler.js
in live-api/agent/ui
228 14 45 20 6
tools.py
in live-api/agent/tool
716 38 38 5 1
camera_streamer.py
in live-api/tinybot/src/robot
162 8 38 23 11
robotics_developer_client.py
in live-api/agent/model
157 19 34 22 6
registry.py
in live-api/spot/apps/navigation
102 12 31 30 6
session_manager.py
in live-api/agent
601 10 30 5 18
cli.py
in live-api/spot/apps/navigation
143 13 30 21 6
server.py
in live-api/agent
672 7 28 4 8
live_api_client.py
in live-api/agent/model
119 9 27 23 15
robot_api.py
in live-api/tinybot/src/robot
138 12 26 19 4
spot_client.py
in live-api/spot/apps/manipulation
225 15 25 11 5
er2_developer_api_example.py
in live-api/agent/scripts
265 10 23 9 8
models.py
in live-api/spot/apps/manipulation
84 5 23 27 18
agent-client.js
in live-api/agent/ui
61 7 20 33 10
observation.py
in live-api/agent/core
224 11 20 9 5
cli.py
in live-api/spot/apps/manipulation
91 10 18 20 5
tool_call_handler.py
in live-api/agent/core
334 7 16 5 6
si_builder.py
in live-api/agent/prompt
51 9 15 29 4
visualizer.py
in live-api/spot/apps/navigation
104 7 15 14 5
camera_poller.py
in live-api/agent
219 8 14 6 5
event_bus.py
in live-api/agent/core
131 8 13 10 3
decision_making.py
in live-api/agent/core
176 5 10 6 4
tts_client.py
in live-api/agent/model
86 4 8 9 3
spot_client.py
in live-api/spot/apps/navigation
101 6 8 8 3
config.py
in live-api/spot/apps/api
24 1 8 33 8
openapi_tools.py
in live-api/agent/embodiment/spot
403 4 7 2 4
gemini_detector.py
in live-api/spot/apps/manipulation
75 4 7 9 3
pcm-processor.js
in live-api/agent/ui
22 2 6 27 5
human.py
in live-api/agent/embodiment
39 6 6 15 1
tinybot_embodiment.py
in live-api/agent/embodiment/tinybot
80 6 6 8 1
spot_embodiment.py
in live-api/agent/embodiment/spot
78 6 6 8 1
agent.py
in live-api/agent/agent
52 4 5 10 2
base.py
in live-api/agent/embodiment
17 5 5 29 1
modelserving_pb2_grpc.py
in live-api/agent/model/robotics_developer/google/robotics/developer/v1
70 4 4 6 1
generate_tag_sheets.py
in live-api/spot/apps/navigation/tags
22 3 4 18 2
audio_handler.py
in live-api/agent/core
58 2 2 3 1
robot_client.py
in live-api/agent/embodiment/spot
545 2 2 0 1
robot_client.py
in live-api/agent/embodiment
172 1 1 1 1
robot_client.py
in live-api/agent/embodiment/tinybot
105 1 1 1 1
run_robot.py
in live-api/tinybot/src/robot
22 1 1 5 1
main.py
in live-api/spot
4 1 1 25 1
vite.config.js
in live-api/spot/apps/hydration-agent
12 1 1 8 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...