awslabs / gluon-ts-tools
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 71 units with 520 lines of code in units (62.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 6 simple units (119 lines of code)
    • 65 very simple units (401 lines of code)
0% | 0% | 0% | 22% | 77%
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% | 0% | 22% | 77%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
runtool/runtool0% | 0% | 0% | 22% | 77%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def apply_eval()
in runtool/runtool/transformations.py
24 9 2
def apply_each()
in runtool/runtool/transformations.py
25 9 1
def apply_trial()
in runtool/runtool/transformations.py
15 8 2
def recursive_apply_dict()
in runtool/runtool/recurse_config.py
20 8 2
def __mul__()
in runtool/runtool/datatypes.py
16 7 3
def recursive_apply_list()
in runtool/runtool/recurse_config.py
19 6 2
def generate_versions()
in runtool/runtool/runtool.py
6 5 1
def generate_job_name()
in runtool/runtool/experiments_converter.py
22 4 2
def generate_sagemaker_overrides()
in runtool/runtool/experiments_converter.py
13 4 1
def __init__()
in runtool/runtool/datatypes.py
9 4 2
def as_dict()
in runtool/runtool/datatypes.py
9 4 1
def __mul__()
in runtool/runtool/datatypes.py
8 4 2
def update_nested_dict()
in runtool/runtool/utils.py
10 4 2
def apply_from()
in runtool/runtool/transformations.py
9 3 2
def apply_ref()
in runtool/runtool/transformations.py
6 3 2
def recurse_eval()
in runtool/runtool/transformations.py
20 3 3
def infer_type_dict()
in runtool/runtool/runtool.py
5 3 1
def __add__()
in runtool/runtool/datatypes.py
6 3 3
def __add__()
in runtool/runtool/datatypes.py
6 3 2
def as_dict()
in runtool/runtool/datatypes.py
8 3 1