openai / improved-diffusion
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 198 units with 1,825 lines of code in units (67.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (146 lines of code)
    • 13 simple units (313 lines of code)
    • 182 very simple units (1,366 lines of code)
0% | 0% | 8% | 17% | 74%
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% | 0% | 8% | 17% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
improved_diffusion0% | 0% | 5% | 15% | 78%
scripts0% | 0% | 18% | 28% | 53%
datasets0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
60 13 0
53 12 6
33 11 2
16 10 1
20 9 3
35 8 3
25 8 2
24 8 4
43 7 0
24 7 3
20 7 1
22 7 2
28 6 5
24 6 2
14 6 3
18 6 4
21 5 1
10 5 1
22 5 2
17 4 0
15 4 0
12 4 1
13 4 2
14 4 1
8 4 3
8 4 3
15 4 2
8 4 2
9 4 1
19 4 4
19 4 4
15 4 2
5 3 3
7 3 2
8 3 3
6 3 2
5 3 1
14 3 3
11 3 1
7 3 1
10 3 2
6 3 2
9 3 1
8 3 3
6 3 3
9 3 0
7 3 3
11 3 2
10 3 4
14 3 3