openai / prometheus
Conditional Complexity

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

Intro
Learn more...
Conditional Complexity Overall
6% | 9% | 20% | 19% | 43%
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
go7% | 9% | 20% | 19% | 42%
js0% | 0% | 23% | 8% | 67%
tsx0% | 0% | 13% | 31% | 54%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
promql28% | 2% | 16% | 11% | 41%
pkg40% | 8% | 9% | 9% | 33%
prompb4% | 31% | 17% | 10% | 35%
cmd0% | 45% | 12% | 17% | 25%
tsdb0% | 5% | 24% | 26% | 43%
scrape0% | 11% | 17% | 16% | 54%
web0% | 3% | 27% | 20% | 48%
util0% | 11% | 23% | 9% | 55%
discovery0% | 0% | 30% | 24% | 45%
rules0% | 0% | 31% | 13% | 54%
config0% | 0% | 58% | 10% | 31%
storage0% | 0% | 6% | 31% | 62%
notifier0% | 0% | 25% | 9% | 64%
template0% | 0% | 0% | 52% | 47%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
797 150 1
668 143 1
457 117 1
146 72 1
266 64 1
213 61 1
179 53 1
161 46 1
159 45 1
156 44 1
520 43 0
117 42 1
144 41 1
127 39 1
158 38 1
136 37 1
159 36 1
162 35 1
180 35 1
121 33 1
121 33 1
134 33 4
117 31 1
105 30 1
105 30 1
105 30 1
101 30 2
103 30 1
106 29 1
153 28 1
111 27 1
103 25 1
105 25 1
63 25 1
82 24 1
115 24 1
101 24 1
87 23 1
87 23 1
87 23 1
87 23 1
122 23 2
78 23 1
102 23 1
85 22 1
83 22 1
93 22 1
75 21 1
91 21 2
45 21 1