awslabs / python-deequ
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 253 units with 1,175 lines of code in units (72.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (75 lines of code)
    • 9 small units (119 lines of code)
    • 241 very small units (981 lines of code)
0% | 0% | 6% | 10% | 83%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 6% | 10% | 83%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
pydeequ0% | 0% | 6% | 10% | 83%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in pydeequ/profiles.py
32 3 4
def __init__()
in pydeequ/profiles.py
22 4 4
def set_deequ_maven_config()
in pydeequ/configs.py
21 5 0
def __s2p_filter()
in pydeequ/suggestions.py
20 12 1
def _get_java_object()
in pydeequ/checks.py
14 7 2
def __init__()
in pydeequ/checks.py
14 5 5
def _create_java_object()
in pydeequ/analyzers.py
14 6 2
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 run()
in pydeequ/profiles.py
11 1 0
def __init__()
in pydeequ/profiles.py
11 2 2
def addConstraintRule()
in pydeequ/suggestions.py
11 3 2
def hasDataType()
in pydeequ/checks.py
10 2 5
def __key()
in pydeequ/repository.py
10 3 4
def successMetricsAsJson()
in pydeequ/verification.py
10 2 4
def __init__()
in pydeequ/verification.py
10 3 3
def addAnomalyCheck()
in pydeequ/verification.py
10 2 4
def __init__()
in pydeequ/metrics.py
10 4 3
def __init__()
in pydeequ/profiles.py
10 1 4
def __init__()
in pydeequ/scala_utils.py
10 5 2