facebookincubator / submitit
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 223 units with 1,408 lines of code in units (67.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 4 medium complex units (124 lines of code)
    • 16 simple units (294 lines of code)
    • 203 very simple units (990 lines of code)
0% | 0% | 8% | 20% | 70%
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% | 20% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
submitit/auto0% | 0% | 44% | 20% | 34%
submitit/core0% | 0% | 4% | 26% | 68%
submitit/slurm0% | 0% | 13% | 12% | 73%
submitit/local0% | 0% | 4% | 22% | 72%
submitit0% | 0% | 0% | 0% | 100%
integration0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
50 22 2
28 13 3
34 11 1
12 11 1
27 9 0
31 9 2
33 9 3
23 8 1
12 8 2
13 7 2
23 7 5
8 7 1
18 7 3
14 7 2
19 6 1
8 6 1
8 6 1
27 6 1
20 6 1
10 6 2
12 5 0
11 5 5
11 5 1
11 5 5
18 5 2
7 5 1
15 5 1
11 4 2
4 4 5
9 4 1
10 4 3
7 4 3
13 4 1
11 4 1
35 4 1
22 4 0
7 3 1
7 3 3
3 3 1
6 3 2
9 3 2
4 3 1
6 3 3
6 3 4
6 3 3
5 3 3
7 3 1
10 3 2
10 3 4
7 3 4