awslabs / python-deequ
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 253 units with 1,175 lines of code in units (72.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (20 lines of code)
    • 2 simple units (28 lines of code)
    • 250 very simple units (1,127 lines of code)
0% | 0% | 1% | 2% | 95%
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% | 1% | 2% | 95%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pydeequ0% | 0% | 1% | 2% | 95%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def __s2p_filter()
in pydeequ/suggestions.py
20 12 1
def _get_java_object()
in pydeequ/checks.py
14 7 2
def _create_java_object()
in pydeequ/analyzers.py
14 6 2
def set_deequ_maven_config()
in pydeequ/configs.py
21 5 0
def __init__()
in pydeequ/checks.py
14 5 5
def __init__()
in pydeequ/scala_utils.py
10 5 2
def java_list_to_python_list()
in pydeequ/scala_utils.py
5 5 2
def _create_from_java_object()
in pydeequ/checks.py
9 4 2
def __init__()
in pydeequ/metrics.py
10 4 3
def __init__()
in pydeequ/profiles.py
22 4 4
def _get_java_object()
in pydeequ/anomaly_detection.py
12 3 2
def _get_java_object()
in pydeequ/anomaly_detection.py
12 3 2
def _get_java_object()
in pydeequ/checks.py
6 3 2
def getSuccessMetricsAsDataFrame()
in pydeequ/repository.py
8 3 3
def __key()
in pydeequ/repository.py
10 3 4
def __init__()
in pydeequ/verification.py
10 3 3
def __init__()
in pydeequ/profiles.py
9 3 3
def __init__()
in pydeequ/profiles.py
32 3 4
def addConstraintRule()
in pydeequ/suggestions.py
11 3 2
def _deequAnomalies()
in pydeequ/anomaly_detection.py
6 2 1