mapillary / seamseg
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 335 units with 4,314 lines of code in units (80.6% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 23 medium complex units (1,174 lines of code)
    • 39 simple units (1,067 lines of code)
    • 273 very simple units (2,073 lines of code)
0% | 0% | 27% | 24% | 48%
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% | 29% | 26% | 44%
cpp0% | 0% | 8% | 11% | 80%
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% | 60% | 27% | 12%
seamseg/algos0% | 0% | 18% | 11% | 69%
seamseg/utils0% | 0% | 16% | 28% | 54%
scripts/data_preparation0% | 0% | 41% | 37% | 21%
seamseg/modules0% | 0% | 15% | 31% | 53%
seamseg/models0% | 0% | 17% | 42% | 40%
src/bbx0% | 0% | 42% | 0% | 57%
seamseg/data0% | 0% | 0% | 15% | 84%
src/roi_sampling0% | 0% | 0% | 21% | 78%
scripts/utility0% | 0% | 0% | 90% | 9%
include0% | 0% | 0% | 0% | 100%
src/nms0% | 0% | 0% | 0% | 100%
include/utils0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
seamseg/config0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
98 23 4
34 20 3
15 17 2
92 17 1
91 17 1
104 17 1
51 16 8
45 15 5
32 14 3
61 14 4
32 14 3
60 14 4
32 14 3
45 12 7
35 12 7
45 12 3
58 12 1
48 11 5
47 11 8
14 11 1
59 11 1
54 11 6
22 11 2
18 10 3
41 10 5
25 10 1
42 10 2
20 9 3
23 9 6
20 9 2
48 9 6
47 9 6
13 8 9
29 8 3
50 8 8
17 8 2
14 8 1
66 8 3
75 8 3
30 8 7
24 7 1
11 7 4
17 7 3
27 7 4
15 7 6
12 7 1
22 7 5
62 7 3
4 7 0
19 7 1