anthropics / blobfile
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 250 units with 2,808 lines of code in units (63.7% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (176 lines of code)
    • 10 medium complex units (498 lines of code)
    • 27 simple units (604 lines of code)
    • 211 very simple units (1,530 lines of code)
0% | 6% | 17% | 21% | 54%
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% | 6% | 17% | 21% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
blobfile0% | 6% | 18% | 21% | 53%
scripts0% | 0% | 0% | 74% | 25%
testing0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
114 35 2
62 28 3
73 24 4
65 21 0
121 19 3
36 19 4
34 16 1
57 14 2
26 14 2
16 13 1
42 13 2
28 11 2
24 10 3
19 9 2
23 9 2
16 8 3
32 8 3
42 8 3
30 8 4
32 8 4
18 8 2
45 7 2
36 7 2
31 7 3
32 7 4
8 7 3
14 7 1
11 6 2
17 6 3
12 6 2
26 6 2
20 6 0
13 6 2
12 6 3
16 6 2
17 6 2
11 6 2
6 6 1
41 6 0
14 5 1
16 5 2
12 5 1
7 5 1
21 5 0
24 5 2
6 5 2
22 5 3
13 5 3
27 5 4
9 5 2