awslabs / ec2-spot-workshops
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 38 files with 8,451 lines of code.
    • 2 very long files (3,690 lines of code)
    • 2 long files (1,054 lines of code)
    • 5 medium size files (1,884 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (873 lines of code)
    • 23 very small files (950 lines of code)
43% | 12% | 22% | 10% | 11%
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
css91% | 0% | 0% | 6% | 2%
yaml29% | 28% | 31% | 6% | 3%
yml0% | 0% | 56% | 25% | 18%
py0% | 0% | 0% | 37% | 62%
html0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static/css91% | 0% | 0% | 6% | 2%
workshops/amazon-ec2-spot-cicd-workshop100% | 0% | 0% | 0% | 0%
workshops/running-amazon-ec2-workloads-at-scale0% | 80% | 0% | 0% | 19%
content/rendering-with-batch0% | 76% | 0% | 19% | 4%
content/using_ec2_spot_instances_with_eks0% | 0% | 57% | 25% | 17%
workshops/ecs-spot-capacity-providers0% | 0% | 85% | 0% | 14%
static/config0% | 0% | 100% | 0% | 0%
workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options0% | 0% | 57% | 23% | 19%
workshops/using-sagemaker-managed-spot-training0% | 0% | 0% | 100% | 0%
layouts/partials0% | 0% | 0% | 0% | 100%
layouts/shortcodes0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
content/running_spark_apps_with_emr_on_spot_instances0% | 0% | 0% | 0% | 100%
layouts/_default0% | 0% | 0% | 0% | 100%
Longest Files (Top 38)
File# lines# units
all.css
in static/css
2570 -
amazon-ec2-spot-cicd-workshop.yaml
in workshops/amazon-ec2-spot-cicd-workshop
1120 -
running-amazon-ec2-workloads-at-scale.yaml
in workshops/running-amazon-ec2-workloads-at-scale
532 -
stack.yaml
in content/rendering-with-batch/rendering-with-batch.files
522 -
ecs-spot-workshop-cfn.yaml
in workshops/ecs-spot-capacity-providers
495 -
monte-carlo-workshop.yaml
in static/config/monte-carlo-on-ec2-spot-fleet
424 -
cloudformation_mixed_workers.yml
in content/using_ec2_spot_instances_with_eks/070_selfmanagednodegroupswithspot/spotworkers.files
383 -
eks-spot-workshop-quickstart-cnf.yml
in content/using_ec2_spot_instances_with_eks/010_prerequisites/prerequisites.files
309 -
ec2-auto-scaling-with-multiple-instance-types-and-purchase-options.yaml
in workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options
273 -
theme-mine.css
in static/css
191 -
cluster_autoscaler.yml
in content/using_ec2_spot_instances_with_eks/060_scaling/deploy_ca.files
168 -
eksctl_mixed_workers_bootstrap.yml
in content/using_ec2_spot_instances_with_eks/070_selfmanagednodegroupswithspot/spotworkers.files
138 -
sagemaker-workshop.yaml
in workshops/using-sagemaker-managed-spot-training
133 -
job_submission.py
in content/rendering-with-batch/batch/batch.files
132 8
spot-interruption-handler.yaml
in workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options
111 -
spot-interruption-handler.yaml
in workshops/running-amazon-ec2-workloads-at-scale
98 -
header.html
in layouts/partials
98 -
app.py
in workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options/cdk
93 1
app.py
in workshops/ecs-spot-capacity-providers/webapp
87 5
config.toml
in root
86 -
monte-carlo-pi-service-final-self-managed.yml
in content/using_ec2_spot_instances_with_eks/050_deploy/tolerations_and_affinity.files
67 -
monte-carlo-pi-service-final.yml
in content/using_ec2_spot_instances_with_eks/050_deploy/tolerations_and_affinity.files
62 -
syntax.css
in static/css
59 -
deployment-solution.yml
in content/using_ec2_spot_instances_with_eks/070_selfmanagednodegroupswithspot/preferspot.files
49 -
tabs.html
in layouts/shortcodes
43 -
verifying_resilience.py
in content/rendering-with-batch/rendering-with-batch.files
31 2
appspec.yml
in workshops/running-amazon-ec2-workloads-at-scale/codedeploy
30 -
eksworkshop.yaml
in content/using_ec2_spot_instances_with_eks/010_prerequisites/prerequisites.files
29 -
card.html
in layouts/shortcodes
23 -
tab.html
in layouts/shortcodes
19 -
custom-footer.html
in layouts/partials
18 -
contributors.html
in layouts/shortcodes
17 -
amplify.yml
in root
16 -
menu-footer.html
in layouts/partials
10 -
script.py
in content/running_spark_apps_with_emr_on_spot_instances/launching_emr_cluster-1.files
6 -
insert-md-from-file.html
in layouts/shortcodes
6 -
content.html
in layouts/shortcodes
2 -
render-link.html
in layouts/_default/_markup
1 -
Files With Most Units (Top 4)
File# lines# units
job_submission.py
in content/rendering-with-batch/batch/batch.files
132 8
app.py
in workshops/ecs-spot-capacity-providers/webapp
87 5
verifying_resilience.py
in content/rendering-with-batch/rendering-with-batch.files
31 2
app.py
in workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options/cdk
93 1
Files With Long Lines (Top 19)

There are 19 files with lines longer than 120 characters. In total, there are 75 long lines.

File# lines# units# long lines
amazon-ec2-spot-cicd-workshop.yaml
in workshops/amazon-ec2-spot-cicd-workshop
1120 - 20
eks-spot-workshop-quickstart-cnf.yml
in content/using_ec2_spot_instances_with_eks/010_prerequisites/prerequisites.files
309 - 10
monte-carlo-workshop.yaml
in static/config/monte-carlo-on-ec2-spot-fleet
424 - 8
cloudformation_mixed_workers.yml
in content/using_ec2_spot_instances_with_eks/070_selfmanagednodegroupswithspot/spotworkers.files
383 - 6
job_submission.py
in content/rendering-with-batch/batch/batch.files
132 8 6
all.css
in static/css
2570 - 3
eksctl_mixed_workers_bootstrap.yml
in content/using_ec2_spot_instances_with_eks/070_selfmanagednodegroupswithspot/spotworkers.files
138 - 3
spot-interruption-handler.yaml
in workshops/ec2-auto-scaling-with-multiple-instance-types-and-purchase-options
111 - 3
spot-interruption-handler.yaml
in workshops/running-amazon-ec2-workloads-at-scale
98 - 3
header.html
in layouts/partials
98 - 3
menu-footer.html
in layouts/partials
10 - 2
theme-mine.css
in static/css
191 - 1
cluster_autoscaler.yml
in content/using_ec2_spot_instances_with_eks/060_scaling/deploy_ca.files
168 - 1
script.py
in content/running_spark_apps_with_emr_on_spot_instances/launching_emr_cluster-1.files
6 - 1
stack.yaml
in content/rendering-with-batch/rendering-with-batch.files
522 - 1
verifying_resilience.py
in content/rendering-with-batch/rendering-with-batch.files
31 2 1
card.html
in layouts/shortcodes
23 - 1
contributors.html
in layouts/shortcodes
17 - 1
tabs.html
in layouts/shortcodes
43 - 1