flashlight / wav2letter
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 352 units with 9,970 lines of code in units (49.1% of code).
    • 4 very complex units (3,929 lines of code)
    • 3 complex units (895 lines of code)
    • 17 medium complex units (948 lines of code)
    • 29 simple units (1,044 lines of code)
    • 299 very simple units (3,154 lines of code)
39% | 8% | 9% | 10% | 31%
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
cpp52% | 11% | 7% | 5% | 22%
py0% | 0% | 18% | 27% | 54%
pl0% | 0% | 0% | 53% | 46%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
recipes/joint_training_vox_populi71% | 11% | 0% | 2% | 14%
recipes/slimIPL87% | 0% | 0% | 3% | 8%
recipes/local_prior_match0% | 35% | 23% | 11% | 28%
recipes/streaming_convnets0% | 15% | 3% | 8% | 72%
recipes/sota0% | 0% | 36% | 22% | 41%
recipes/self_training0% | 0% | 28% | 7% | 63%
recipes/utilities0% | 0% | 41% | 29% | 29%
data/ami0% | 0% | 35% | 17% | 47%
recipes/data0% | 0% | 30% | 47% | 21%
recipes/lexicon_free0% | 0% | 0% | 27% | 72%
data/wsj0% | 0% | 0% | 81% | 18%
data/timit0% | 0% | 0% | 93% | 6%
recipes/mling_pl0% | 0% | 0% | 0% | 100%
data/librispeech0% | 0% | 0% | 0% | 100%
data/utils0% | 0% | 0% | 0% | 100%
recipes/conv_glu0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
1694 241 2
1086 153 2
466 133 3
683 93 2
343 44 2
213 38 2
339 36 2
46 19 1
136 19 3
42 18 1
75 18 7
40 15 1
48 15 1
56 15 1
54 14 0
34 13 2
71 13 6
84 13 5
53 13 2
42 13 0
26 13 2
33 12 4
77 11 2
31 11 4
34 10 3
59 10 1
25 10 1
67 9 2
18 9 4
38 9 2
65 9 1
42 9 0
31 8 1
20 8 3
34 8 0
18 8 1
51 8 2
34 7 8
25 7 2
30 7 1
23 7 1
25 7 6
13 6 1
49 6 1
16 6 2
37 6 4
20 6 0
76 6 7
54 6 2
49 6 1