aws-solutions / aws-media-insights-engine
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 55 files with 12,153 lines of code.
    • 3 very long files (6,265 lines of code)
    • 2 long files (1,499 lines of code)
    • 2 medium size files (721 lines of codeclsfd_ftr_w_mp_ins)
    • 13 small files (1,537 lines of code)
    • 35 very small files (2,131 lines of code)
51% | 12% | 5% | 12% | 17%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
yaml100% | 0% | 0% | 0% | 0%
py21% | 20% | 9% | 20% | 28%
yml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/operators41% | 10% | 3% | 17% | 26%
deployment100% | 0% | 0% | 0% | 0%
source/workflowapi99% | 0% | 0% | 0% | <1%
source/dataplaneapi0% | 99% | 0% | 0% | <1%
source/workflow0% | 0% | 96% | 0% | 3%
source/lib0% | 0% | 0% | 59% | 40%
source/dataplanestream0% | 0% | 0% | 100% | 0%
source/anonymous-data-logger0% | 0% | 0% | 0% | 100%
source/workflowstream0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
operator-library.yaml
in source/operators
2873 -
media-insights-stack.yaml
in deployment
1806 -
app.py
in source/workflowapi
1586 71
app.py
in source/dataplaneapi
772 26
webcaptions.py
in source/operators/captions
727 30
app.py
in source/workflow
481 12
start_thumbnail.py
in source/operators/thumbnail
240 1
__init__.py
in source/lib/MediaInsightsEngineLambdaHelper/MediaInsightsEngineLambdaHelper
175 18
start_transcribe.py
in source/operators/transcribe
156 1
stream.py
in source/dataplanestream
132 6
start_translate.py
in source/operators/translate
132 1
start_media_convert.py
in source/operators/mediaconvert
111 1
start_face_search.py
in source/operators/rekognition
109 3
start_entity_detection.py
in source/operators/comprehend/entities
106 1
start_key_phrases.py
in source/operators/comprehend/key_phrases
106 1
start_face_detection.py
in source/operators/rekognition
103 3
start_content_moderation.py
in source/operators/rekognition
103 3
start_shot_detection.py
in source/operators/rekognition
102 3
start_label_detection.py
in source/operators/rekognition
101 3
start_celebrity_recognition.py
in source/operators/rekognition
101 3
start_text_detection.py
in source/operators/rekognition
100 3
get_entity_detection.py
in source/operators/comprehend/entities
98 2
get_key_phrases.py
in source/operators/comprehend/key_phrases
98 2
get_transcribe.py
in source/operators/transcribe
92 1
check_face_detection_status.py
in source/operators/rekognition
92 1
check_technical_cue_status.py
in source/operators/rekognition
91 1
check_shot_detection_status.py
in source/operators/rekognition
91 1
check_person_tracking_status.py
in source/operators/rekognition
91 1
check_face_search_status.py
in source/operators/rekognition
91 1
check_celebrity_recognition_status.py
in source/operators/rekognition
91 1
check_text_detection_status.py
in source/operators/rekognition
91 1
check_label_detection_status.py
in source/operators/rekognition
91 1
check_content_moderation_status.py
in source/operators/rekognition
91 1
mediainfo.py
in source/operators/mediainfo
89 2
start_polly.py
in source/operators/polly
83 1
generic_data_lookup.py
in source/operators/rekognition
81 1
check_thumbnail.py
in source/operators/thumbnail
74 1
__init__.py
in source/lib/MediaInsightsEngineAPIHelper/MediaInsightsEngineAPIHelper
71 9
start_person_tracking.py
in source/operators/rekognition
71 2
start_technical_cue_detection.py
in source/operators/rekognition
65 2
get_media_convert.py
in source/operators/mediaconvert
65 1
get_polly.py
in source/operators/polly
62 1
workflowstream.py
in source/workflowstream
50 2
anonymous-data-logger.py
in source/anonymous-data-logger
37 1
buildspec.yml
in root
33 -
operator_failed.py
in source/operators/operator_failed
32 1
cfnresponse.py
in source/anonymous-data-logger/lib
25 1
setup.py
in source/lib/MediaInsightsEngineAPIHelper
24 -
setup.py
in source/lib/MediaInsightsEngineLambdaHelper
23 -
metrics.py
in source/anonymous-data-logger/lib
17 1
Files With Most Units (Top 20)
File# lines# units
app.py
in source/workflowapi
1586 71
webcaptions.py
in source/operators/captions
727 30
app.py
in source/dataplaneapi
772 26
__init__.py
in source/lib/MediaInsightsEngineLambdaHelper/MediaInsightsEngineLambdaHelper
175 18
app.py
in source/workflow
481 12
__init__.py
in source/lib/MediaInsightsEngineAPIHelper/MediaInsightsEngineAPIHelper
71 9
stream.py
in source/dataplanestream
132 6
start_face_detection.py
in source/operators/rekognition
103 3
start_label_detection.py
in source/operators/rekognition
101 3
start_face_search.py
in source/operators/rekognition
109 3
start_celebrity_recognition.py
in source/operators/rekognition
101 3
start_shot_detection.py
in source/operators/rekognition
102 3
start_content_moderation.py
in source/operators/rekognition
103 3
start_text_detection.py
in source/operators/rekognition
100 3
workflowstream.py
in source/workflowstream
50 2
start_technical_cue_detection.py
in source/operators/rekognition
65 2
start_person_tracking.py
in source/operators/rekognition
71 2
mediainfo.py
in source/operators/mediainfo
89 2
get_entity_detection.py
in source/operators/comprehend/entities
98 2
get_key_phrases.py
in source/operators/comprehend/key_phrases
98 2
Files With Long Lines (Top 20)

There are 32 files with lines longer than 120 characters. In total, there are 331 long lines.

File# lines# units# long lines
operator-library.yaml
in source/operators
2873 - 80
webcaptions.py
in source/operators/captions
727 30 39
media-insights-stack.yaml
in deployment
1806 - 32
app.py
in source/workflowapi
1586 71 30
app.py
in source/workflow
481 12 14
app.py
in source/dataplaneapi
772 26 13
check_technical_cue_status.py
in source/operators/rekognition
91 1 9
check_shot_detection_status.py
in source/operators/rekognition
91 1 8
check_text_detection_status.py
in source/operators/rekognition
91 1 8
check_label_detection_status.py
in source/operators/rekognition
91 1 8
check_person_tracking_status.py
in source/operators/rekognition
91 1 7
check_face_search_status.py
in source/operators/rekognition
91 1 7
check_celebrity_recognition_status.py
in source/operators/rekognition
91 1 7
check_content_moderation_status.py
in source/operators/rekognition
91 1 7
check_face_detection_status.py
in source/operators/rekognition
92 1 7
__init__.py
in source/lib/MediaInsightsEngineAPIHelper/MediaInsightsEngineAPIHelper
71 9 6
check_thumbnail.py
in source/operators/thumbnail
74 1 6
mediainfo.py
in source/operators/mediainfo
89 2 5
start_translate.py
in source/operators/translate
132 1 5
get_entity_detection.py
in source/operators/comprehend/entities
98 2 5