aws-samples / aws-service-catalog-reference-architectures
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 154 files with 16,016 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (1,956 lines of code)
    • 20 medium size files (6,027 lines of codeclsfd_ftr_w_mp_ins)
    • 25 small files (3,739 lines of code)
    • 106 very small files (4,294 lines of code)
0% | 12% | 37% | 23% | 26%
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% | 27% | 49% | 16% | 6%
py0% | 35% | 0% | 34% | 30%
yml0% | 0% | 38% | 26% | 35%
cs0% | 0% | 0% | 0% | 100%
cshtml0% | 0% | 0% | 0% | 100%
c0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
asax0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
blog_content0% | 31% | 48% | 12% | 7%
security0% | 82% | 0% | 17% | 0%
labs0% | 0% | 31% | 22% | 46%
redshift0% | 0% | 100% | 0% | 0%
ecs0% | 0% | 90% | 0% | 9%
sagemaker0% | 0% | 60% | 17% | 22%
conformance_packs0% | 0% | 37% | 54% | 7%
serverless0% | 0% | 51% | 32% | 15%
bulkprovision0% | 0% | 0% | 73% | 26%
dynamodb0% | 0% | 0% | 63% | 36%
backup0% | 0% | 0% | 100% | 0%
iam0% | 0% | 0% | 15% | 84%
elasticbeanstalk0% | 0% | 0% | 0% | 100%
glue0% | 0% | 0% | 0% | 100%
codepipeline0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
portfolio.yaml
in blog_content/securing-third-party-data-and-ml-apps
769 -
SageMaker-Notebook-Product.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
664 -
index.py
in security/guardduty
523 10
redshift-commands.yml
in redshift
478 -
s3_iam_kms.yaml
in blog_content/securing-third-party-data-and-ml-apps
457 -
fargate-private-vpc.yml
in ecs
397 -
emr-backed-notebook-instance.yml
in sagemaker
386 -
web-server-deployment-cfn.yml
in labs/preventive-control
369 -
network.yaml
in blog_content/securing-third-party-data-and-ml-apps
364 -
service-catalog-product-resources-cfn.yml
in labs/preventive-control
361 -
sc_OperationalBestPracticesForPCI-DSS.yaml
in conformance_packs
330 -
Network.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
320 -
redshift-cluster-vpc.yml
in redshift
290 -
sc-sub.yml
in labs/xacct-pipeline
270 -
sc-serverless-lambda.yml
in serverless
268 -
SC-Notebook-Constrain.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
246 -
portfolio.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
238 -
LambdaURL.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
214 -
service-catalog-networks-cfn.yml
in labs/preventive-control
211 -
start.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
210 -
sc-asc.yml
in labs/preventive-control/products/asc
207 -
admin-setup-app.yaml
in blog_content/securing-third-party-data-and-ml-apps
206 -
VPC.yml
in labs/xacct-pipeline/master
205 -
__init__.py
in bulkprovision/bulkmonitor
194 4
sc_AWSControlTowerDetectiveGuardrails.yaml
in conformance_packs
184 -
sc-elasticsearch.yml
in labs/preventive-control/products/elasticsearch
184 -
sc-dynamodb-ra.yml
in dynamodb
183 -
bulkmonitor-stepfunction.yml
in bulkprovision/templates
176 -
adx.yaml
in blog_content/securing-third-party-data-and-ml-apps
172 -
sc_conformancepacks_prerequisites.yml
in conformance_packs
171 -
sc-portfolio-serverless.yml
in serverless
169 -
Watcher.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
166 -
backup-tagoptions.yml
in backup
164 -
code9-workshop-environment-cfn.yml
in labs/preventive-control
161 -
__init__.py
in bulkprovision/common
157 21
sc-product-deployment.yml
in labs/preventive-control/deployment-cfn
157 -
deployment-cfn.yml
in labs/preventive-control
149 -
__init__.py
in bulkprovision/bulkexecute
147 4
iam-user-cfn.yml
in labs/preventive-control
138 -
sc-sqs.yml
in labs/preventive-control/products/sqs
134 -
sc-master.yml
in labs/xacct-pipeline
132 -
application.yaml
in blog_content/securing-third-party-data-and-ml-apps
127 -
sc-serverless-launchrole.yml
in iam
126 -
sc_OperationalBestPracticesForAWSIdentityAndAccessManagement.yaml
in conformance_packs
120 -
deploy_guardduty.yml
in security/guardduty
110 -
aws-marketplace-model-deployment.yml
in sagemaker
109 -
CMK-KMS.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
105 -
service-catalog-lambdas-cfn.yml
in labs/preventive-control
104 -
mlmodel.yaml
in blog_content/securing-third-party-data-and-ml-apps
95 -
sc-alb-target.yml
in labs/preventive-control/products/alb
94 -
Files With Most Units (Top 20)
File# lines# units
__init__.py
in bulkprovision/common
157 21
index.py
in security/guardduty
523 10
clustertest.py
in labs/CalcAPI
60 7
lambda_function.py
in bulkprovision
29 6
remotetest.py
in labs/CalcAPI
79 6
lambda_email.py
in bulkprovision
91 5
testlambdas.py
in bulkprovision
51 4
__init__.py
in bulkprovision/bulkexecute
147 4
__init__.py
in bulkprovision/bulkmonitor
194 4
application.py
in labs/CalcAPI/flask
22 4
test.py
in bulkprovision
38 3
HomeController.cs
in labs/SampleDotNetApplication/Controllers
25 3
calc.c
in labs/CalcAPI/src
42 3
test.c
in labs/CalcAPI
37 3
__init__.py
in labs/CalcAPI/pycalc
25 2
lambda_startSF.py
in bulkprovision
32 1
RouteConfig.cs
in labs/SampleDotNetApplication/App_Start
21 1
FilterConfig.cs
in labs/SampleDotNetApplication/App_Start
12 1
BundleConfig.cs
in labs/SampleDotNetApplication/App_Start
22 1
Global.asax.cs
in labs/SampleDotNetApplication
20 1
Files With Long Lines (Top 20)

There are 52 files with lines longer than 120 characters. In total, there are 143 long lines.

File# lines# units# long lines
sc_AWSControlTowerDetectiveGuardrails.yaml
in conformance_packs
184 - 14
redshift-commands.yml
in redshift
478 - 12
web-server-deployment-cfn.yml
in labs/preventive-control
369 - 9
SageMaker-Notebook-Product.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
664 - 7
__init__.py
in bulkprovision/bulkmonitor
194 4 6
__init__.py
in bulkprovision/bulkexecute
147 4 4
sc_conformancepacks_prerequisites.yml
in conformance_packs
171 - 4
deployment-cfn.yml
in labs/preventive-control
149 - 4
test.py
in bulkprovision
38 3 3
redshift-cluster-vpc.yml
in redshift
290 - 3
LambdaURL.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
214 - 3
Watcher.yaml
in blog_content/sagemaker-selfservice/sagemaker-selfservice-url
166 - 3
mlmodel.yaml
in blog_content/securing-third-party-data-and-ml-apps
95 - 3
notebook.yaml
in blog_content/securing-third-party-data-and-ml-apps
66 - 3
admin-setup-app.yaml
in blog_content/securing-third-party-data-and-ml-apps
206 - 3
network.yaml
in blog_content/securing-third-party-data-and-ml-apps
364 - 3
portfolio.yaml
in blog_content/securing-third-party-data-and-ml-apps
769 - 3
buildspec-deploy-dotnet.yml
in elasticbeanstalk/codepipeline
13 - 3
buildspec-deploy-dotnet.yml
in labs/SampleDotNetApplication/codepipeline
13 - 3
cshtml
Index.cshtml
in labs/SampleDotNetApplication/Views/Home
29 - 3