openai / harmony
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 187 units with 2,645 lines of code in units (55.7% of code).
    • 1 very complex units (334 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (417 lines of code)
    • 4 simple units (151 lines of code)
    • 178 very simple units (1,743 lines of code)
12% | 0% | 15% | 5% | 65%
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
rs13% | 0% | 17% | 5% | 63%
py0% | 0% | 0% | 8% | 91%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src13% | 0% | 17% | 5% | 63%
python0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
334 85 2
113 21 4
73 16 4
60 13 4
171 13 2
21 9 3
39 9 1
40 8 3
51 7 2
12 5 1
25 5 2
30 5 3
23 4 4
18 4 0
70 4 0
5 3 1
26 3 2
30 3 0
3 2 1
5 2 2
5 2 2
5 2 3
2 2 1
3 2 2
3 2 1
3 2 1
16 2 2
10 2 4
20 2 3
33 2 4
24 2 3
24 2 3
23 2 3
24 2 4
25 2 0
23 2 0
25 2 0
28 2 0
32 2 0
31 2 0
21 2 0
14 2 0
12 2 3
20 2 0
43 2 0
19 2 0
19 2 0
6 1 2
10 1 1
2 1 2