File Complexity Overall
  • There are 46 files with units, with 7,662 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 899 lines of code)
    • 1 medium complex files (McCabe index sum 51-125; 686 lines of code)
    • 4 slightly complex files (McCabe index sum 26-50; 1,181 lines of code)
    • 40 simple files (McCabe index sum 1-25; 4,896 lines of code)
  • 14 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 11% | 8% | 15% | 63%
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% | 11% | 8% | 15% | 63%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
genai_processors0% | 11% | 8% | 15% | 63%
Most Complex Files (Top 46)

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
processor.py
in genai_processors
899 81 132 15 11
content_api.py
in genai_processors
686 66 119 17 10
trace_file.py
in genai_processors/dev
238 15 31 13 7
mime_types.py
in genai_processors
167 17 30 18 6
function_calling.py
in genai_processors/core
458 12 26 6 7
transformers_model.py
in genai_processors/core
318 8 26 8 12
text.py
in genai_processors/core
324 8 20 6 8
openrouter_model.py
in genai_processors/contrib
248 6 14 6 6
context.py
in genai_processors
104 9 14 13 3
debug.py
in genai_processors
85 8 14 16 5
jinja_template.py
in genai_processors/core
113 11 11 10 1
constrained_decoding.py
in genai_processors/core
78 4 10 13 7
window.py
in genai_processors/core
153 8 9 6 2
drive.py
in genai_processors/core
159 9 9 6 1
map_processor.py
in genai_processors
125 9 9 7 1
cache.py
in genai_processors
124 8 9 7 2
switch.py
in genai_processors
110 6 9 8 3
trace.py
in genai_processors/dev
113 5 9 8 4
live_server.py
in genai_processors/dev
167 5 9 5 3
github.py
in genai_processors/core
54 3 8 15 6
sql_cache.py
in genai_processors
166 5 8 5 2
langchain_model.py
in genai_processors/contrib
101 3 7 7 5
mcp.py
in genai_processors
63 3 7 11 5
genai_model.py
in genai_processors/core
155 5 6 4 2
vad.py
in genai_processors/core
175 6 6 3 1
video.py
in genai_processors/core
192 5 6 3 2
realtime.py
in genai_processors/core
217 4 5 2 2
pdf.py
in genai_processors/core
68 5 5 7 1
tool_utils.py
in genai_processors
75 5 5 7 1
latency.py
in genai_processors/dev
190 5 5 3 1
rate_limit_audio.py
in genai_processors/core
102 4 4 4 1
speech_to_text.py
in genai_processors/core
280 4 4 1 1
timestamp.py
in genai_processors/core
43 2 4 9 3
streams.py
in genai_processors
135 3 3 2 1
filesystem.py
in genai_processors/core
49 1 3 6 3
web.py
in genai_processors/core
33 2 2 6 1
adk.py
in genai_processors/core
75 2 2 3 1
event_detection.py
in genai_processors/core
134 2 2 1 1
live_model.py
in genai_processors/core
185 2 2 1 1
audio.py
in genai_processors/core
62 2 2 3 1
ollama_model.py
in genai_processors/core
169 2 2 1 1
speech_events.py
in genai_processors/core
19 2 2 11 1
cache_base.py
in genai_processors
32 2 2 6 1
preamble.py
in genai_processors/core
42 1 1 2 1
text_to_speech.py
in genai_processors/core
90 1 1 1 1
audio_io.py
in genai_processors/core
87 1 1 1 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...