facebookresearch / WavAugment
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 22 units with 131 lines of code in units (74.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (39 lines of code)
    • 0 simple units (0 lines of code)
    • 21 very simple units (92 lines of code)
0% | 0% | 29% | 0% | 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% | 29% | 0% | 70%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
augment0% | 0% | 29% | 0% | 70%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def apply()
in augment/effects.py
39 17 8
def instantiate()
in augment/effects.py
12 5 1
def _apply_sox_effects()
in augment/effects.py
12 3 4
def add_effect()
in augment/effects.py
3 2 3
def __init__()
in augment/effects.py
3 2 3
def __init__()
in augment/effects.py
4 2 3
def __call__()
in augment/effects.py
10 2 4
def __call__()
in augment/effects.py
5 2 4
def shutdown_sox()
in augment/effects.py
2 1 0
def __init__()
in augment/effects.py
2 1 1
def apply_flow_effects()
in augment/effects.py
2 1 4
def __init__()
in augment/effects.py
3 1 2
def _append_effect_to_chain()
in augment/effects.py
4 1 3
def clear()
in augment/effects.py
2 1 1
def __len__()
in augment/effects.py
2 1 1
def time_dropout()
in augment/effects.py
3 1 3
def additive_noise()
in augment/effects.py
4 1 3
def clip()
in augment/effects.py
3 1 3
def __init__()
in augment/effects.py
5 1 3
def __call__()
in augment/effects.py
6 1 4