aws-samples / rekognition-video-people-blurring-cdk
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 13 units with 312 lines of code in units (79.4% of code).
    • 0 very long units (0 lines of code)
    • 2 long units (143 lines of code)
    • 3 medium size units (98 lines of code)
    • 4 small units (52 lines of code)
    • 4 very small units (19 lines of code)
0% | 45% | 31% | 16% | 6%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 45% | 31% | 16% | 6%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
stack0% | 100% | 0% | 0% | 0%
stack/lambdas/rekopoc-start-face-detect0% | 73% | 0% | 0% | 26%
stack/lambdas/rekopoc-apply-faces-to-video-docker0% | 0% | 75% | 24% | 0%
stack/lambdas/rekopoc-get-timestamps-faces0% | 0% | 62% | 37% | 0%
stack/lambdas/rekopoc-check-status0% | 0% | 0% | 100% | 0%
Alternative Visuals
Longest Units
Top 13 longest units
Unit# linesMcCabe index# params
def __init__()
in stack/rekognition_video_face_blurring_cdk_stack.py
91 8 4
def lambda_handler()
in stack/lambdas/rekopoc-start-face-detect/lambda_function.py
52 7 2
def apply_faces_to_video()
in stack/lambdas/rekopoc-apply-faces-to-video-docker/video_processor.py
42 8 7
def lambda_function()
in stack/lambdas/rekopoc-apply-faces-to-video-docker/app.py
33 6 2
def get_timestamps_and_faces()
in stack/lambdas/rekopoc-get-timestamps-faces/lambda_function.py
23 3 2
def lambda_handler()
in stack/lambdas/rekopoc-check-status/lambda_function.py
14 1 2
def lambda_handler()
in stack/lambdas/rekopoc-get-timestamps-faces/lambda_function.py
14 1 2
def integrate_audio()
in stack/lambdas/rekopoc-apply-faces-to-video-docker/video_processor.py
13 1 3
def anonymize_face_pixelate()
in stack/lambdas/rekopoc-apply-faces-to-video-docker/video_processor.py
11 7 2
def start_face_detection()
in stack/lambdas/rekopoc-start-face-detect/rekognition.py
6 2 4
def add_failed()
in stack/lambdas/rekopoc-start-face-detect/lambda_function.py
6 1 4
def check_format_and_size()
in stack/lambdas/rekopoc-start-face-detect/rekognition.py
5 3 2
def boto3_client()
in stack/lambdas/rekopoc-start-face-detect/rekognition.py
2 1 0