facebookresearch / VideoPose3D
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 82 units with 1,150 lines of code in units (42.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (296 lines of code)
    • 14 simple units (399 lines of code)
    • 63 very simple units (455 lines of code)
0% | 0% | 25% | 34% | 39%
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% | 25% | 34% | 39%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
common0% | 0% | 25% | 33% | 40%
ROOT0% | 0% | 69% | 30% | 0%
data0% | 0% | 0% | 56% | 43%
inference0% | 0% | 0% | 30% | 69%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def fetch()
in run.py
46 22 4
def next_epoch()
in common/generators.py
54 20 1
def render_animation()
in common/visualization.py
111 18 14
def remove_joints()
in common/skeleton.py
30 13 2
55 12 4
def wrap()
in common/utils.py
22 10 3
def __init__()
in common/humaneva_dataset.py
25 10 2
def __init__()
in common/h36m_dataset.py
30 9 3
def __init__()
in common/generators.py
39 8 16
def decode()
in data/prepare_data_2d_custom.py
37 8 1
18 7 1
def next_epoch()
in common/generators.py
20 7 1
def main()
in inference/infer_video_d2.py
49 7 1
27 6 2
def _compute_metadata()
in common/skeleton.py
11 6 1
def parse_args()
in common/arguments.py
67 6 0
def read_video()
in common/visualization.py
19 6 3
def __init__()
in common/model.py
21 6 9
def process_subject()
in data/prepare_data_2d_h36m_sh.py
14 6 3
def __init__()
in common/generators.py
14 5 11