anthropics / life-sciences
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 179 units with 3,989 lines of code in units (56.9% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (185 lines of code)
    • 27 medium complex units (1,313 lines of code)
    • 41 simple units (1,149 lines of code)
    • 109 very simple units (1,342 lines of code)
0% | 4% | 32% | 28% | 33%
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% | 4% | 32% | 28% | 33%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
nextflow-development0% | 9% | 41% | 25% | 23%
instrument-data-to-allotrope0% | 0% | 36% | 32% | 31%
scvi-tools0% | 0% | 22% | 28% | 48%
clinical-trial-protocol-skill0% | 0% | 0% | 86% | 13%
single-cell-rna-qc0% | 0% | 0% | 13% | 86%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
117 45 1
68 30 2
81 23 1
133 21 0
48 19 1
93 19 0
44 19 2
40 18 4
27 18 3
29 18 2
66 17 2
14 16 3
66 15 0
35 15 1
49 15 2
64 14 1
40 13 1
31 13 1
27 12 3
32 12 2
31 12 2
24 12 1
52 11 3
20 11 3
58 11 0
41 11 1
90 11 2
55 11 0
23 11 1
102 10 0
25 10 1
24 10 2
20 10 2
59 10 0
35 9 1
20 9 1
19 9 1
56 9 0
29 9 1
34 8 3
25 8 1
28 8 3
17 8 1
11 8 2
25 8 0
14 8 1
21 8 0
15 7 2
16 7 2
38 7 2