aws-solutions / video-on-demand-on-aws
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 33 files with 3,963 lines of code.
    • 1 very long files (1,731 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (555 lines of codeclsfd_ftr_w_mp_ins)
    • 3 small files (461 lines of code)
    • 27 very small files (1,216 lines of code)
43% | 0% | 14% | 11% | 30%
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%
js0% | 0% | 26% | 16% | 56%
py0% | 0% | 0% | 75% | 25%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
deployment100% | 0% | 0% | 0% | 0%
source/custom-resource0% | 0% | 55% | 14% | 29%
source/encode0% | 0% | 0% | 88% | 11%
source/mediainfo0% | 0% | 0% | 75% | 25%
source/output-validate0% | 0% | 0% | 0% | 100%
source/profiler0% | 0% | 0% | 0% | 100%
source/sns-notification0% | 0% | 0% | 0% | 100%
source/step-functions0% | 0% | 0% | 0% | 100%
source/input-validate0% | 0% | 0% | 0% | 100%
source/media-package-assets0% | 0% | 0% | 0% | 100%
source/error-handler0% | 0% | 0% | 0% | 100%
source/dynamo0% | 0% | 0% | 0% | 100%
source/archive-source0% | 0% | 0% | 0% | 100%
source/sqs-publish0% | 0% | 0% | 0% | 100%
Longest Files (Top 33)
File# lines# units
video-on-demand-on-aws.yaml
in deployment
1731 -
index.js
in source/custom-resource/lib/s3
333 -
index.js
in source/custom-resource/lib/mediaconvert
222 1
index.js
in source/encode
195 -
index.js
in source/custom-resource/lib/mediapackage
146 -
lambda_function.py
in source/mediainfo
120 9
test-events.js
in source/output-validate/lib
98 -
index.js
in source/custom-resource
97 -
cloudfront.js
in source/custom-resource/lib/mediapackage
87 -
index.js
in source/output-validate
85 -
index.js
in source/error-handler
67 -
index.js
in source/profiler
62 -
index.js
in source/sns-notification
58 -
index.js
in source/step-functions
57 -
index.js
in source/input-validate
56 1
test-assets.js
in source/custom-resource/lib/mediapackage
56 -
index.js
in source/media-package-assets
48 -
setup.py
in source/mediainfo
40 5
index.js
in source/dynamo
36 -
index.js
in source/custom-resource/lib/metrics
31 2
index.js
in source/archive-source
29 -
index.js
in source/custom-resource/lib/cfn
28 -
error.js
in source/media-package-assets/lib
26 -
error.js
in source/dynamo/lib
26 -
error.js
in source/archive-source/lib
26 -
error.js
in source/profiler/lib
26 -
error.js
in source/output-validate/lib
26 -
error.js
in source/encode/lib
26 -
error.js
in source/step-functions/lib
26 -
error.js
in source/sqs-publish/lib
26 -
error.js
in source/input-validate/lib
26 -
error.js
in source/sns-notification/lib
26 -
index.js
in source/sqs-publish
21 -
Files With Most Units (Top 5)
File# lines# units
lambda_function.py
in source/mediainfo
120 9
setup.py
in source/mediainfo
40 5
index.js
in source/custom-resource/lib/metrics
31 2
index.js
in source/input-validate
56 1
index.js
in source/custom-resource/lib/mediaconvert
222 1
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 30 long lines.

File# lines# units# long lines
video-on-demand-on-aws.yaml
in deployment
1731 - 26
index.js
in source/error-handler
67 - 3
index.js
in source/custom-resource/lib/mediapackage
146 - 1