aws-samples / digital-user-engagement-reference-architectures
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 35 files with 8,605 lines of code.
    • 1 very long files (1,061 lines of code)
    • 4 long files (2,852 lines of code)
    • 10 medium size files (2,979 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (1,082 lines of code)
    • 13 very small files (631 lines of code)
12% | 33% | 34% | 12% | 7%
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
yaml14% | 38% | 34% | 10% | 2%
js0% | 0% | 27% | 22% | 49%
yml0% | 0% | 63% | 31% | 4%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cloudformation14% | 38% | 33% | 11% | 2%
lambda/Message_Archiver/archiver/lib0% | 0% | 59% | 0% | 40%
integrations/amplitude-sam0% | 0% | 93% | 0% | 6%
integrations/amplitude-sam/src/handlers/s3-trigger-processor0% | 0% | 0% | 100% | 0%
lambda/Message_Archiver/queuer/lib0% | 0% | 0% | 0% | 100%
integrations/amplitude-sam/src/handlers/sqs-queue-processor0% | 0% | 0% | 0% | 100%
lambda/Message_Archiver/archiver0% | 0% | 0% | 0% | 100%
lambda/Message_Archiver/queuer0% | 0% | 0% | 0% | 100%
Longest Files (Top 35)
File# lines# units
S3_triggered_import.yaml
in cloudformation
1061 -
S3_Data_Lake.yaml
in cloudformation
960 -
Federated_Segmentation.yaml
in cloudformation
770 -
Amazon_S3_triggered_import.yaml
in cloudformation
573 -
Phone_number_validate.yaml
in cloudformation
549 -
Advanced_Segmentation_S3.yaml
in cloudformation
429 -
SMS_S3_drop.yaml
in cloudformation
372 -
Event_dashboard.yaml
in cloudformation
337 -
Create_campaign.yaml
in cloudformation
318 -
AppFlow_Salesforce.yaml
in cloudformation
296 -
Pinpoint_Event_Processing.yaml
in cloudformation
282 -
SES_Event_Processing.yaml
in cloudformation
254 -
pinpoint.js
in lambda/Message_Archiver/archiver/lib
244 16
template.yml
in integrations/amplitude-sam
226 -
Combining_import_validate_campaign.yaml
in cloudformation
221 -
index.js
in integrations/amplitude-sam/src/handlers/s3-trigger-processor
196 7
Simple_CMS.yaml
in cloudformation
191 -
Event_Based_Segmentation.yaml
in cloudformation
167 -
SES_Auto_Reply.yaml
in cloudformation
157 -
Self-managed_Opt_Outs.yaml
in cloudformation
142 -
Connect_as_a_Channel.yaml
in cloudformation
117 -
ses_bounce_logging_blog.yml
in cloudformation
112 -
External_Templates.yaml
in cloudformation
92 -
External_Attributes.yaml
in cloudformation
88 -
index.js
in integrations/amplitude-sam/src/handlers/sqs-queue-processor
79 2
archiver.js
in lambda/Message_Archiver/archiver/lib
69 4
index.js
in lambda/Message_Archiver/archiver/lib
53 -
processor.js
in lambda/Message_Archiver/queuer/lib
52 5
renderer.js
in lambda/Message_Archiver/archiver/lib
45 3
app.js
in lambda/Message_Archiver/archiver
38 1
app.js
in lambda/Message_Archiver/queuer
34 1
queuer.js
in lambda/Message_Archiver/queuer/lib
24 2
index.js
in lambda/Message_Archiver/queuer/lib
23 -
buildspec.yml
in integrations/amplitude-sam
17 -
s3Path.js
in lambda/Message_Archiver/queuer/lib
17 2
Files With Most Units (Top 10)
File# lines# units
pinpoint.js
in lambda/Message_Archiver/archiver/lib
244 16
index.js
in integrations/amplitude-sam/src/handlers/s3-trigger-processor
196 7
processor.js
in lambda/Message_Archiver/queuer/lib
52 5
archiver.js
in lambda/Message_Archiver/archiver/lib
69 4
renderer.js
in lambda/Message_Archiver/archiver/lib
45 3
index.js
in integrations/amplitude-sam/src/handlers/sqs-queue-processor
79 2
s3Path.js
in lambda/Message_Archiver/queuer/lib
17 2
queuer.js
in lambda/Message_Archiver/queuer/lib
24 2
app.js
in lambda/Message_Archiver/queuer
34 1
app.js
in lambda/Message_Archiver/archiver
38 1
Files With Long Lines (Top 18)

There are 18 files with lines longer than 120 characters. In total, there are 77 long lines.

File# lines# units# long lines
S3_Data_Lake.yaml
in cloudformation
960 - 14
S3_triggered_import.yaml
in cloudformation
1061 - 11
Event_dashboard.yaml
in cloudformation
337 - 7
SES_Auto_Reply.yaml
in cloudformation
157 - 6
Federated_Segmentation.yaml
in cloudformation
770 - 5
Advanced_Segmentation_S3.yaml
in cloudformation
429 - 5
Phone_number_validate.yaml
in cloudformation
549 - 5
pinpoint.js
in lambda/Message_Archiver/archiver/lib
244 16 5
Pinpoint_Event_Processing.yaml
in cloudformation
282 - 4
ses_bounce_logging_blog.yml
in cloudformation
112 - 3
SMS_S3_drop.yaml
in cloudformation
372 - 2
Create_campaign.yaml
in cloudformation
318 - 2
SES_Event_Processing.yaml
in cloudformation
254 - 2
Amazon_S3_triggered_import.yaml
in cloudformation
573 - 2
Connect_as_a_Channel.yaml
in cloudformation
117 - 1
template.yml
in integrations/amplitude-sam
226 - 1
processor.js
in lambda/Message_Archiver/queuer/lib
52 5 1
renderer.js
in lambda/Message_Archiver/archiver/lib
45 3 1