facebookresearch / ContactPose
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 86 units with 1,429 lines of code in units (78.5% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (184 lines of code)
    • 5 medium complex units (291 lines of code)
    • 13 simple units (411 lines of code)
    • 66 very simple units (543 lines of code)
0% | 12% | 20% | 28% | 37%
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% | 12% | 20% | 28% | 37%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
scripts0% | 24% | 45% | 4% | 24%
utilities0% | 12% | 5% | 27% | 54%
scripts/maintenance0% | 0% | 31% | 54% | 14%
ROOT0% | 0% | 100% | 0% | 0%
scripts/data_analysis0% | 0% | 0% | 79% | 20%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __init__()
in utilities/dataset.py
90 36 6
def download_images()
in scripts/download_data.py
94 33 7
def show_contactmap()
in scripts/show_contactmap.py
76 18 9
def preprocess()
in scripts/preprocess_images.py
98 15 10
def download_url_once()
in utilities/networking.py
41 13 3
def startup()
in startup.py
25 11 3
def produce_worker()
in scripts/maintenance/produce_videos.py
51 11 2
def discover_active_areas()
in scripts/data_analysis/active_areas.py
69 10 6
def parse_multiargs()
in utilities/misc.py
24 9 1
def remove()
in scripts/maintenance/remove_videos.py
23 9 1
def draw_hands()
in utilities/misc.py
22 8 5
def fit_joints()
in utilities/mano_fitting.py
36 8 4
def upload_dropbox()
in utilities/networking.py
44 8 3
def calc_hand_contact_prob()
in scripts/data_analysis/hand_contact_prob.py
30 8 6
def produce()
in scripts/maintenance/produce_videos.py
39 8 5
def quaternion_slerp()
in utilities/misc.py
22 7 5
def crop_image()
in utilities/misc.py
23 7 4
def __init__()
in utilities/rendering.py
35 6 5
def download_grasps()
in scripts/download_data.py
17 6 1
def move()
in scripts/maintenance/move_videos_dropbox.py
27 6 3