awslabs / ec2-spot-labs
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 84 files with 12,595 lines of code.
    • 0 very long files (0 lines of code)
    • 4 long files (2,328 lines of code)
    • 17 medium size files (6,063 lines of codeclsfd_ftr_w_mp_ins)
    • 16 small files (2,273 lines of code)
    • 47 very small files (1,931 lines of code)
0% | 18% | 48% | 18% | 15%
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
yaml0% | 23% | 55% | 13% | 6%
py0% | 0% | 16% | 28% | 55%
yml0% | 0% | 73% | 0% | 26%
tf0% | 0% | 0% | 93% | 6%
MD0% | 0% | 0% | 85% | 14%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ec2-spot-fleet-jenkins-plugin0% | 100% | 0% | 0% | 0%
ec2-spot-eks-solution0% | 65% | 0% | 17% | 16%
workshops0% | 61% | 35% | 0% | 3%
sqs-ec2-spot-fleet-autoscaling0% | 100% | 0% | 0% | 0%
aws-compute-optimizer0% | 0% | 94% | 0% | 5%
ec2-spot-fleet-multiple-vpcs0% | 0% | 84% | 15% | 0%
ec2-spot-aws-batch0% | 0% | 100% | 0% | 0%
builder-sessions0% | 0% | 83% | 0% | 16%
sqs-ec2-spot-asg0% | 0% | 100% | 0% | 0%
ecs-ec2-spot-fleet0% | 0% | 100% | 0% | 0%
ec2-asg-mixed-instances-scheduled-ratio0% | 0% | 100% | 0% | 0%
ec2-spot-interruption-notice-cloudwatch-events0% | 0% | 100% | 0% | 0%
ec2-spot-sagemaker-managed-spot-training0% | 0% | 43% | 44% | 11%
ec2-spot-interruption-handler0% | 0% | 54% | 45% | 0%
ec2-spot-elastic-inference0% | 0% | 57% | 35% | 7%
ec2-spot-fleet-launch-templates0% | 0% | 100% | 0% | 0%
ecs-spot-terraform0% | 0% | 0% | 81% | 18%
ec2-spot-asg-launch-template0% | 0% | 0% | 100% | 0%
ec2-spot-instance-launch-templates0% | 0% | 0% | 100% | 0%
ec2-spot-fleet-aws-batch0% | 0% | 0% | 100% | 0%
ec2-spot-instance-state-change-notification-lambda0% | 0% | 0% | 100% | 0%
ec2-spot-price-monitoring-with-lambda0% | 0% | 0% | 77% | 22%
ec2-spot-defined-duration0% | 0% | 0% | 100% | 0%
ecs-ec2-spot-auto-deregister0% | 0% | 0% | 100% | 0%
ec2-spot-interruption-logging-insights0% | 0% | 0% | 0% | 100%
ecs-spot-agent0% | 0% | 0% | 0% | 100%
ec2-spot-deep-learning-training0% | 0% | 0% | 0% | 100%
ec2-spot-analyze-costs0% | 0% | 0% | 0% | 100%
ec2-spot-emr0% | 0% | 0% | 0% | 100%
ec2-spot-tensorflow-checkpoint0% | 0% | 0% | 0% | 100%
ec2-fleet0% | 0% | 0% | 0% | 100%
ec2-spot-history-notebook0% | 0% | 0% | 0% | 100%
ec2-spot-duration0% | 0% | 0% | 0% | 100%
ec2-spot-fleet-instance-weighting0% | 0% | 0% | 0% | 100%
ec2-spot-asg-handling-interruptions0% | 0% | 0% | 0% | 100%
cost-optimized-spark-on-kubernetes0% | 0% | 0% | 0% | 100%
paginated-api-call-examples0% | 0% | 0% | 0% | 100%
tensorflow-serving-load-testing-sample0% | 0% | 0% | 0% | 100%
run-instances0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
spot-fleet-jenkins-plugin.yaml
in ec2-spot-fleet-jenkins-plugin
722 -
amazon-eks-nodegroup-with-spot.yaml
in ec2-spot-eks-solution/provision-worker-nodes
552 -
running-amazon-ec2-workloads-at-scale.yaml
in workshops/running-amazon-ec2-workloads-at-scale
532 -
sqs-ec2-spot-fleet-autoscaling.yaml
in sqs-ec2-spot-fleet-autoscaling
522 -
demo_setup.yaml
in builder-sessions/test-dev-on-spot
496 -
sqs-ec2-spot-asg.yaml
in sqs-ec2-spot-asg
486 -
aws-compute-optimizer.yaml
in aws-compute-optimizer
480 -
ecs-ec2-spot-fleet.yaml
in ecs-ec2-spot-fleet
453 -
ec2-asg-mixed-instances-scheduled-ratio.yaml
in ec2-asg-mixed-instances-scheduled-ratio
412 -
opt3.yaml
in aws-compute-optimizer
404 -
ec2-spot-interruption-notice-cloudwatch-events.yaml
in ec2-spot-interruption-notice-cloudwatch-events
353 -
im2rec.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-built-in-object-detection/tools
347 8
ec2-spot-aws-batch-allocation-strategies.yaml
in ec2-spot-aws-batch
344 -
ec2-spot-aws-batch-unmanaged-asg.yaml
in ec2-spot-aws-batch
342 -
ec2-spot-fleet-web-app.yaml
in workshops/ec2-spot-fleet-web-app
305 -
ec2-spot-fleet-multiple-vpcs.yaml
in ec2-spot-fleet-multiple-vpcs
299 -
cloudformation.yml
in ec2-spot-interruption-handler/sample-asg
283 -
EI_Spot_CFN.yaml
in ec2-spot-elastic-inference
281 -
ec2-spot-fleet-launch-templates.yaml
in ec2-spot-fleet-launch-templates
274 -
ec2-spot-fleet-multiple-vpcs-vpcc.yaml
in ec2-spot-fleet-multiple-vpcs
252 -
ec2-spot-fleet-multiple-vpcs-vpcb.yaml
in ec2-spot-fleet-multiple-vpcs
252 -
main.tf
in ecs-spot-terraform
189 -
ec2-spot-asg-launch-template.yaml
in ec2-spot-asg-launch-template
183 -
ec2-spot-instance-launch-templates.yaml
in ec2-spot-instance-launch-templates
178 -
Readme.MD
in ec2-spot-elastic-inference
172 -
ec2-spot-fleet-aws-batch.yaml
in ec2-spot-fleet-aws-batch
153 -
cluster-autoscaler-ds.yaml
in ec2-spot-eks-solution/cluster-autoscaler
152 -
ec2-spot-fleet-multiple-vpcs-vpca.yaml
in ec2-spot-fleet-multiple-vpcs
147 -
ec2-spot-instance-state-change-notification-lambda.yaml
in ec2-spot-instance-state-change-notification-lambda
138 -
ec2-spot-price-monitoring-with-lambda.yaml
in ec2-spot-price-monitoring-with-lambda
136 -
cifar10.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/container/cifar10
133 8
template.yaml
in ec2-spot-interruption-handler
128 -
ec2-spot-defined-duration.py
in ec2-spot-defined-duration
119 -
ecs-ec2-spot-auto-deregister.yaml
in ecs-ec2-spot-auto-deregister
116 -
resnet_model.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/container/cifar10
113 7
birdsOnEdge.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-built-in-object-detection/tools
112 6
index.py
in ec2-spot-interruption-handler/spot-interruption-handler
104 5
ec2-spot-analyze-costs.yaml
in ec2-spot-analyze-costs
97 -
tensorflow_checkpoint.py
in ec2-spot-tensorflow-checkpoint
95 8
generate_cifar10_tfrecords.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/utils
95 7
ec2-fleet.py
in ec2-fleet
93 -
template.yaml
in ec2-spot-interruption-logging-insights
88 -
emr.py
in ec2-spot-emr
87 -
ec2_spot_keras_training.py
in ec2-spot-deep-learning-training
86 5
spot-interrupt-handler.yaml
in ec2-spot-eks-solution/spot-termination-handler/deploy-k8-pod
84 -
get_spot_duration.py
in ec2-spot-duration
84 3
ec2-spot-fleet-instance-weighting.yaml
in ec2-spot-fleet-instance-weighting
82 -
app.py
in ec2-spot-asg-handling-interruptions/cdk
81 1
ecs-spot-agent.yaml
in ecs-spot-agent
77 -
app.py
in ec2-spot-interruption-logging-insights/SpotInterruptionTriggerFunction
61 1
Files With Most Units (Top 20)
File# lines# units
tensorflow_checkpoint.py
in ec2-spot-tensorflow-checkpoint
95 8
im2rec.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-built-in-object-detection/tools
347 8
cifar10.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/container/cifar10
133 8
resnet_model.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/container/cifar10
113 7
generate_cifar10_tfrecords.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-custom-tensorflow/utils
95 7
birdsOnEdge.py
in ec2-spot-sagemaker-managed-spot-training/sagemaker-built-in-object-detection/tools
112 6
index.py
in ec2-spot-interruption-handler/spot-interruption-handler
104 5
ec2_spot_keras_training.py
in ec2-spot-deep-learning-training
86 5
check_termination.py
in ecs-spot-agent/ecs
45 4
example-reusable-paginator.py
in paginated-api-call-examples/boto3
25 3
simple_server.py
in builder-sessions/test-dev-on-spot
40 3
get_spot_duration.py
in ec2-spot-duration
84 3
submit_mc_tf_k8s_requests.py
in tensorflow-serving-load-testing-sample/python
60 3
example.py
in paginated-api-call-examples/boto3
23 2
ec2-spot-price-monitoring.py
in ec2-spot-price-monitoring-with-lambda
39 1
lambda.py
in aws-compute-optimizer
31 1
download_cifar10.py
in ec2-spot-deep-learning-training
30 1
app.py
in ec2-spot-interruption-logging-insights/SpotInterruptionTriggerFunction
61 1
spot_historic_notebook_stack.py
in ec2-spot-history-notebook/cdk/spot_historic_notebook
54 1
app.py
in ec2-spot-asg-handling-interruptions/cdk
81 1
Files With Long Lines (Top 20)

There are 24 files with lines longer than 120 characters. In total, there are 87 long lines.

File# lines# units# long lines
Readme.MD
in ec2-spot-elastic-inference
172 - 32
ec2-spot-price-monitoring.py
in ec2-spot-price-monitoring-with-lambda
39 1 8
README.MD
in ecs-spot-terraform
29 - 7
ec2-spot-price-monitoring-with-lambda.yaml
in ec2-spot-price-monitoring-with-lambda
136 - 6
opt3.yaml
in aws-compute-optimizer
404 - 3
spot_historic_notebook_stack.py
in ec2-spot-history-notebook/cdk/spot_historic_notebook
54 1 3
submit_mc_tf_k8s_requests.py
in tensorflow-serving-load-testing-sample/python
60 3 3
index.py
in ec2-spot-interruption-handler/spot-interruption-handler
104 5 2
aws-compute-optimizer.yaml
in aws-compute-optimizer
480 - 2
amazon-eks-nodegroup-with-spot.yaml
in ec2-spot-eks-solution/provision-worker-nodes
552 - 2
ec2-spot-interruption-notice-cloudwatch-events.yaml
in ec2-spot-interruption-notice-cloudwatch-events
353 - 2
get_spot_duration.py
in ec2-spot-duration
84 3 2
main.tf
in ecs-spot-terraform
189 - 2
untitled.py
in ec2-spot-analyze-costs
19 1 2
sqs-ec2-spot-fleet-autoscaling.yaml
in sqs-ec2-spot-fleet-autoscaling
522 - 2
cloudformation.yml
in ec2-spot-interruption-handler/sample-asg
283 - 1
example.java
in paginated-api-call-examples/java
18 1 1
create-asg-with-lt.yaml
in builder-sessions/ec2-asg-with-lt
28 - 1
update-asg-with-lt.yaml
in builder-sessions/ec2-asg-with-lt
28 - 1
demo_setup.yaml
in builder-sessions/test-dev-on-spot
496 - 1