facebookresearch / DeepHandMesh
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 102 units with 1,202 lines of code in units (85.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 5 medium complex units (266 lines of code)
    • 16 simple units (263 lines of code)
    • 81 very simple units (673 lines of code)
0% | 0% | 22% | 21% | 55%
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% | 22% | 21% | 55%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
common/utils0% | 0% | 21% | 25% | 52%
common/nets0% | 0% | 22% | 15% | 62%
data0% | 0% | 52% | 16% | 31%
main0% | 0% | 24% | 27% | 47%
common/nets/DiffableRenderer0% | 0% | 0% | 77% | 22%
common0% | 0% | 0% | 8% | 91%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def get_keypoint_rgb()
in common/utils/vis.py
49 23 1
def forward()
in main/model.py
58 19 5
def forward()
in common/nets/loss.py
68 18 5
def __init__()
in data/dataset.py
62 15 3
def load_skeleton()
in common/utils/mesh.py
29 12 3
def decode()
in main/model.py
29 10 2
def load_joint_coord()
in data/dataset.py
19 10 4
def load_krt()
in common/utils/preprocessing.py
16 9 1
def vis_keypoints()
in common/utils/vis.py
17 8 8
def vis_3d_keypoints()
in common/utils/vis.py
18 8 7
def forward()
in common/nets/DiffableRenderer/DiffableRenderer.py
24 7 5
def forward()
in common/nets/loss.py
11 7 3
def make_conv_layers()
in common/nets/layer.py
15 7 5
def make_deconv_layers()
in common/nets/layer.py
16 7 2
def set_lr()
in common/base.py
13 7 2
def main()
in main/train.py
37 7 0
def load_skinning_weight()
in common/utils/mesh.py
14 6 2
def load_global_pose()
in common/utils/mesh.py
9 6 2
def load_local_pose()
in common/utils/mesh.py
9 6 2
def load_global_pose_inv()
in common/utils/mesh.py
9 6 2