aws-samples / amazon-sagemaker-integration-with-snowflake
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 23 units with 274 lines of code in units (23.0% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (83 lines of code)
    • 1 medium size units (24 lines of code)
    • 7 small units (98 lines of code)
    • 14 very small units (69 lines of code)
0% | 30% | 8% | 35% | 25%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 30% | 8% | 35% | 25%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
customer-stack0% | 30% | 8% | 35% | 25%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def lambda_handler()
in customer-stack/create-resources.py
83 7 2
def create_policy_string()
in customer-stack/create-resources.py
24 1 1
def get_storage_integration_info_for_policy()
in customer-stack/create-resources.py
17 4 2
def get_api_integration_info_for_policy()
in customer-stack/create-resources.py
17 4 2
def connect_to_snowflake()
in customer-stack/create-resources.py
14 1 2
def create_external_functions()
in customer-stack/create-resources.py
14 1 11
def get_secret_information()
in customer-stack/create-resources.py
13 3 2
def sendResponse()
in customer-stack/create-resources.py
12 2 4
def create_createmodel_ef()
in customer-stack/create-resources.py
11 2 11
def create_storage_integration()
in customer-stack/create-resources.py
10 1 4
def create_api_integration()
in customer-stack/create-resources.py
10 1 4
def update_assume_role_policy()
in customer-stack/create-resources.py
8 1 2
def add_quotes_to_comma_delimited_list_items()
in customer-stack/create-resources.py
7 3 1
def add_snowflake_resource_suffix()
in customer-stack/create-resources.py
5 3 1
def get_full_resource_name_with_suffix()
in customer-stack/create-resources.py
5 1 1
def create_describemodel_ef()
in customer-stack/create-resources.py
3 2 3
def create_createendpoint_ef()
in customer-stack/create-resources.py
3 2 3
def create_createendpointconfig_ef()
in customer-stack/create-resources.py
3 2 3
def create_describeendpointconfig_ef()
in customer-stack/create-resources.py
3 2 3
def create_deleteendpointconfig_ef()
in customer-stack/create-resources.py
3 2 3