facebookresearch / 3D-Vision-and-Touch
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 76 units with 1,044 lines of code in units (9.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (16 lines of code)
    • 4 simple units (89 lines of code)
    • 71 very simple units (939 lines of code)
0% | 0% | 1% | 8% | 89%
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% | 1% | 8% | 89%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 3% | 21% | 74%
vision_charts0% | 0% | 0% | 0% | 100%
touch_charts0% | 0% | 0% | 0% | 100%
third_party_code0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def collate()
in data_loaders.py
16 13 2
39 9 4
def collate()
in data_loaders.py
10 8 2
def get_touch_sheets()
in data_loaders.py
15 6 3
25 6 3
def adj_init()
in utils.py
9 5 3
def forward()
in vision_charts/models.py
22 4 4
def __init__()
in data_loaders.py
22 3 5
def get_training_instance()
in data_loaders.py
12 3 1
5 3 2
def __init__()
in data_loaders.py
30 3 5
def __init__()
in utils.py
11 3 2
def __init__()
in vision_charts/models.py
8 3 3
def __init__()
in touch_charts/models.py
20 2 3
def project_depth()
in touch_charts/models.py
11 2 5
def forward()
in touch_charts/models.py
36 2 6
def __call__()
in touch_charts/produce_sheets.py
53 2 1
def get_loaders()
in touch_charts/recon.py
10 2 1
def get_gt_points()
in data_loaders.py
9 2 3
def get_touch_info()
in data_loaders.py
9 2 4