pytorch / builder
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 288 units with 2,109 lines of code in units (53.7% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (83 lines of code)
    • 6 medium complex units (223 lines of code)
    • 24 simple units (470 lines of code)
    • 257 very simple units (1,333 lines of code)
0% | 3% | 10% | 22% | 63%
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% | 4% | 12% | 26% | 56%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
analytics0% | 7% | 19% | 31% | 41%
s3_management0% | 0% | 0% | 34% | 65%
ROOT0% | 0% | 0% | 6% | 93%
manywheel/build_scripts0% | 0% | 0% | 64% | 35%
java0% | 0% | 0% | 0% | 100%
packaging/windows0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
83 26 2
58 22 3
31 12 0
38 12 0
40 11 3
30 11 3
26 11 2
28 10 4
14 10 3
25 9 5
20 9 4
16 9 2
23 9 1
18 9 4
23 8 0
17 8 4
14 8 1
18 7 2
18 7 1
9 7 1
34 7 1
15 7 2
13 7 2
16 7 3
12 7 1
15 7 2
41 6 1
14 6 2
24 6 1
30 6 3
13 6 1
7 5 2
47 5 7
10 5 0
15 5 2
10 5 1
6 5 2
14 5 4
13 5 4
14 5 2
10 4 4
33 4 5
7 4 1
13 4 3
17 4 3
6 4 4
7 4 5
4 4 3
6 4 1
6 4 1