File Complexity Overall
  • There are 48 files with units, with 10,667 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 1 complex files (McCabe index sum 126-250; 386 lines of code)
    • 6 medium complex files (McCabe index sum 51-125; 3,154 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 1,820 lines of code)
    • 36 simple files (McCabe index sum 1-25; 5,307 lines of code)
  • 36 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 3% | 29% | 17% | 49%
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
pyi0% | 100% | 0% | 0% | 0%
rs0% | 0% | 28% | 18% | 52%
js0% | 0% | 100% | 0% | 0%
py0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
deepseek-recipe-python0% | 14% | 28% | 27% | 29%
deepseek-recipe0% | 0% | 31% | 13% | 54%
encoding-decoding-demo0% | 0% | 53% | 0% | 46%
deepseek-recipe-image0% | 0% | 39% | 0% | 60%
deepseek-recipe-encoding0% | 0% | 0% | 78% | 21%
server-rs0% | 0% | 0% | 0% | 100%
server-py0% | 0% | 0% | 0% | 100%
deepseek-recipe-core0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 48)

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
pyi
_native.pyi
in deepseek-recipe-python/python/deepseek_recipe
386 147 147 38 1
app.js
in encoding-decoding-demo/static
393 24 62 16 8
conversation.rs
in deepseek-recipe-python/src
759 58 58 8 1
convert.rs
in deepseek-recipe/src/protocol/openai/responses/request
611 25 56 9 5
convert.rs
in deepseek-recipe/src/protocol/anthropic/messages/request
566 19 53 9 18
opencv.rs
in deepseek-recipe-image/src
365 15 52 14 8
convert.rs
in deepseek-recipe/src/protocol/openai/chat_completion/request
460 14 51 11 14
mod.rs
in deepseek-recipe-encoding/src/v4
394 11 48 12 13
response.rs
in deepseek-recipe-python/src
413 27 43 10 4
state_machine.rs
in deepseek-recipe/src/stream
505 12 38 8 13
accumulator.rs
in deepseek-recipe/src/protocol/openai/responses/response
209 4 29 14 26
image.rs
in deepseek-recipe-python/src
299 25 27 9 2
request.rs
in deepseek-recipe-python/src
235 21 25 11 3
main.rs
in encoding-decoding-demo/src
345 12 20 6 4
processor.rs
in deepseek-recipe/src/stream
336 7 19 6 9
custom_tool_input.rs
in deepseek-recipe/src/protocol/openai/responses/response
101 4 19 19 6
json.rs
in deepseek-recipe-python/src
125 2 16 13 11
inference.rs
in deepseek-recipe-python/src
198 16 16 8 1
schema.rs
in deepseek-recipe/src/protocol/openai/chat_completion/response
269 7 15 6 5
parsing.rs
in deepseek-recipe-python/src
108 14 14 13 1
chunk_generator.rs
in deepseek-recipe/src/protocol/openai/responses/response
397 6 13 3 3
json_formatter.rs
in deepseek-recipe-core/src/util
85 5 12 14 8
main.py
in server-py
202 8 11 5 3
tools.rs
in deepseek-recipe/src/protocol/openai/responses/request
274 5 10 4 4
resolver.rs
in deepseek-recipe-image/src
355 6 10 3 3
schema.rs
in deepseek-recipe/src/protocol/anthropic/messages/response
231 5 8 3 4
tokenizer.rs
in deepseek-recipe-python/src
54 5 8 15 3
append_delta.rs
in deepseek-recipe/src/util
33 5 7 21 2
dsv41.rs
in deepseek-recipe-encoding/src/v4
47 7 7 15 1
chunk_generator.rs
in deepseek-recipe/src/protocol/anthropic/messages/response
192 3 6 3 3
encoding.rs
in deepseek-recipe-python/src
54 4 6 11 2
dsv4.rs
in deepseek-recipe-encoding/src/v4
45 6 6 13 1
validation.rs
in deepseek-recipe/src/protocol
106 2 5 5 3
decoder.rs
in deepseek-recipe/src/stream
48 3 4 8 2
limits.rs
in deepseek-recipe-image/src
164 4 4 2 1
tokenizer.rs
in deepseek-recipe-encoding/src
17 3 4 24 2
image.rs
in deepseek-recipe/src/protocol
93 1 3 3 3
schema.rs
in deepseek-recipe/src/protocol/openai/responses/response
299 3 3 1 1
lib.rs
in server-rs/src
235 3 3 1 1
chunk_generator.rs
in deepseek-recipe/src/protocol/openai/chat_completion/response
152 1 2 1 2
main.rs
in server-rs/src
85 2 2 2 1
lib.rs
in deepseek-recipe-image/src
46 2 2 4 1
build.rs
in deepseek-recipe-python
5 1 2 40 2
mod.rs
in deepseek-recipe/src/stream
56 1 1 2 1
schema.rs
in deepseek-recipe/src/protocol/openai/chat_completion/request
173 1 1 1 1
options.rs
in deepseek-recipe/src/request
43 1 1 2 1
mod.rs
in deepseek-recipe/src/request
61 1 1 2 1
conversation.rs
in deepseek-recipe-core/src
38 1 1 3 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...