awslabs / aws-solutions-constructs
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 170 files with 10,068 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 7 medium size files (1,668 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,474 lines of code)
    • 145 very small files (5,926 lines of code)
0% | 0% | 16% | 24% | 58%
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
ts0% | 0% | 14% | 26% | 58%
js0% | 0% | 34% | 16% | 48%
py0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
source/patterns/@aws-solutions-constructs0% | 0% | 13% | 27% | 59%
source/use_cases/aws-serverless-image-handler0% | 0% | 54% | 25% | 19%
source/tools/cdk-integ-tools0% | 0% | 100% | 0% | 0%
source/use_cases/aws-restaurant-management-demo0% | 0% | 0% | 22% | 77%
source/use_cases/aws-serverless-web-app0% | 0% | 0% | 0% | 100%
source/use_cases/aws-custom-glue-etl0% | 0% | 0% | 0% | 100%
source/use_cases/aws-s3-static-website0% | 0% | 0% | 0% | 100%
deployment/v20% | 0% | 0% | 0% | 100%
source/use_cases0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
deployment0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sagemaker-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
353 8
integ-helpers.ts
in source/tools/cdk-integ-tools/lib
266 21
fargate-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
222 5
apigateway-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
218 8
thumbor-mapping.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
205 6
image-request.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
203 9
alb-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
201 6
image-handler.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
191 9
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-iot/lib
179 2
elasticsearch-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
178 2
vpc-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
158 2
input-validation.ts
in source/patterns/@aws-solutions-constructs/core/lib
154 1
cloudfront-distribution-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
153 8
manager-stack.ts
in source/use_cases/aws-restaurant-management-demo/lib
150 1
glue-job-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
142 9
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-dynamodb/lib
138 2
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib
138 5
lambda-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
136 4
index.ts
in source/patterns/@aws-solutions-constructs/aws-kinesisfirehose-s3/lib
122 1
utils.ts
in source/patterns/@aws-solutions-constructs/core/lib
117 9
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-sqs/lib
106 2
index.ts
in source/patterns/@aws-solutions-constructs/aws-kinesisstreams-gluejob/lib
105 2
s3-bucket-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
104 4
sqs-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
102 3
index.ts
in source/patterns/@aws-solutions-constructs/aws-alb-fargate/lib
101 1
index.ts
in source/use_cases/aws-serverless-image-handler/lib
100 5
sns-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
96 2
step-function-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
96 2
index.ts
in source/patterns/@aws-solutions-constructs/aws-kinesisstreams-kinesisfirehose-s3/lib
90 2
cognito-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
89 4
index.js
in source/use_cases/aws-serverless-web-app/lib/lambda/business-logic
84 4
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-sagemakerendpoint/lib
83 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-alb-lambda/lib
82 1
cloudfront-distribution-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
80 4
transform.py
in source/use_cases/aws-custom-glue-etl/etl
80 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-lambda-s3/lib
79 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-eventbridge-kinesisfirehose-s3/lib
77 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-route53-alb/lib
77 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-s3-sqs/lib
77 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-cloudfront-mediastore/lib
77 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-s3-stepfunctions/lib
74 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-lambda-dynamodb/lib
73 1
serverless-backend-stack.ts
in source/use_cases/aws-serverless-web-app/lib
73 1
align-version.js
in deployment/v2
71 3
index.ts
in source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib
70 2
lambda-event-source-mapping-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
70 3
index.ts
in source/patterns/@aws-solutions-constructs/aws-dynamodbstreams-lambda-elasticsearch-kibana/lib
69 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-eventbridge-sqs/lib
68 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-sns-sqs/lib
68 1
index.ts
in source/patterns/@aws-solutions-constructs/aws-lambda-sqs/lib
66 1
Files With Most Units (Top 20)
File# lines# units
integ-helpers.ts
in source/tools/cdk-integ-tools/lib
266 21
utils.ts
in source/patterns/@aws-solutions-constructs/core/lib
117 9
glue-job-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
142 9
image-request.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
203 9
image-handler.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
191 9
sagemaker-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
353 8
apigateway-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
218 8
cloudfront-distribution-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
153 8
alb-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
201 6
thumbor-mapping.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
205 6
generate_data.py
in source/use_cases/aws-custom-glue-etl/stream-producer
59 6
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib
138 5
override-warning-service.ts
in source/patterns/@aws-solutions-constructs/core/lib
43 5
fargate-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
222 5
fargate-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
39 5
apigateway-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
41 5
index.ts
in source/use_cases/aws-serverless-image-handler/lib
100 5
copy_s3_objects.py
in source/use_cases/aws-s3-static-website/lib/lambda
50 5
copy_s3_objects.py
in source/use_cases/aws-serverless-web-app/lib/lambda/static-content
49 5
sagemaker-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
51 4
Files With Long Lines (Top 20)

There are 54 files with lines longer than 120 characters. In total, there are 123 long lines.

File# lines# units# long lines
image-request.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
203 9 11
integ-helpers.ts
in source/tools/cdk-integ-tools/lib
266 21 8
glue-job-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
142 9 7
cloudfront-distribution-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
153 8 7
input-validation.ts
in source/patterns/@aws-solutions-constructs/core/lib
154 1 7
lambda-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
136 4 5
apigateway-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
218 8 5
lambda-event-source-mapping-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
70 3 5
index.ts
in source/patterns/@aws-solutions-constructs/aws-route53-alb/lib
77 1 4
alb-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
201 6 4
cloudwatch-log-group-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
31 1 3
elasticsearch-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
178 2 3
index.ts
in source/patterns/@aws-solutions-constructs/aws-kinesisstreams-gluejob/lib
105 2 3
image-handler.js
in source/use_cases/aws-serverless-image-handler/lib/lambda/image-handler
191 9 3
index.ts
in source/patterns/@aws-solutions-constructs/aws-cognito-apigateway-lambda/lib
70 2 2
index.ts
in source/patterns/@aws-solutions-constructs/aws-s3-sqs/lib
77 1 2
index.ts
in source/patterns/@aws-solutions-constructs/aws-apigateway-kinesisstreams/lib
138 5 2
s3-bucket-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
104 4 2
fargate-helper.ts
in source/patterns/@aws-solutions-constructs/core/lib
222 5 2
apigateway-defaults.ts
in source/patterns/@aws-solutions-constructs/core/lib
41 5 2