openai / procgen
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 487 units with 7,506 lines of code in units (82.5% of code).
    • 0 very complex units (0 lines of code)
    • 4 complex units (368 lines of code)
    • 25 medium complex units (1,364 lines of code)
    • 62 simple units (1,557 lines of code)
    • 396 very simple units (4,217 lines of code)
0% | 4% | 18% | 20% | 56%
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
cpp0% | 5% | 18% | 21% | 54%
py0% | 0% | 16% | 22% | 61%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
procgen0% | 5% | 17% | 21% | 56%
procgen-build0% | 0% | 51% | 0% | 48%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
113 34 0
118 32 0
84 28 4
53 27 0
50 23 2
80 23 0
95 22 0
74 20 0
90 19 0
49 17 0
81 17 1
61 16 0
55 16 2
42 15 3
45 14 1
46 14 0
91 14 0
28 13 2
68 13 0
78 12 1
50 12 0
45 12 0
56 11 1
27 11 0
46 11 2
13 11 0
29 11 2
40 11 0
25 11 2
45 10 0
28 10 0
55 10 0
39 10 2
51 10 0
12 10 1
27 10 1
39 10 2
31 10 2
29 10 2
28 10 0
57 10 0
25 10 2
38 9 2
19 9 2
26 9 2
31 9 0
19 9 2
14 9 1
24 9 0
25 9 1