facebookresearch / pybulletX
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 156 units with 800 lines of code in units (53.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (35 lines of code)
    • 5 simple units (72 lines of code)
    • 150 very simple units (693 lines of code)
0% | 0% | 4% | 9% | 86%
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% | 4% | 9% | 86%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pybulletX0% | 0% | 5% | 4% | 90%
pybulletX/gui0% | 0% | 0% | 30% | 69%
pybulletX/utils0% | 0% | 0% | 23% | 76%
website/src/pages0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def router()
in pybulletX/robot_interface.py
35 12 1
def _override_gym_spaces_dict_constructor()
in pybulletX/utils/space_dict.py
22 10 0
def find_file()
in pybulletX/helper.py
9 8 1
def _setParameters()
in pybulletX/_wrapper.py
16 7 2
def __init__()
in pybulletX/gui/control_panel.py
16 7 2
def __init__()
in pybulletX/gui/control_panel.py
9 6 5
def _to_struct_of_array()
in pybulletX/_wrapper.py
8 4 1
def __getitem__()
in pybulletX/mapping_mixin.py
8 4 2
def __init__()
in pybulletX/client.py
8 4 3
def _remove_empty_dict_leaf()
in pybulletX/robot_interface.py
6 4 1
def flatten_nested_dict()
in pybulletX/helper.py
9 4 3
def to_nested_dict()
in pybulletX/helper.py
11 4 2
def dump()
in pybulletX/helper.py
9 4 2
def _get_free_joint_indices()
in pybulletX/robot.py
5 4 1
def _getJointInfos()
in pybulletX/_wrapper.py
13 3 3
def _getDynamicsInfos()
in pybulletX/_wrapper.py
13 3 3
def _snake_to_camel()
in pybulletX/body.py
4 3 1
def GetJointTypeName()
in pybulletX/joint_type.py
5 3 1
def keys()
in pybulletX/mapping_mixin.py
4 3 1
def __iter__()
in pybulletX/mapping_mixin.py
5 3 1