aws-samples / eks-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 72 files with 6,827 lines of code.
    • 1 very long files (2,570 lines of code)
    • 1 long files (530 lines of code)
    • 3 medium size files (864 lines of codeclsfd_ftr_w_mp_ins)
    • 9 small files (1,283 lines of code)
    • 58 very small files (1,580 lines of code)
37% | 7% | 12% | 18% | 23%
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
css94% | 0% | 0% | 5% | 0%
yml0% | 31% | 37% | 17% | 13%
yaml0% | 0% | 13% | 34% | 52%
go0% | 0% | 0% | 68% | 31%
toml0% | 0% | 0% | 100% | 0%
html0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static/css94% | 0% | 0% | 5% | 0%
templates0% | 40% | 48% | 11% | <1%
content/beginner0% | 0% | 15% | 40% | 43%
content/intermediate0% | 0% | 0% | 43% | 56%
ROOT0% | 0% | 0% | 85% | 14%
content/advanced0% | 0% | 0% | 0% | 100%
layouts/shortcodes0% | 0% | 0% | 0% | 100%
layouts/partials0% | 0% | 0% | 0% | 100%
layouts0% | 0% | 0% | 0% | 100%
static0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
all.css
in static/css
2570 -
amazon-eks-nodegroup-with-spot.yml
in templates
530 -
amazon-eks-nodegroup-with-mixed-instances.yml
in templates
383 -
ci-cd-codepipeline.cfn.yml
in templates
257 -
controller.yaml
in content/beginner/200_secrets/secrets.files
224 -
fluentbit.yaml
in content/intermediate/230_logging/deploy.files
168 -
theme-mine.css
in static/css
156 -
cluster-autoscaler-autodiscover.yaml
in content/beginner/080_scaling/deploy_ca.files
156 -
mysql-statefulset.yaml
in content/beginner/170_statefulset/statefulset.files
149 -
cluster_autoscaler.yml
in content/beginner/080_scaling/deploy_ca.files
149 -
weave_flux_pipeline.cfn.yml
in templates
145 -
efs-provisioner-deployment.yaml
in content/beginner/190_efs/efs.files
128 -
main.go
in content/intermediate/245_x-ray/sample-front.files
120 4
config.toml
in root
112 -
xray-k8s-daemonset.yaml
in content/intermediate/245_x-ray/daemonset.files
89 -
mnist-inference.yaml
in content/advanced/420_kubeflow/kubeflow.files
87 -
wordpress-deployment.yaml
in content/intermediate/280_backup-and-restore/backupandrestore.files
68 -
mysql-deployment.yaml
in content/intermediate/280_backup-and-restore/backupandrestore.files
66 -
mnist-tensorflow-docker.py
in content/advanced/420_kubeflow/kubeflow.files
65 5
mnist-tensorflow-jupyter.py
in content/advanced/420_kubeflow/kubeflow.files
63 5
main.go
in content/intermediate/245_x-ray/sample-back.files
54 4
red-pod.yaml
in content/beginner/115_sg-per-pod/deployments.files
51 -
green-pod.yaml
in content/beginner/115_sg-per-pod/deployments.files
51 -
ecsdemo-frontend-deployment.yml
in content/beginner/150_spotnodegroups/deployapp.files
49 -
404.html
in layouts
49 -
custom-header.html
in layouts/partials
44 -
client.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/create_resources.files
43 -
x-ray-sample-front-k8s.yml
in content/intermediate/245_x-ray/sample-front.files
43 -
tabs.html
in layouts/shortcodes
43 -
x-ray-sample-back-k8s.yml
in content/intermediate/245_x-ray/sample-back.files
42 -
management-ui.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/create_resources.files
41 -
efs-pvc.yaml
in content/beginner/190_efs/efs.files
39 -
ecsdemo-crystal-deployment.yml
in content/beginner/150_spotnodegroups/deployapp.files
38 -
ecsdemo-nodejs-deployment.yml
in content/beginner/150_spotnodegroups/deployapp.files
38 -
frontend.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/create_resources.files
37 -
backend.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/create_resources.files
37 -
inference_client.py
in content/advanced/420_kubeflow/kubeflow.files
36 1
mnist-training.yaml
in content/advanced/420_kubeflow/kubeflow.files
35 -
mnist-tensorflow.yaml
in content/advanced/420_kubeflow/kubeflow.files
34 -
ghcontributors.html
in layouts/shortcodes
29 -
efs-writer.yaml
in content/beginner/190_efs/efs.files
27 -
readiness-deployment.yaml
in content/beginner/070_healthchecks/readiness.files
25 -
pod-volume.yaml
in content/beginner/200_secrets/secrets.files
24 -
pod-variable.yaml
in content/beginner/200_secrets/secrets.files
22 -
amplify.yml
in root
19 -
tab.html
in layouts/shortcodes
19 -
efs-reader.yaml
in content/beginner/190_efs/efs.files
18 -
backend-policy.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/directional_traffic.files
17 -
frontend-policy.yaml
in content/beginner/120_network-policies/calico/stars_policy_demo/directional_traffic.files
17 -
custom-footer.html
in layouts/partials
16 -
Files With Most Units (Top 5)
File# lines# units
mnist-tensorflow-jupyter.py
in content/advanced/420_kubeflow/kubeflow.files
63 5
mnist-tensorflow-docker.py
in content/advanced/420_kubeflow/kubeflow.files
65 5
main.go
in content/intermediate/245_x-ray/sample-back.files
54 4
main.go
in content/intermediate/245_x-ray/sample-front.files
120 4
inference_client.py
in content/advanced/420_kubeflow/kubeflow.files
36 1
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 46 long lines.

File# lines# units# long lines
amazon-eks-nodegroup-with-mixed-instances.yml
in templates
383 - 6
fluentbit.yaml
in content/intermediate/230_logging/deploy.files
168 - 5
custom-header.html
in layouts/partials
44 - 4
404.html
in layouts
49 - 4
all.css
in static/css
2570 - 3
theme-mine.css
in static/css
156 - 3
amazon-eks-nodegroup-with-spot.yml
in templates
530 - 2
weave_flux_pipeline.cfn.yml
in templates
145 - 2
inference_client.py
in content/advanced/420_kubeflow/kubeflow.files
36 1 2
main.go
in content/intermediate/245_x-ray/sample-back.files
54 4 2
main.go
in content/intermediate/245_x-ray/sample-front.files
120 4 2
pod-variable.yaml
in content/beginner/200_secrets/secrets.files
22 - 1
pod-volume.yaml
in content/beginner/200_secrets/secrets.files
24 - 1
cluster-autoscaler-autodiscover.yaml
in content/beginner/080_scaling/deploy_ca.files
156 - 1
speakerdeck.html
in layouts/partials
1 - 1
menu-footer.html
in layouts/partials
3 - 1
custom-footer.html
in layouts/partials
16 - 1
mermaid.html
in layouts/shortcodes
1 - 1
surveymonkey.html
in layouts/shortcodes
1 - 1
cf-launch.html
in layouts/shortcodes
6 - 1