facebookresearch / 2.5D-Visual-Sound
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 64 units with 515 lines of code in units (71.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (13 lines of code)
    • 63 very simple units (502 lines of code)
0% | 0% | 0% | 2% | 97%
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% | 0% | 2% | 97%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
models0% | 0% | 0% | 9% | 90%
ROOT0% | 0% | 0% | 0% | 100%
data0% | 0% | 0% | 0% | 100%
options0% | 0% | 0% | 0% | 100%
util0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def forward()
in models/criterion.py
13 6 4
def mkdirs()
in util/util.py
6 4 1
def load_wav()
in reEncodeAudio.py
13 4 2
def weights_init()
in models/networks.py
9 4 1
15 4 6
def create_conv()
in models/networks.py
7 3 7
8 3 2
def main()
in evaluate.py
31 3 0
def main()
in demo.py
73 3 0
def mkdir()
in util/util.py
3 2 1
def build_visual()
in models/models.py
8 2 2
def build_audio()
in models/models.py
7 2 5
def unet_upconv()
in models/networks.py
8 2 4
3 2 2
def CreateDataset()
in data/custom_dataset_data_loader.py
10 2 1
def __iter__()
in data/custom_dataset_data_loader.py
3 2 1
def process_image()
in data/audioVisual_dataset.py
14 2 2
def __getitem__()
in data/audioVisual_dataset.py
20 2 2
def initialize()
in options/train_options.py
27 1 1
def __init__()
in options/base_options.py
3 1 1