huggingface / transformers.js-examples
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
Learn more...
Conditional Complexity Overall
0% | 0% | 0% | 13% | 86%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
js0% | 0% | 0% | 13% | 86%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
janus-webgpu0% | 0% | 0% | 52% | 47%
janus-pro-webgpu0% | 0% | 0% | 52% | 47%
webgpu-nomic-embed0% | 0% | 0% | 93% | 6%
webgpu-clip0% | 0% | 0% | 82% | 17%
depth-estimation-video0% | 0% | 0% | 70% | 29%
conversational-webgpu0% | 0% | 0% | 31% | 68%
segment-anything-webgpu0% | 0% | 0% | 30% | 69%
next-server0% | 0% | 0% | 0% | 100%
next-client0% | 0% | 0% | 0% | 100%
llama-3.2-reasoning-webgpu0% | 0% | 0% | 0% | 100%
qwen3-webgpu0% | 0% | 0% | 0% | 100%
smolvlm-webgpu0% | 0% | 0% | 0% | 100%
zyphra-zr1-webgpu0% | 0% | 0% | 0% | 100%
deepseek-r1-webgpu0% | 0% | 0% | 0% | 100%
semantic-image-search-web0% | 0% | 0% | 0% | 100%
tinyswallow-webgpu0% | 0% | 0% | 0% | 100%
phi-3.5-webgpu0% | 0% | 0% | 0% | 100%
smollm-webgpu0% | 0% | 0% | 0% | 100%
gemma-2-2b-jpn-webgpu0% | 0% | 0% | 0% | 100%
llama-3.2-webgpu0% | 0% | 0% | 0% | 100%
realtime-whisper-webgpu0% | 0% | 0% | 0% | 100%
depth-anything0% | 0% | 0% | 0% | 100%
florence2-webgpu0% | 0% | 0% | 0% | 100%
speecht5-web0% | 0% | 0% | 0% | 100%
semantic-audio-search0% | 0% | 0% | 0% | 100%
omniparser-node0% | 0% | 0% | 0% | 100%
moonshine-web0% | 0% | 0% | 0% | 100%
video-object-detection0% | 0% | 0% | 0% | 100%
musicgen-web0% | 0% | 0% | 0% | 100%
whisper-word-timestamps0% | 0% | 0% | 0% | 100%
vanilla-js0% | 0% | 0% | 0% | 100%
remove-background-web0% | 0% | 0% | 0% | 100%
video-background-removal0% | 0% | 0% | 0% | 100%
pglite-semantic-search0% | 0% | 0% | 0% | 100%
browser-extension0% | 0% | 0% | 0% | 100%
sveltekit0% | 0% | 0% | 0% | 100%
attention-visualization0% | 0% | 0% | 0% | 100%
cross-encoder0% | 0% | 0% | 0% | 100%
adaptive-retrieval0% | 0% | 0% | 0% | 100%
zero-shot-classification0% | 0% | 0% | 0% | 100%
text-to-speech-webgpu0% | 0% | 0% | 0% | 100%
code-completion0% | 0% | 0% | 0% | 100%
node-cjs0% | 0% | 0% | 0% | 100%
webgpu-embedding-benchmark0% | 0% | 0% | 0% | 100%
remove-background-webgpu0% | 0% | 0% | 0% | 100%
the-tokenizer-playground0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
70 8 0
62 8 0
40 7 0
38 7 2
29 7 2
97 6 1
97 6 1
27 5 1
27 5 1
70 5 2
20 4 3
32 4 3
20 4 3
8 3 0
9 3 0
12 3 1
19 3 1
24 3 0
13 3 0
72 3 1
13 3 2
13 3 0
64 3 1
13 3 0
64 3 1
13 3 0
10 3 1
46 3 2
14 3 0
13 3 0
13 3 0
16 3 0
10 3 1
23 3 0
14 3 0
18 3 0
13 3 0
13 3 0
31 3 0
18 3 0
12 2 1
13 2 2
23 2 1
5 2 3
8 2 0
20 2 0
14 2 2
20 2 0
20 2 0
53 2 1