awslabs / aws-glue-libs
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 366 units with 2,640 lines of code in units (87.0% of code).
    • 0 very long units (0 lines of code)
    • 4 long units (221 lines of code)
    • 25 medium size units (799 lines of code)
    • 35 small units (533 lines of code)
    • 302 very small units (1,087 lines of code)
0% | 8% | 30% | 20% | 41%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 8% | 30% | 20% | 41%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
awsglue/transforms0% | 11% | 52% | 6% | 29%
awsglue0% | 8% | 10% | 26% | 53%
awsglue/scripts0% | 0% | 29% | 36% | 33%
awsglue/dataframe_transforms0% | 0% | 54% | 28% | 16%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def describeArgs()
in awsglue/transforms/unbox.py
62 1 1
def getResolvedOptions()
in awsglue/utils.py
54 35 2
def forEachBatch()
in awsglue/context.py
53 4 4
def describeArgs()
in awsglue/transforms/resolve_choice.py
52 1 1
def _glue_job_response_to_job()
in awsglue/devutils.py
47 11 2
def describeArgs()
in awsglue/transforms/field_transforms.py
44 1 1
def describeArgs()
in awsglue/transforms/field_transforms.py
42 1 1
def describeArgs()
in awsglue/transforms/relationalize.py
42 1 1
def download_jars_per_connection()
in awsglue/scripts/activate_etl_connector.py
40 9 4
def describeArgs()
in awsglue/transforms/apply_mapping.py
37 1 1
def describeArgs()
in awsglue/transforms/field_transforms.py
37 1 1
def describeArgs()
in awsglue/transforms/dynamicframe_map.py
37 1 1
def mergeDataTypes()
in awsglue/gluetypes.py
34 17 2
def describeArgs()
in awsglue/transforms/dynamicframe_filter.py
32 1 1
def describeArgs()
in awsglue/transforms/coalesce.py
32 1 1
def describeArgs()
in awsglue/transforms/field_transforms.py
32 1 1
def describeArgs()
in awsglue/transforms/field_transforms.py
32 1 1
def describeArgs()
in awsglue/transforms/union.py
32 1 1
def crawler_undo_options()
in awsglue/scripts/crawler_undo.py
31 5 1
def apply_mapping()
in awsglue/dynamicframe.py
27 7 7