aws-samples / nimblestudio-auto-workstation-scheduler
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 107 units with 981 lines of code in units (80.8% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (72 lines of code)
    • 7 medium size units (165 lines of code)
    • 28 small units (396 lines of code)
    • 71 very small units (348 lines of code)
0% | 7% | 16% | 40% | 35%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 7% | 16% | 40% | 35%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
nimble_studio_auto_workstation_scheduler0% | 71% | 0% | 16% | 11%
scripts0% | 0% | 20% | 45% | 33%
lambda/launcher0% | 0% | 35% | 16% | 47%
scripts/identity0% | 0% | 0% | 82% | 17%
scripts/utils0% | 0% | 0% | 28% | 72%
lambda/model0% | 0% | 0% | 35% | 64%
lambda0% | 0% | 0% | 0% | 100%
lambda/common0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def __init__()
in nimble_studio_auto_workstation_scheduler/nimble_studio_auto_workstation_scheduler_stack.py
72 4 4
def get_script_params()
in scripts/update_auto_launch_config.py
27 2 1
def validate_all_update_params_exist()
in scripts/update_auto_launch_config.py
26 9 1
def __init__()
in scripts/update_auto_launch_config.py
25 1 11
def launch_workstations()
in lambda/launcher/workstation_launcher.py
23 4 1
def validate_launch_profile()
in scripts/update_auto_launch_config.py
22 6 1
def get_config()
in scripts/get_auto_launch_config.py
21 8 1
def validate_sso_id()
in scripts/update_auto_launch_config.py
21 12 1
def __init__()
in scripts/get_auto_launch_config.py
20 3 6
def handle_existing_config_updates()
in scripts/update_auto_launch_config.py
20 7 1
def try_bundle()
in nimble_studio_auto_workstation_scheduler/local_bundler.py
17 1 3
def get_user_details()
in scripts/get_auto_launch_config.py
17 6 2
def list_identity_users()
in scripts/identity/identity_helper.py
17 3 4
def search_identity_stores_for_user_name()
in scripts/identity/identity_helper.py
17 9 3
def confirm_delete()
in scripts/delete_auto_launch_config.py
16 8 2
def generate_config_to_update()
in scripts/update_auto_launch_config.py
16 2 1
def perform_config_update()
in scripts/update_auto_launch_config.py
16 8 1
def main()
in scripts/update_auto_launch_config.py
16 1 1
def prompt_for_configuration_ids()
in scripts/delete_auto_launch_config.py
15 6 3
def execute_config_deletion()
in scripts/delete_auto_launch_config.py
14 5 1