aws / aws-step-functions-data-science-sdk-python
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 270 units with 1,968 lines of code in units (76.2% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (133 lines of code)
    • 13 medium size units (382 lines of code)
    • 32 small units (446 lines of code)
    • 223 very small units (1,007 lines of code)
0% | 6% | 19% | 22% | 51%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 6% | 19% | 22% | 51%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/stepfunctions/template/pipeline0% | 53% | 21% | 10% | 14%
src/stepfunctions/workflow0% | 0% | 52% | 12% | 35%
src/stepfunctions/steps0% | 0% | 14% | 20% | 64%
src/stepfunctions/workflow/widgets0% | 0% | 14% | 44% | 40%
src/stepfunctions/inputs0% | 0% | 0% | 33% | 66%
src/stepfunctions/template0% | 0% | 0% | 75% | 25%
src/stepfunctions0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
doc0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def build_workflow_definition()
in src/stepfunctions/template/pipeline/inference.py
71 2 1
def execute()
in src/stepfunctions/template/pipeline/inference.py
62 5 3
def __init__()
in src/stepfunctions/steps/sagemaker.py
46 9 17
def __init__()
in src/stepfunctions/steps/sagemaker.py
43 22 12
def _get_step_detail()
in src/stepfunctions/workflow/widgets/events_table.py
39 1 2
def build_workflow_definition()
in src/stepfunctions/template/pipeline/train.py
30 1 1
def list_executions()
in src/stepfunctions/workflow/stepfunctions.py
30 6 4
def __init__()
in src/stepfunctions/steps/sagemaker.py
27 10 7
def __init__()
in src/stepfunctions/steps/sagemaker.py
26 10 13
def execute()
in src/stepfunctions/workflow/stepfunctions.py
26 8 3
def execute()
in src/stepfunctions/template/pipeline/train.py
24 6 3
def __init__()
in src/stepfunctions/workflow/stepfunctions.py
24 15 12
def update()
in src/stepfunctions/workflow/stepfunctions.py
24 7 3
def list_workflows()
in src/stepfunctions/workflow/stepfunctions.py
22 5 4
def list_events()
in src/stepfunctions/workflow/stepfunctions.py
21 4 4
def __init__()
in src/stepfunctions/steps/sagemaker.py
19 8 8
def _get_resource_url()
in src/stepfunctions/workflow/widgets/events_table.py
19 6 2
def __init__()
in src/stepfunctions/steps/sagemaker.py
18 3 10
def __init__()
in src/stepfunctions/workflow/widgets/events_table.py
18 3 2
def show()
in src/stepfunctions/workflow/widgets/graph.py
18 3 2