openai / parameter-golf
Conditional Complexity

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

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 3,689 units with 75,596 lines of code in units (77.2% of code).
    • 66 very complex units (21,119 lines of code)
    • 7 complex units (1,156 lines of code)
    • 277 medium complex units (16,304 lines of code)
    • 619 simple units (13,582 lines of code)
    • 2,720 very simple units (23,435 lines of code)
27% | 1% | 21% | 17% | 31%
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
py28% | 1% | 21% | 17% | 30%
cpp0% | 0% | 18% | 25% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
records28% | 1% | 21% | 17% | 30%
results18% | 0% | 35% | 19% | 26%
ROOT22% | 14% | 9% | 17% | 35%
data0% | 0% | 25% | 24% | 49%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
605 184 0
556 143 0
364 134 0
391 132 0
332 125 0
492 125 0
404 120 0
429 119 0
421 116 0
444 115 0
309 114 0
408 111 0
476 109 0
385 108 0
393 101 0
343 99 0
356 98 0
350 95 0
343 89 0
357 88 0
319 88 0
318 88 0
363 87 0
336 86 0
358 85 0
327 84 0
373 84 0
348 83 0
282 82 0
363 82 0
345 80 0
339 79 0
346 78 0
325 78 0
325 78 0
325 78 0
325 78 0
326 78 0
325 78 0
325 78 0
325 78 0
335 77 0
171 75 3
289 63 5
289 63 5
289 63 5
289 63 5
289 63 5
289 63 5
289 63 5