aws-samples / aws-media-services-simple-vod-workflow
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 9 units with 374 lines of code in units (24.0% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (254 lines of code)
    • 3 medium size units (101 lines of code)
    • 0 small units (0 lines of code)
    • 3 very small units (19 lines of code)
0% | 67% | 27% | 0% | 5%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 67% | 27% | 0% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Workflow-WatchfolderAndNotification0% | 100% | 0% | 0% | 0%
7-MediaConvertJobLambda0% | 66% | 33% | 0% | 0%
13-VODMediaPackage0% | 100% | 0% | 0% | 0%
9-MediainfoLambda0% | 0% | 73% | 0% | 26%
8-MediaConvertEvents0% | 0% | 75% | 0% | 24%
Alternative Visuals
Longest Units
Top 9 longest units
Unit# linesMcCabe index# params
def handler()
in Workflow-WatchfolderAndNotification/convert.py
100 16 2
def lambda_handler()
in 7-MediaConvertJobLambda/input_clip_convert.py
91 4 2
def lambda_handler()
in 13-VODMediaPackage/ingest_asset.py
63 9 2
def handler()
in 7-MediaConvertJobLambda/convert.py
45 5 2
def lambda_handler()
in 9-MediainfoLambda/mediainfo.py
34 8 2
def lambda_handler()
in 8-MediaConvertEvents/simple_event_collector.py
22 4 2
def default()
in 9-MediainfoLambda/mediainfo.py
7 3 2
def default()
in 8-MediaConvertEvents/simple_event_collector.py
7 3 2
def get_signed_url()
in 9-MediainfoLambda/mediainfo.py
5 1 3