facebookresearch / frankmocap
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 386 units with 6,883 lines of code in units (89.4% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (160 lines of code)
    • 31 medium complex units (1,405 lines of code)
    • 63 simple units (1,934 lines of code)
    • 290 very simple units (3,384 lines of code)
0% | 2% | 20% | 28% | 49%
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% | 2% | 20% | 28% | 49%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
renderer0% | 3% | 24% | 34% | 37%
integration0% | 0% | 88% | 0% | 11%
mocap_utils0% | 0% | 9% | 17% | 73%
bodymocap/utils0% | 0% | 16% | 9% | 73%
handmocap0% | 0% | 14% | 26% | 58%
handmocap/hand_modules0% | 0% | 0% | 21% | 78%
bodymocap0% | 0% | 0% | 25% | 74%
bodymocap/models0% | 0% | 0% | 16% | 83%
renderer/shaders0% | 0% | 0% | 45% | 54%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def keyboard()
in renderer/glViewer.py
84 32 3
def DrawSkeletons()
in renderer/glViewer.py
76 29 0
def DrawMeshes()
in renderer/glViewer.py
76 23 0
def Vis_Skeleton_2D_SPIN24()
in renderer/viewer2D.py
53 23 5
def Vis_Skeleton_2D_SPIN49()
in renderer/viewer2D.py
68 23 5
def show_SMPL()
in renderer/glViewer.py
76 22 6
def Vis_Skeleton_2D_smplCOCO()
in renderer/viewer2D.py
84 20 7
def Vis_Densepose()
in renderer/viewer2D.py
55 19 2
def save_pred_to_pkl()
in mocap_utils/demo_utils.py
62 18 6
def renderscene()
in renderer/glViewer.py
78 17 0
def DrawPosOnly()
in renderer/glViewer.py
35 16 0
def setSkeleton()
in renderer/glViewer.py
9 16 4
def Vis_Skeleton_2D_coco()
in renderer/viewer2D.py
42 16 6
def integration_copy_paste()
in integration/copy_and_paste.py
143 16 4
def detect_hand_bbox()
in handmocap/hand_bbox_detector.py
49 16 2
def Vis_Skeleton_2D_MPII()
in renderer/viewer2D.py
40 14 5
def Vis_Skeleton_2D_foot()
in renderer/viewer2D.py
33 14 5
def SaveScenesToFile()
in renderer/glViewer.py
28 13 0
def DrawSkeletonsGT()
in renderer/glViewer.py
27 13 0
def setMeshData()
in renderer/glViewer.py
22 13 2