aws-samples / aws-cdk-examples
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 275 files with 10,080 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (297 lines of codeclsfd_ftr_w_mp_ins)
    • 21 small files (2,676 lines of code)
    • 253 very small files (7,107 lines of code)
0% | 0% | 2% | 26% | 70%
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
py0% | 0% | 6% | 23% | 70%
ts0% | 0% | 0% | 34% | 65%
html0% | 0% | 0% | 83% | 16%
cs0% | 0% | 0% | 16% | 83%
java0% | 0% | 0% | 35% | 64%
js0% | 0% | 0% | 17% | 82%
go0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
python/image-content-search0% | 0% | 36% | 23% | 39%
typescript/waf0% | 0% | 0% | 97% | 2%
python/waf0% | 0% | 0% | 97% | 2%
python/lambda-ddb-mysql-etl-pipeline0% | 0% | 0% | 62% | 37%
python/static-site0% | 0% | 0% | 66% | 33%
csharp/appsync-graphql-dynamodb0% | 0% | 0% | 89% | 10%
typescript/appsync-graphql-dynamodb0% | 0% | 0% | 100% | 0%
java/alb-multi-rule-response0% | 0% | 0% | 62% | 37%
typescript/appsync-graphql-eventbridge0% | 0% | 0% | 100% | 0%
python/emr0% | 0% | 0% | 100% | 0%
typescript/api-websocket-lambda-dynamodb0% | 0% | 0% | 65% | 34%
csharp/elasticbeanstalk0% | 0% | 0% | 48% | 51%
typescript/elasticbeanstalk0% | 0% | 0% | 59% | 40%
python/appsync-graphql-dynamodb0% | 0% | 0% | 95% | 5%
typescript/lambda-api-ci0% | 0% | 0% | 54% | 45%
typescript/lambda-manage-s3-event-notification0% | 0% | 0% | 47% | 52%
typescript/api-cors-lambda-crud-dynamodb0% | 0% | 0% | 44% | 55%
typescript/ecs0% | 0% | 0% | 15% | 84%
python/ecs0% | 0% | 0% | 0% | 100%
python/docker-app-with-asg-alb0% | 0% | 0% | 0% | 100%
python/url-shortener0% | 0% | 0% | 0% | 100%
go/ecs0% | 0% | 0% | 0% | 100%
python/s3-object-lambda0% | 0% | 0% | 0% | 100%
java/codebuild0% | 0% | 0% | 0% | 100%
python/api-eventbridge-lambda0% | 0% | 0% | 0% | 100%
python/new-vpc-alb-asg-mysql0% | 0% | 0% | 0% | 100%
csharp/my-widget-service0% | 0% | 0% | 0% | 100%
csharp/static-site0% | 0% | 0% | 0% | 100%
typescript/s3-object-lambda0% | 0% | 0% | 0% | 100%
python/codepipeline-docker-build0% | 0% | 0% | 0% | 100%
python/dynamodb-lambda0% | 0% | 0% | 0% | 100%
python/cross-stack-resources0% | 0% | 0% | 0% | 100%
typescript/my-widget-service0% | 0% | 0% | 0% | 100%
typescript/static-site0% | 0% | 0% | 0% | 100%
python/my-widget-service0% | 0% | 0% | 0% | 100%
python/batch0% | 0% | 0% | 0% | 100%
python/rekognition-lambda-s3-trigger0% | 0% | 0% | 0% | 100%
csharp/stepfunctions-job-poller0% | 0% | 0% | 0% | 100%
python/ec2-cloudwatch0% | 0% | 0% | 0% | 100%
python/api-sqs-lambda0% | 0% | 0% | 0% | 100%
python/lambda-cloudwatch-dashboard0% | 0% | 0% | 0% | 100%
python/stepfunctions0% | 0% | 0% | 0% | 100%
java/my-widget-service0% | 0% | 0% | 0% | 100%
csharp/random-writer0% | 0% | 0% | 0% | 100%
python/existing-vpc-new-ec2-ebs-userdata0% | 0% | 0% | 0% | 100%
typescript/neptune-with-vpc0% | 0% | 0% | 0% | 100%
typescript/lambda-cloudwatch-dashboard0% | 0% | 0% | 0% | 100%
typescript/stepfunctions-job-poller0% | 0% | 0% | 0% | 100%
typescript/custom-resource-provider0% | 0% | 0% | 0% | 100%
typescript/resource-overrides0% | 0% | 0% | 0% | 100%
typescript/custom-resource0% | 0% | 0% | 0% | 100%
python/custom-resource0% | 0% | 0% | 0% | 100%
typescript/fsx-ad0% | 0% | 0% | 0% | 100%
python/lambda-from-container0% | 0% | 0% | 0% | 100%
typescript/http-proxy-apigateway0% | 0% | 0% | 0% | 100%
go/eks0% | 0% | 0% | 0% | 100%
typescript/ec2-instance0% | 0% | 0% | 0% | 100%
csharp/capitalize-string0% | 0% | 0% | 0% | 100%
csharp/application-load-balancer0% | 0% | 0% | 0% | 100%
go/classic-load-balancer0% | 0% | 0% | 0% | 100%
csharp/classic-load-balancer0% | 0% | 0% | 0% | 100%
python/api-cors-lambda0% | 0% | 0% | 0% | 100%
typescript/cognito-api-lambda0% | 0% | 0% | 0% | 100%
go/lambda-cron0% | 0% | 0% | 0% | 100%
python/ec20% | 0% | 0% | 0% | 100%
python/lambda-triggered-by-existing-kinesis-stream0% | 0% | 0% | 0% | 100%
csharp/lambda-cron0% | 0% | 0% | 0% | 100%
python/application-load-balancer0% | 0% | 0% | 0% | 100%
typescript/eks0% | 0% | 0% | 0% | 100%
typescript/application-load-balancer0% | 0% | 0% | 0% | 100%
python/lambda-cron0% | 0% | 0% | 0% | 100%
typescript/lambda-layer0% | 0% | 0% | 0% | 100%
python/lambda-layer0% | 0% | 0% | 0% | 100%
python/classic-load-balancer0% | 0% | 0% | 0% | 100%
typescript/lambda-cron0% | 0% | 0% | 0% | 100%
python/lambda-s3-trigger0% | 0% | 0% | 0% | 100%
typescript/classic-load-balancer0% | 0% | 0% | 0% | 100%
python/rds0% | 0% | 0% | 0% | 100%
python/lambda-with-existing-s3-code0% | 0% | 0% | 0% | 100%
typescript/custom-logical-names0% | 0% | 0% | 0% | 100%
typescript/amplify-console-app0% | 0% | 0% | 0% | 100%
java/custom-resource0% | 0% | 0% | 0% | 100%
java/static-site0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
cdk.py
in python/image-content-search/stack
297 2
index.html
in python/image-content-search/src/landingPage
190 -
static_site.py
in python/static-site
166 14
waf-cloudfront.ts
in typescript/waf
152 2
waf-regional.ts
in typescript/waf
147 2
waf_regional.py
in python/waf
134 2
waf_cloudfront.py
in python/waf
134 2
AppsyncGraphqlDynamodbStack.cs
in csharp/appsync-graphql-dynamodb/src/AppsyncGraphqlDynamodb
133 1
index.ts
in typescript/appsync-graphql-dynamodb
130 1
ALBProjectStack.java
in java/alb-multi-rule-response/src/main/java/com/myorg
128 2
index.ts
in typescript/appsync-graphql-eventbridge
128 1
app.py
in python/emr
127 1
index.ts
in typescript/api-websocket-lambda-dynamodb
123 -
blue_green.py
in typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/resources
119 9
blue_green.py
in csharp/elasticbeanstalk/elasticbeanstalk-bg-pipeline/resources
119 9
app_sync_cdk_stack.py
in python/appsync-graphql-dynamodb/app_sync_cdk
114 1
dbwrite.py
in python/lambda-ddb-mysql-etl-pipeline/lambda
110 5
ci-stack.ts
in typescript/lambda-api-ci/lib
109 2
sample-service-stack.ts
in typescript/lambda-manage-s3-event-notification/lib
105 2
index.ts
in typescript/api-cors-lambda-crud-dynamodb
104 8
lambda.js
in typescript/ecs/fargate-service-with-efs
102 3
etl_pipeline_cdk_stack.py
in python/lambda-ddb-mysql-etl-pipeline/etl_pipeline_cdk
102 1
s3_object_lambda_stack.py
in python/s3-object-lambda/stacks
93 1
StaticSiteConstruct.cs
in csharp/static-site/src/StaticSite
90 1
my_widget_service_stack.py
in python/my-widget-service/my_widget_service
89 1
s3-object-lambda-stack.ts
in typescript/s3-object-lambda/lib
88 1
widgets.js
in java/my-widget-service/resources
83 -
widgets.js
in typescript/my-widget-service/resources
83 -
manage-s3-event-notifications.js
in typescript/lambda-manage-s3-event-notification/lambda
83 4
index.ts
in typescript/ecs/fargate-service-with-efs
83 1
widgets.js
in csharp/my-widget-service/src/MyWidgetService/resources
83 -
asteroids.py
in python/lambda-ddb-mysql-etl-pipeline/lambda
83 8
static-site.ts
in typescript/static-site
76 -
api_eventbridge_lambda.py
in python/api-eventbridge-lambda/api_eventbridge_lambda
73 1
app.py
in python/ecs/ecs-service-with-advanced-alb-config
73 -
neptune-with-vpc-stack.ts
in typescript/neptune-with-vpc
72 1
fargate-with-alb.go
in go/ecs/fargate-with-alb
71 3
index.ts
in typescript/resource-overrides
70 1
ElasticbeanstalkBgPipelineStack.cs
in csharp/elasticbeanstalk/elasticbeanstalk-bg-pipeline/src/ElasticbeanstalkBgPipeline
69 1
lambda-cloudwatch-dashboard-stack.ts
in typescript/lambda-cloudwatch-dashboard/lib
68 1
ec2_cloudwatch_stack.py
in python/ec2-cloudwatch/ec2_cloudwatch
67 1
PropertyLoader.java
in java/alb-multi-rule-response/src/main/java/com/myorg/utils
64 9
index.ts
in typescript/stepfunctions-job-poller
63 1
index.ts
in typescript/fsx-ad
61 1
handler.py
in python/url-shortener/lambda
61 3
Base.py
in python/codepipeline-docker-build
61 2
ProjectStack.java
in java/codebuild/project/src/main/java/com/myorg
58 2
index.ts
in typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline
58 1
lambda_cloudwatch_dashboard_stack.py
in python/lambda-cloudwatch-dashboard/lambda_cloudwatch_dashboard
58 1
asg_stack.py
in python/docker-app-with-asg-alb/dockerized_app_cdk
58 1
Files With Most Units (Top 20)
File# lines# units
static_site.py
in python/static-site
166 14
PropertyLoader.java
in java/alb-multi-rule-response/src/main/java/com/myorg/utils
64 9
blue_green.py
in typescript/elasticbeanstalk/elasticbeanstalk-bg-pipeline/resources
119 9
blue_green.py
in csharp/elasticbeanstalk/elasticbeanstalk-bg-pipeline/resources
119 9
index.ts
in typescript/api-cors-lambda-crud-dynamodb
104 8
asteroids.py
in python/lambda-ddb-mysql-etl-pipeline/lambda
83 8
custom-resource-handler.py
in typescript/custom-resource-provider
28 5
dbwrite.py
in python/lambda-ddb-mysql-etl-pipeline/lambda
110 5
manage-s3-event-notifications.js
in typescript/lambda-manage-s3-event-notification/lambda
83 4
lambda-cron.go
in go/lambda-cron
42 3
classic-load-balancer.go
in go/classic-load-balancer
50 3
fargate-with-alb.go
in go/ecs/fargate-with-alb
71 3
fargate-alb-pattern.go
in go/ecs/fargate-alb-pattern
45 3
cluster.go
in go/ecs/cluster
48 3
cluster.go
in go/eks/cluster
54 3
lambda.js
in typescript/ecs/fargate-service-with-efs
102 3
RandomWriterStack.cs
in csharp/random-writer/src/RandomWriter
53 3
search.py
in python/image-content-search/src/imageData/helper
48 3
main.py
in python/image-content-search/src/imageMassage
54 3
__init__.py
in python/url-shortener/waltersco_common
33 3
Files With Long Lines (Top 20)

There are 39 files with lines longer than 120 characters. In total, there are 65 long lines.

File# lines# units# long lines
cdk.py
in python/image-content-search/stack
297 2 4
app.py
in python/batch/batch-using-fargate
42 1 4
fargate-alb-pattern.go
in go/ecs/fargate-alb-pattern
45 3 3
manage-s3-event-notifications.js
in typescript/lambda-manage-s3-event-notification/lambda
83 4 3
index.ts
in typescript/api-websocket-lambda-dynamodb
123 - 3
index.ts
in typescript/resource-overrides
70 1 3
ec2_cloudwatch_stack.py
in python/ec2-cloudwatch/ec2_cloudwatch
67 1 3
index.html
in python/image-content-search/src/landingPage
190 - 3
cluster.go
in go/ecs/cluster
48 3 2
ec2-cdk-stack.ts
in typescript/ec2-instance/lib
53 1 2
index.ts
in typescript/api-cors-lambda-crud-dynamodb
104 8 2
StepfunctionsJobPollerStack.cs
in csharp/stepfunctions-job-poller/src/StepfunctionsJobPoller
54 1 2
api_eventbridge_lambda.py
in python/api-eventbridge-lambda/api_eventbridge_lambda
73 1 2
dbwrite.py
in python/lambda-ddb-mysql-etl-pipeline/lambda
110 5 2
app.py
in python/batch/batch-arm64-instance-type
36 1 2
app.py
in python/batch/batch-with-EC2
36 1 2
classic-load-balancer.go
in go/classic-load-balancer
50 3 1
cluster.go
in go/eks/cluster
54 3 1
ProjectStack.java
in java/codebuild/project/src/main/java/com/myorg
58 2 1
my-custom-resource.ts
in typescript/custom-resource-provider
28 1 1