aws-samples / aws-fault-injection-simulator-workshop
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 98 files with 7,718 lines of code.
    • 1 very long files (1,114 lines of code)
    • 1 long files (522 lines of code)
    • 9 medium size files (2,493 lines of codeclsfd_ftr_w_mp_ins)
    • 10 small files (1,357 lines of code)
    • 77 very small files (2,232 lines of code)
14% | 6% | 32% | 17% | 28%
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
css32% | 15% | 37% | 8% | 6%
go0% | 0% | 82% | 0% | 17%
yaml0% | 0% | 18% | 58% | 22%
py0% | 0% | 61% | 0% | 38%
html0% | 0% | 0% | 18% | 81%
ts0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
php0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
workshop/themes/learn24% | 11% | 29% | 9% | 24%
resources/templates/goad-redux0% | 0% | 73% | 0% | 26%
resources/templates/goad-cdk0% | 0% | 80% | 0% | 19%
resources/templates/api-failures0% | 0% | 69% | 30% | 0%
resources/templates/spot0% | 0% | 90% | 0% | 9%
resources/templates/cpu-stress0% | 0% | 0% | 100% | 0%
resources/templates/access-controls0% | 0% | 0% | 100% | 0%
resources/templates/deploy-ee-codebuild0% | 0% | 0% | 100% | 0%
resources/code/cdk0% | 0% | 0% | 51% | 48%
workshop/content/030_basic_content0% | 0% | 0% | 30% | 69%
resources/templates/asg-cdk0% | 0% | 0% | 0% | 100%
resources/templates/vpc0% | 0% | 0% | 0% | 100%
resources/templates/rds0% | 0% | 0% | 0% | 100%
resources/templates/eks0% | 0% | 0% | 0% | 100%
resources/templates/ecs0% | 0% | 0% | 0% | 100%
workshop0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
workshop/layouts/_default0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
theme.css
in workshop/themes/learn/static/css
1114 -
nucleus.css
in workshop/themes/learn/static/css
522 -
loadgen.go
in resources/templates/goad-cdk/load-gen
345 4
loadgen.go
in resources/templates/goad-redux/go-lambda/load-gen
345 4
mermaid.forest.css
in workshop/themes/learn/static/mermaid
340 -
api-unavailable.yaml
in resources/templates/api-failures
291 -
mermaid.dark.css
in workshop/themes/learn/static/mermaid
262 -
mermaid.css
in workshop/themes/learn/static/mermaid
260 -
theme-aws.css
in workshop/themes/learn/static/css
237 -
hugo-theme.css
in workshop/themes/learn/static/css
212 -
send_metrics.py
in resources/templates/spot/assets
201 12
CPUStressInstances.yaml
in resources/templates/cpu-stress
187 -
template.yaml
in resources/templates/access-controls
157 -
template.yaml
in resources/templates/deploy-ee-codebuild
155 -
cfn_fis_demos.yaml
in resources/code/cdk/cicd/resources
153 -
menu.html
in workshop/themes/learn/layouts/partials
141 -
ssm-template-tarpitted.yaml
in workshop/content/030_basic_content/090_scenarios/010_simulating_az_issues/020_impact_ec2-asg
128 -
api-throttling.yaml
in resources/templates/api-failures
127 -
theme-green.css
in workshop/themes/learn/static/css
103 -
theme-blue.css
in workshop/themes/learn/static/css
103 -
theme-red.css
in workshop/themes/learn/static/css
103 -
ssm-template.yaml
in workshop/content/030_basic_content/090_scenarios/010_simulating_az_issues/020_impact_ec2-asg
98 -
header.html
in workshop/themes/learn/layouts/partials
94 -
ssm-terminate-instances-asg-az.yaml
in workshop/content/030_basic_content/040_ssm/050_direct_automation
88 -
children.html
in workshop/themes/learn/layouts/shortcodes
86 -
cicd-stack.ts
in resources/code/cdk/cicd/lib
81 1
main.go
in resources/templates/goad-cdk/load-gen
75 2
footer.html
in workshop/themes/learn/layouts/partials
73 -
hybrid.css
in workshop/themes/learn/static/css
72 -
fis-stack-rds-aurora.ts
in resources/templates/rds/lib
72 1
atom-one-dark-reasonable.css
in workshop/themes/learn/static/css
70 -
main.go
in resources/templates/goad-redux/go-lambda/load-gen
70 2
eks-stack.ts
in resources/templates/eks/lib
65 1
hybrid-target.yaml
in workshop/content/030_basic_content/090_scenarios/020_targeting_hybrid_instances
62 -
create_db.py
in resources/templates/asg-cdk/assets
59 3
ecs-stack.ts
in resources/templates/ecs/lib
52 1
template.yaml
in resources/templates/goad-redux/go-lambda
52 -
config.toml
in workshop
51 -
hybrid-target-noconverter.yaml
in workshop/content/030_basic_content/090_scenarios/020_targeting_hybrid_instances
46 -
404.html
in workshop/themes/learn/layouts
46 -
runExperiment.py
in resources/code/cdk/cicd/resources
46 2
tabs.html
in workshop/themes/learn/layouts/shortcodes
43 -
tags.css
in workshop/themes/learn/static/css
42 -
auto-complete.css
in workshop/themes/learn/static/css
40 -
fis-stack-vpc.ts
in resources/templates/vpc/lib
40 1
img.html
in workshop/themes/learn/layouts/shortcodes
37 -
attachments.html
in workshop/themes/learn/layouts/shortcodes
35 -
hugotest.html
in workshop/themes/learn/layouts/shortcodes
34 -
fis-stack-asg.ts
in resources/templates/vpc/lib
34 1
metadata.yml
in root
27 -
Files With Most Units (Top 14)
File# lines# units
send_metrics.py
in resources/templates/spot/assets
201 12
loadgen.go
in resources/templates/goad-cdk/load-gen
345 4
loadgen.go
in resources/templates/goad-redux/go-lambda/load-gen
345 4
create_db.py
in resources/templates/asg-cdk/assets
59 3
main.go
in resources/templates/goad-cdk/load-gen
75 2
main.go
in resources/templates/goad-redux/go-lambda/load-gen
70 2
runExperiment.py
in resources/code/cdk/cicd/resources
46 2
fis-stack-rds-aurora.ts
in resources/templates/rds/lib
72 1
lambda_waiter.py
in resources/templates/spot/assets
21 1
fis-stack-vpc.ts
in resources/templates/vpc/lib
40 1
fis-stack-asg.ts
in resources/templates/vpc/lib
34 1
ecs-stack.ts
in resources/templates/ecs/lib
52 1
eks-stack.ts
in resources/templates/eks/lib
65 1
cicd-stack.ts
in resources/code/cdk/cicd/lib
81 1
Files With Long Lines (Top 20)

There are 35 files with lines longer than 120 characters. In total, there are 95 long lines.

File# lines# units# long lines
footer.html
in workshop/themes/learn/layouts/partials
73 - 12
children.html
in workshop/themes/learn/layouts/shortcodes
86 - 12
theme.css
in workshop/themes/learn/static/css
1114 - 8
menu.html
in workshop/themes/learn/layouts/partials
141 - 8
theme-aws.css
in workshop/themes/learn/static/css
237 - 5
header.html
in workshop/themes/learn/layouts/partials
94 - 5
404.html
in workshop/themes/learn/layouts
46 - 5
hybrid-target.yaml
in workshop/content/030_basic_content/090_scenarios/020_targeting_hybrid_instances
62 - 3
CPUStressInstances.yaml
in resources/templates/cpu-stress
187 - 3
template.yaml
in resources/templates/deploy-ee-codebuild
155 - 3
nucleus.css
in workshop/themes/learn/static/css
522 - 2
search.html
in workshop/themes/learn/layouts/partials
16 - 2
hugotest.html
in workshop/themes/learn/layouts/shortcodes
34 - 2
fis-stack-rds-aurora.ts
in resources/templates/rds/lib
72 1 2
loadgen.go
in resources/templates/goad-cdk/load-gen
345 4 2
loadgen.go
in resources/templates/goad-redux/go-lambda/load-gen
345 4 2
hybrid-target-noconverter.yaml
in workshop/content/030_basic_content/090_scenarios/020_targeting_hybrid_instances
46 - 1
render-link.html
in workshop/layouts/_default/_markup
1 - 1
theme-green.css
in workshop/themes/learn/static/css
103 - 1
atom-one-dark-reasonable.css
in workshop/themes/learn/static/css
70 - 1