anthropics / skills
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 402 units with 7,672 lines of code in units (10.8% of code).
    • 0 very complex units (0 lines of code)
    • 8 complex units (630 lines of code)
    • 72 medium complex units (3,422 lines of code)
    • 97 simple units (1,940 lines of code)
    • 225 very simple units (1,680 lines of code)
0% | 8% | 44% | 25% | 21%
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% | 8% | 44% | 25% | 21%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
skills0% | 8% | 44% | 25% | 21%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
56 30 1
76 29 2
77 27 1
89 27 1
77 27 1
89 27 1
77 27 1
89 27 1
80 25 1
80 25 1
80 25 1
80 23 1
79 21 1
72 21 1
79 21 1
72 21 1
50 21 2
79 21 1
72 21 1
52 18 1
42 17 2
52 16 1
52 16 1
38 16 1
52 16 1
63 15 1
44 15 1
63 15 1
44 15 1
63 15 1
44 15 1
25 14 2
55 14 1
40 14 1
40 14 1
25 14 2
55 14 1
40 14 1
40 14 1
18 14 3
69 14 0
25 14 2
55 14 1
40 14 1
40 14 1
61 13 3
28 13 1
43 13 1
61 13 3
28 13 1