openai / shap-e
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 567 units with 4,775 lines of code in units (47.9% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (120 lines of code)
    • 4 medium complex units (198 lines of code)
    • 23 simple units (595 lines of code)
    • 539 very simple units (3,862 lines of code)
0% | 2% | 4% | 12% | 80%
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
py0% | 2% | 4% | 12% | 80%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
shap_e0% | 2% | 4% | 12% | 80%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
120 32 4
57 18 4
70 17 3
35 16 2
36 11 3
14 9 3
25 9 0
10 9 2
200 8 0
19 8 2
24 8 3
15 8 2
13 8 3
18 7 1
17 7 0
39 7 2
15 7 2
9 7 4
31 7 3
16 6 3
13 6 2
11 6 2
18 6 1
13 6 1
17 6 3
24 6 3
17 6 2
17 6 4
26 5 2
28 5 3
6 5 2
13 5 3
13 5 3
12 5 3
15 5 1
7 5 1
9 5 3
23 5 1
13 5 3
28 5 3
18 5 6
21 4 3
18 4 5
17 4 3
28 4 5
11 4 5
12 4 3
7 4 3
10 4 4
16 4 3