aws-samples / amazon-sagemaker-kernel-builder
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 52 units with 469 lines of code in units (26.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 4 medium size units (97 lines of code)
    • 12 small units (188 lines of code)
    • 36 very small units (184 lines of code)
0% | 0% | 20% | 40% | 39%
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% | 20% | 40% | 39%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/workflow0% | 0% | 20% | 40% | 39%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def _create_sagemaker_image()
in src/workflow/publish.py
25 9 5
def _create_sagemaker_image()
in src/workflow/lambda.py
25 9 5
def send()
in src/workflow/cfnresponse.py
25 4 7
def _create_kernel_image()
in src/workflow/build.py
22 10 4
def _create_kernel_image()
in src/workflow/lambda.py
19 10 3
def run()
in src/workflow/lambda.py
19 1 1
def _create_sagemaker_image_version()
in src/workflow/publish.py
18 6 5
def _update_studio_domain()
in src/workflow/publish.py
18 7 4
def _create_sagemaker_image_version()
in src/workflow/lambda.py
18 6 5
def _update_studio_domain()
in src/workflow/lambda.py
18 7 4
def _create_app_config()
in src/workflow/publish.py
15 3 2
def run()
in src/workflow/publish.py
15 1 1
def _create_app_config()
in src/workflow/lambda.py
15 3 2
def lambda_handler()
in src/workflow/build.py
11 2 2
def lambda_handler()
in src/workflow/publish.py
11 2 2
def lambda_handler()
in src/workflow/lambda.py
11 2 2
def _publish_image_to_studio()
in src/workflow/publish.py
10 1 7
def _publish_image_to_studio()
in src/workflow/lambda.py
10 1 7
def _env_overrides_input()
in src/workflow/build.py
9 2 2
def _handle_wait()
in src/workflow/build.py
9 3 3