awslabs / aws-cloudfront-extensions
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 138 files with 10,556 lines of code.
    • 2 very long files (2,699 lines of code)
    • 0 long files (0 lines of code)
    • 6 medium size files (1,625 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (1,951 lines of code)
    • 114 very small files (4,281 lines of code)
25% | 0% | 15% | 18% | 40%
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
ts98% | 0% | 0% | 0% | 1%
py0% | 0% | 39% | 20% | 40%
css0% | 0% | 0% | 87% | 12%
yaml0% | 0% | 0% | 13% | 86%
js0% | 0% | 0% | 33% | 66%
toml0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates/aws-cloudfront-waf46% | 0% | 27% | 14% | 11%
templates/aws-cloudfront-monitoring41% | 0% | 25% | 8% | 25%
templates/workshop-demo0% | 0% | 0% | 92% | 7%
edge/python0% | 0% | 0% | 42% | 57%
edge/nodejs0% | 0% | 0% | 11% | 88%
function/js0% | 0% | 0% | 18% | 81%
scripts/python0% | 0% | 0% | 0% | 100%
website/static0% | 0% | 0% | 0% | 100%
util/update-auth-cognito-function0% | 0% | 0% | 0% | 100%
util/update-lambda-function0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
website/layouts0% | 0% | 0% | 0% | 100%
templates0% | 0% | 0% | 0% | 100%
edge0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
aws-cloudfront-waf-main.ts
in templates/aws-cloudfront-waf/lib
1665 1
aws-cloudfront-monitoring-stack.ts
in templates/aws-cloudfront-monitoring/source/templates/lib
1034 1
custom-resource.py
in templates/aws-cloudfront-waf/source/custom_resource
495 12
reputation-lists.py
in templates/aws-cloudfront-waf/source/reputation_lists_parser
297 7
metric_collector_download_speed_cdn.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_download_speed_cdn
212 5
metric_collector_download_speed_origin.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_download_speed_origin
210 5
metric_helper.py
in templates/aws-cloudfront-monitoring/source/lambda.d/shared_lib/python
209 6
access-handler.py
in templates/aws-cloudfront-waf/source/access_handler
202 2
waflibv2.py
in templates/aws-cloudfront-waf/source/lib
194 13
helper.py
in templates/aws-cloudfront-waf/source/helper
190 5
build_athena_queries.py
in templates/aws-cloudfront-waf/source/log_parser
130 4
app.js
in edge/nodejs/multiple-origin-IP-retry/multiple-origin-IP-retry
121 4
index.css
in templates/workshop-demo/site/smarttv
114 -
index.css
in templates/workshop-demo/site/mobile
114 -
index.css
in templates/workshop-demo/site/desktop
114 -
index.css
in templates/workshop-demo/site
114 -
index.css
in templates/workshop-demo/site/tablet
114 -
template.yaml
in edge/python/serverless-load-balancer
113 -
app.py
in edge/python/rt_log_transformer/rt_log_transformer
112 5
verify-jwt.yaml
in function/js/verify-jwt
106 -
metric_manager.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_manager
105 5
app.js
in edge/nodejs/custom-response-with-replaced-url/custom-response-with-replaced-url
105 2
metric_collector_chr_request.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_chr_request
104 2
template.yaml
in edge/python/prewarm
101 -
template.yaml
in edge/nodejs/serving-based-on-device
100 -
log-parser.py
in templates/aws-cloudfront-waf/source/log_parser
97 3
template.yaml
in edge/nodejs/custom-response-with-replaced-url
94 -
template.yaml
in edge/nodejs/resize-picture
91 -
template.yaml
in edge/nodejs/bot-detection
90 -
template.yaml
in edge/nodejs/authentication-with-cognito
89 -
theme-cloudfrontext.css
in website/static/css
84 -
template.yaml
in edge/nodejs/access-origin-by-weight-rate
84 -
template.yaml
in edge/nodejs/anti-hotlinking
84 -
template.yaml
in edge/nodejs/rewrite-url
83 -
template.yaml
in edge/nodejs/multiple-origin-IP-retry
78 -
template.yaml
in edge/nodejs/add-security-headers
77 -
add_athena_partitions.py
in templates/aws-cloudfront-waf/source/log_parser
76 3
template.yaml
in edge/nodejs/cross-origin-resource-sharing
76 -
custom-host.yaml
in function/js/custom-host
75 -
template.yaml
in edge/python/modify-host-origin-request-header
75 -
add_partition.py
in templates/aws-cloudfront-monitoring/source/lambda.d/add_partition
73 1
timer.py
in templates/aws-cloudfront-waf/source/timer
72 2
app.js
in edge/nodejs/authentication-with-cognito/authentication-with-cognito
72 -
metric_collector_status_code_origin.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_status_code_origin
71 1
helper.py
in templates/aws-cloudfront-monitoring/deployment
70 10
metric_collector_status_code_cdn.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_status_code_cdn
69 1
helper.py
in templates/aws-cloudfront-waf/deployment
68 10
index.py
in util/update-auth-cognito-function
67 2
app.js
in edge/nodejs/resize-picture/resize-picture
67 -
cross-origin-resource-sharing-with-cloudfront.yaml
in function/js/cross-origin-resource-sharing
65 -
Files With Most Units (Top 20)
File# lines# units
waflibv2.py
in templates/aws-cloudfront-waf/source/lib
194 13
custom-resource.py
in templates/aws-cloudfront-waf/source/custom_resource
495 12
helper.py
in templates/aws-cloudfront-waf/deployment
68 10
helper.py
in templates/aws-cloudfront-monitoring/deployment
70 10
reputation-lists.py
in templates/aws-cloudfront-waf/source/reputation_lists_parser
297 7
metric_helper.py
in templates/aws-cloudfront-monitoring/source/lambda.d/shared_lib/python
209 6
app.py
in edge/python/prewarm/prewarm
63 6
helper.py
in templates/aws-cloudfront-waf/source/helper
190 5
metric_manager.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_manager
105 5
metric_collector_download_speed_origin.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_download_speed_origin
210 5
metric_collector_download_speed_cdn.py
in templates/aws-cloudfront-monitoring/source/lambda.d/metric_collector_download_speed_cdn
212 5
app.py
in edge/python/rt_log_transformer/rt_log_transformer
112 5
build_athena_queries.py
in templates/aws-cloudfront-waf/source/log_parser
130 4
app.js
in edge/nodejs/multiple-origin-IP-retry/multiple-origin-IP-retry
121 4
partition_s3_logs.py
in templates/aws-cloudfront-waf/source/log_parser
58 3
add_athena_partitions.py
in templates/aws-cloudfront-waf/source/log_parser
76 3
log-parser.py
in templates/aws-cloudfront-waf/source/log_parser
97 3
check_issue.py
in scripts/python
55 3
check_pr.py
in scripts/python
55 3
app.js
in edge/nodejs/http302-from-origin/http302-from-origin
48 3
Files With Long Lines (Top 20)

There are 53 files with lines longer than 120 characters. In total, there are 130 long lines.

File# lines# units# long lines
aws-cloudfront-waf-main.ts
in templates/aws-cloudfront-waf/lib
1665 1 20
helper.py
in templates/aws-cloudfront-waf/source/helper
190 5 5
template.yaml
in edge/nodejs/anti-hotlinking
84 - 5
template.yaml
in edge/nodejs/multiple-origin-IP-retry
78 - 5
build_athena_queries.py
in templates/aws-cloudfront-waf/source/log_parser
130 4 4
aws-cloudfront-monitoring-stack.ts
in templates/aws-cloudfront-monitoring/source/templates/lib
1034 1 4
menu-footer.html
in website/layouts/partials
7 - 4
template.yaml
in function/js/add-security-headers
47 - 4
template.yaml
in edge/nodejs/custom-response-with-replaced-url
94 - 4
app.js
in edge/nodejs/custom-response-with-replaced-url/custom-response-with-replaced-url
105 2 4
custom-resource.py
in templates/aws-cloudfront-waf/source/custom_resource
495 12 3
reputation-lists.py
in templates/aws-cloudfront-waf/source/reputation_lists_parser
297 7 3
metric_helper.py
in templates/aws-cloudfront-monitoring/source/lambda.d/shared_lib/python
209 6 3
template.yaml
in edge/python/modify-host-origin-request-header
75 - 3
template.yaml
in edge/nodejs/cross-origin-resource-sharing
76 - 3
template.yaml
in edge/nodejs/add-security-headers
77 - 3
partition_s3_logs.py
in templates/aws-cloudfront-waf/source/log_parser
58 3 2
add_athena_partitions.py
in templates/aws-cloudfront-waf/source/log_parser
76 3 2
index.css
in templates/workshop-demo/site/smarttv
114 - 2
index.css
in templates/workshop-demo/site/mobile
114 - 2