twitter / the-algorithm
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
<1% | 1% | 8% | 14% | 75%
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
scala<1% | 1% | 7% | 14% | 75%
java<1% | 1% | 6% | 14% | 77%
py0% | 1% | 16% | 22% | 60%
cpp0% | 0% | 18% | 23% | 58%
h0% | 0% | 16% | 0% | 83%
rs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
visibilitylib3% | 2% | 10% | 10% | 72%
src<1% | 1% | 7% | 17% | 74%
tweetypie0% | 3% | 10% | 15% | 69%
product-mixer0% | 1% | 7% | 11% | 79%
cr-mixer0% | 1% | 8% | 6% | 82%
home-mixer0% | 1% | 3% | 12% | 82%
twml0% | 1% | 20% | 22% | 56%
pushservice0% | <1% | 13% | 20% | 64%
follow-recommendations-service0% | 1% | 1% | 18% | 79%
unified_user_actions0% | 1% | 2% | 9% | 86%
topic-social-proof0% | 0% | 16% | 15% | 68%
simclusters-ann0% | 0% | 33% | 5% | 60%
ann0% | 0% | <1% | 3% | 95%
timelineranker0% | 0% | 2% | 9% | 88%
graph-feature-service0% | 0% | 7% | 17% | 74%
recos-injector0% | 0% | 4% | 8% | 86%
representation-scorer0% | 0% | 7% | 18% | 73%
trust_and_safety_models0% | 0% | 4% | 22% | 73%
timelines0% | 0% | 0% | 25% | 74%
user-signal-service0% | 0% | 0% | 12% | 87%
navi0% | 0% | 0% | 0% | 100%
representation-manager0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
189 68 1
178 63 1
257 55 1
56 47 1
138 46 4
210 45 1
96 45 3
201 45 1
141 45 2
46 43 1
47 43 1
41 40 1
166 38 5
40 37 1
37 36 1
379 36 21
131 36 3
77 35 3
232 34 2
43 33 0
106 32 13
76 32 2
167 31 5
74 31 1
33 30 1
148 29 3
33 28 1
86 28 2
238 28 10
49 27 9
86 27 1
45 26 6
134 26 3
44 26 1
30 25 3
30 25 3
132 25 1
89 24 16
96 24 14
190 24 2
121 24 2
90 24 3
160 24 7
24 23 1
27 23 1
76 23 1
85 23 2
62 23 2
79 23 4
52 22 2