mapillary / inplace_abn
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 120 units with 1,571 lines of code in units (46.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (336 lines of code)
    • 11 simple units (316 lines of code)
    • 104 very simple units (919 lines of code)
0% | 0% | 21% | 20% | 58%
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% | 28% | 14% | 56%
cpp0% | 0% | 0% | 49% | 50%
h0% | 0% | 0% | 0% | 100%
pyi0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 0% | 92% | 0% | 7%
scripts/models0% | 0% | 30% | 26% | 43%
scripts/imagenet0% | 0% | 20% | 8% | 70%
src0% | 0% | 0% | 49% | 50%
inplace_abn0% | 0% | 0% | 25% | 74%
scripts/modules0% | 0% | 0% | 9% | 90%
include0% | 0% | 0% | 0% | 100%
scripts/dataset0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
69 18 5
70 18 6
36 16 1
108 15 0
53 11 2
40 10 2
20 10 1
12 10 3
46 9 4
17 8 1
33 8 8
39 8 7
12 7 3
21 7 3
30 7 8
46 6 6
8 5 1
25 5 2
9 5 2
11 5 4
24 5 1
21 5 4
17 5 2
22 5 2
9 4 1
9 4 2
4 4 3
7 4 2
39 4 1
9 4 1
13 4 2
25 4 7
11 3 2
14 3 3
4 3 1
13 3 2
6 3 2
27 3 3
34 3 8
20 3 4
7 2 1
3 2 2
14 2 5
3 2 2
14 2 5
6 2 2
10 2 2
5 2 1
12 2 5
5 2 1