aws / amazon-finspace-examples
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 153 units with 1,476 lines of code in units (95.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 15 medium size units (417 lines of code)
    • 33 small units (501 lines of code)
    • 105 very small units (558 lines of code)
0% | 0% | 28% | 33% | 37%
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% | 28% | 33% | 37%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
webinars/snowflake_2021-090% | 0% | 28% | 33% | 37%
blogs/finspace_redshift-2021-090% | 0% | 28% | 33% | 37%
notebooks/Utilities0% | 0% | 28% | 33% | 37%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def read_view_as_pandas()
in webinars/snowflake_2021-09/finspace.py
34 10 3
def read_view_as_pandas()
in blogs/finspace_redshift-2021-09/finspace.py
34 10 3
def read_view_as_pandas()
in notebooks/Utilities/finspace.py
34 10 3
def get_schema_from_spark()
in webinars/snowflake_2021-09/finspace_spark.py
33 4 2
def get_schema_from_spark()
in blogs/finspace_redshift-2021-09/finspace_spark.py
33 4 2
def get_schema_from_spark()
in notebooks/Utilities/finspace_spark.py
33 4 2
def get_schema_from_pandas()
in webinars/snowflake_2021-09/finspace.py
25 3 1
def get_schema_from_pandas()
in blogs/finspace_redshift-2021-09/finspace.py
25 3 1
def get_schema_from_pandas()
in notebooks/Utilities/finspace.py
25 3 1
def __init__()
in webinars/snowflake_2021-09/finspace.py
24 6 3
def __init__()
in blogs/finspace_redshift-2021-09/finspace.py
24 6 3
def __init__()
in notebooks/Utilities/finspace.py
24 6 3
def get_best_schema_from_csv()
in webinars/snowflake_2021-09/finspace.py
23 4 6
def get_best_schema_from_csv()
in blogs/finspace_redshift-2021-09/finspace.py
23 4 6
def get_best_schema_from_csv()
in notebooks/Utilities/finspace.py
23 4 6
def ingest_from_s3()
in webinars/snowflake_2021-09/finspace.py
19 2 9
def wait_for_status()
in webinars/snowflake_2021-09/finspace.py
19 7 5
def read_view_as_spark()
in webinars/snowflake_2021-09/finspace_spark.py
19 6 3
def ingest_from_s3()
in blogs/finspace_redshift-2021-09/finspace.py
19 2 9
def wait_for_status()
in blogs/finspace_redshift-2021-09/finspace.py
19 7 5