openai / tiktoken
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
0% | 0% | 5% | 17% | 77%
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
py0% | 0% | 8% | 19% | 72%
rs0% | 0% | 0% | 14% | 85%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tiktoken0% | 0% | 11% | 20% | 68%
src0% | 0% | 0% | 14% | 85%
scripts0% | 0% | 0% | 43% | 56%
tiktoken_ext0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
40 13 2
28 9 2
40 8 3
24 7 0
14 7 1
21 6 1
9 6 2
14 5 1
14 5 1
32 5 3
30 5 3
12 4 2
11 4 1
11 4 2
6 3 0
10 3 3
7 3 0
9 3 3
6 2 0
5 2 5
8 2 3
2 2 2
2 2 2
6 2 1
6 2 2
4 2 2
2 2 2
4 2 2
6 2 2
10 2 1
6 2 2
3 2 1
2 2 1
3 2 3
12 2 4
14 2 4
19 2 4
6 2 2
6 2 3
14 2 2
14 1 0
12 1 0
12 1 0
12 1 0
18 1 0
23 1 0
2 1 2
3 1 3
2 1 0
2 1 0