facebookresearch / denoiser
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 111 units with 1,412 lines of code in units (79.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 8 medium complex units (376 lines of code)
    • 11 simple units (307 lines of code)
    • 92 very simple units (729 lines of code)
0% | 0% | 26% | 21% | 51%
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% | 26% | 21% | 51%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
denoiser0% | 0% | 24% | 21% | 53%
ROOT0% | 0% | 69% | 21% | 8%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def train()
in denoiser/solver.py
51 16 1
def _separate_frame()
in denoiser/demucs.py
58 14 2
def __getitem__()
in denoiser/audio.py
33 13 2
def main()
in denoiser/live.py
71 12 0
def run()
in train.py
48 11 1
def _reset()
in denoiser/solver.py
27 11 1
def _run_one_epoch()
in denoiser/solver.py
35 11 3
def feed()
in denoiser/demucs.py
53 11 2
def enhance()
in denoiser/enhance.py
32 10 3
def __exit__()
in denoiser/executor.py
23 10 4
def forward()
in denoiser/demucs.py
35 9 2
13 8 2
def evaluate()
in denoiser/evaluate.py
36 8 3
def _main()
in train.py
15 7 1
def get_model()
in denoiser/pretrained.py
24 7 1
def __init__()
in denoiser/demucs.py
56 7 16
def __init__()
in denoiser/audio.py
21 7 9
def __init__()
in denoiser/solver.py
37 6 5
def find_audio_files()
in denoiser/audio.py
15 6 3
def _reverb()
in denoiser/augment.py
18 5 5