aws-samples / s3-to-lambda-patterns
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 108 files with 4,693 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (233 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (760 lines of code)
    • 101 very small files (3,700 lines of code)
0% | 0% | 4% | 16% | 78%
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
yaml0% | 0% | 11% | 36% | 52%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
docrepository0% | 0% | 100% | 0% | 0%
translation/v20% | 0% | 0% | 39% | 60%
workflow0% | 0% | 0% | 100% | 0%
eventbridge/4-multi-multi0% | 0% | 0% | 93% | 6%
videos-samples/4-workflow0% | 0% | 0% | 60% | 39%
decoupled-docrepo/analyzers0% | 0% | 0% | 36% | 63%
decoupled-docrepo/setup0% | 0% | 0% | 100% | 0%
decoupled-docrepo/converters0% | 0% | 0% | 0% | 100%
videos-samples/1-translation0% | 0% | 0% | 0% | 100%
translation/v10% | 0% | 0% | 0% | 100%
videos-samples/3-dynamodb0% | 0% | 0% | 0% | 100%
videos-samples/2-transcribe0% | 0% | 0% | 0% | 100%
ddbImporter/v20% | 0% | 0% | 0% | 100%
resize-video/resizeFunction0% | 0% | 0% | 0% | 100%
decoupled-docrepo/loaders0% | 0% | 0% | 0% | 100%
ddbImporter/v10% | 0% | 0% | 0% | 100%
eventbridge/3-multi-bucket0% | 0% | 0% | 0% | 100%
decoupled-docrepo/parseS3event0% | 0% | 0% | 0% | 100%
docrepository/addToESindex0% | 0% | 0% | 0% | 100%
workflow/deciderFunction0% | 0% | 0% | 0% | 100%
transcription0% | 0% | 0% | 0% | 100%
eventbridge/1-integration0% | 0% | 0% | 0% | 100%
eventbridge/2-existing-bucket0% | 0% | 0% | 0% | 100%
docrepository/batchingFunction0% | 0% | 0% | 0% | 100%
docrepository/queryESindex0% | 0% | 0% | 0% | 100%
docrepository/addToQueueFunction0% | 0% | 0% | 0% | 100%
docrepository/processJPG0% | 0% | 0% | 0% | 100%
workflow/StartExecutionFunction0% | 0% | 0% | 0% | 100%
docrepository/processDOCX0% | 0% | 0% | 0% | 100%
resize-video0% | 0% | 0% | 0% | 100%
docrepository/processPDF0% | 0% | 0% | 0% | 100%
transcription/sentimentFunction0% | 0% | 0% | 0% | 100%
transcription/transcribeFunction0% | 0% | 0% | 0% | 100%
videos-samples/5-s3-uploader0% | 0% | 0% | 0% | 100%
ddbImporter/dataGenerator0% | 0% | 0% | 0% | 100%
workflow/resultFunction0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
template.yaml
in docrepository
233 -
template.yaml
in translation/v2
152 -
template.yaml
in workflow
137 -
template.yaml
in eventbridge/4-multi-multi
128 -
template.yaml
in videos-samples/4-workflow
127 -
template.yaml
in decoupled-docrepo/analyzers
108 -
template.yaml
in decoupled-docrepo/setup
108 -
template.yaml
in eventbridge/3-multi-bucket
98 -
template.yaml
in decoupled-docrepo/converters
94 -
template.yaml
in translation/v1
91 -
template.yaml
in transcription
89 -
template.yaml
in eventbridge/1-integration
86 -
template.yaml
in videos-samples/2-transcribe
85 -
template-v2.yaml
in videos-samples/1-translation
84 -
template.yaml
in eventbridge/2-existing-bucket
82 -
app.js
in translation/v2/addToQueueFunction
80 2
template.yaml
in ddbImporter/v2
75 -
app.js
in docrepository/batchingFunction
72 1
app.js
in translation/v1/batchingFunction
69 1
app.js
in translation/v2/batchingFunction
69 1
app.js
in videos-samples/3-dynamodb/importFunction
67 -
app.js
in ddbImporter/v1/importFunction
65 1
businessLogic.js
in workflow/deciderFunction
65 -
ffmpeg-promisify.js
in resize-video/resizeFunction
63 -
template.yaml
in decoupled-docrepo/parseS3event
62 -
app.js
in ddbImporter/v2/addToQueueFunction
60 1
eventbridge.js
in decoupled-docrepo/converters/processDOCX
55 -
eventbridge.js
in decoupled-docrepo/converters/processPDF
55 -
eventbridge.js
in decoupled-docrepo/analyzers/analyzeImage
55 -
eventbridge.js
in decoupled-docrepo/analyzers/analyzeText
55 -
app.js
in docrepository/queryESindex
55 -
app.js
in docrepository/addToQueueFunction
54 1
app.js
in translation/v2/translatorFunction
53 2
template.yaml
in resize-video
51 -
resize.js
in resize-video/resizeFunction
51 1
template.yaml
in videos-samples/3-dynamodb
51 -
template-v1.yaml
in videos-samples/1-translation
51 -
template.yaml
in ddbImporter/v1
50 -
app.js
in docrepository/addToESindex
48 1
app.js
in videos-samples/1-translation/translatorFunction
47 3
app.js
in docrepository/processJPG
46 1
app.js
in videos-samples/1-translation/batchingFunction
46 1
app.js
in translation/v1/translatorFunction
45 2
template.yaml
in decoupled-docrepo/loaders
44 -
app.js
in ddbImporter/v2/loaderFunction
43 1
app.js
in docrepository/processDOCX
41 1
app.js
in docrepository/processPDF
38 1
batching.js
in decoupled-docrepo/converters/processDOCX
37 -
batching.js
in decoupled-docrepo/converters/processPDF
37 -
app.js
in transcription/transcribeFunction
37 -
Files With Most Units (Top 20)
File# lines# units
app.js
in videos-samples/1-translation/translatorFunction
47 3
app.js
in translation/v1/translatorFunction
45 2
app.js
in translation/v2/translatorFunction
53 2
app.js
in translation/v2/addToQueueFunction
80 2
s3.js
in videos-samples/3-dynamodb/importFunction
31 2
s3.js
in videos-samples/1-translation/translatorFunction
31 2
s3.js
in videos-samples/1-translation/batchingFunction
31 2
s3.js
in videos-samples/2-transcribe/sentimentFunction
31 2
app.js
in resize-video/resizeFunction
14 1
resize.js
in resize-video/resizeFunction
51 1
app.js
in decoupled-docrepo/loaders/loadToES
25 1
app.js
in ddbImporter/v1/importFunction
65 1
app.js
in ddbImporter/v2/loaderFunction
43 1
app.js
in ddbImporter/v2/addToQueueFunction
60 1
app.js
in translation/v1/batchingFunction
69 1
array.js
in translation/v2/addToQueueFunction
6 1
app.js
in translation/v2/batchingFunction
69 1
app.js
in docrepository/processDOCX
41 1
app.js
in docrepository/addToQueueFunction
54 1
app.js
in docrepository/batchingFunction
72 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 7 long lines.

File# lines# units# long lines
app.js
in translation/v1/translatorFunction
45 2 2
app.js
in translation/v2/addToQueueFunction
80 2 2
app.js
in videos-samples/1-translation/translatorFunction
47 3 2
resize.js
in resize-video/resizeFunction
51 1 1