aws-samples / amazon-sagemaker-safe-deployment-pipeline
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 22 files with 2,865 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (929 lines of code)
    • 4 medium size files (1,211 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (104 lines of code)
    • 16 very small files (621 lines of code)
0% | 32% | 42% | 3% | 21%
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
yml0% | 52% | 32% | 5% | 9%
py0% | 0% | 58% | 0% | 41%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT0% | 81% | 18% | 0% | <1%
model0% | 0% | 87% | 0% | 12%
assets0% | 0% | 76% | 0% | 23%
custom_resource0% | 0% | 40% | 16% | 42%
api0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Longest Files (Top 22)
File# lines# units
pipeline.yml
in root
929 -
run_pipeline.py
in model
386 10
deploy-model-prd.yml
in assets
363 -
sagemaker_suggest_baseline.py
in custom_resource
257 15
studio.yml
in root
205 -
sagemaker-custom-resource.yml
in custom_resource
104 -
sagemaker_training_job.py
in custom_resource
94 10
sagemaker_query_drift.py
in custom_resource
72 4
post_traffic_hook.py
in api
59 2
buildspec.yml
in model
57 -
pre_traffic_hook.py
in api
54 1
sagemaker_create_experiment.py
in custom_resource
50 1
deploy-model-dev.yml
in assets
45 -
app.py
in api
44 1
suggest-baseline.yml
in assets
39 -
sagemaker_add_transform_header.py
in custom_resource
30 1
training-job.yml
in assets
30 -
sagemaker_query_training.py
in custom_resource
24 1
set_kernelspec.py
in scripts
18 1
pyproject.toml
in root
3 -
__init__.py
in custom_resource
1 -
__init__.py
in api
1 -
Files With Most Units (Top 11)
File# lines# units
sagemaker_suggest_baseline.py
in custom_resource
257 15
sagemaker_training_job.py
in custom_resource
94 10
run_pipeline.py
in model
386 10
sagemaker_query_drift.py
in custom_resource
72 4
post_traffic_hook.py
in api
59 2
sagemaker_create_experiment.py
in custom_resource
50 1
sagemaker_query_training.py
in custom_resource
24 1
sagemaker_add_transform_header.py
in custom_resource
30 1
app.py
in api
44 1
pre_traffic_hook.py
in api
54 1
set_kernelspec.py
in scripts
18 1
Files With Long Lines (Top 6)

There are 6 files with lines longer than 120 characters. In total, there are 16 long lines.

File# lines# units# long lines
deploy-model-prd.yml
in assets
363 - 7
buildspec.yml
in model
57 - 3
suggest-baseline.yml
in assets
39 - 2
pipeline.yml
in root
929 - 2
training-job.yml
in assets
30 - 1
deploy-model-dev.yml
in assets
45 - 1