facebookresearch / QuaterNet
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 92 units with 1,080 lines of code in units (73.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (232 lines of code)
    • 9 simple units (263 lines of code)
    • 80 very simple units (585 lines of code)
0% | 0% | 21% | 24% | 54%
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% | 21% | 24% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
common0% | 0% | 27% | 26% | 46%
long_term0% | 0% | 15% | 25% | 59%
short_term0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def train()
in common/pose_network.py
106 19 8
def train()
in long_term/pace_network.py
57 11 7
def render_animation()
in common/visualization.py
69 11 5
def interpolate()
in common/spline.py
30 9 3
def remove_joints()
in common/skeleton.py
23 9 3
def build_phase_track()
in long_term/locomotion_utils.py
36 8 1
def generate_motion()
in long_term/pose_network_long_term.py
55 7 3
def qeuler()
in common/quaternion.py
36 7 3
def euler_to_quaternion()
in common/quaternion.py
28 7 2
def forward()
in common/quaternet.py
30 7 5
def _compute_metadata()
in common/skeleton.py
11 6 1
def downsample()
in common/mocap_dataset.py
14 6 3
def _prepare_next_batch()
in long_term/pace_network.py
21 5 5
def _prepare_next_batch_impl()
in long_term/pose_network_long_term.py
28 5 5
def reparameterize()
in common/spline.py
18 5 3
def _get_indices()
in common/spline.py
11 5 2
def forward_kinematics()
in common/skeleton.py
19 5 3
def get_files()
in prepare_data_long_term.py
7 5 1
def _prepare_next_batch_impl()
in short_term/pose_network_short_term.py
18 4 5
def _angle_difference()
in common/spline.py
4 4 2