aws-samples / amazon-personalize-samples
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 87 files with 3,659 lines of code.
    • 1 very long files (1,391 lines of code)
    • 0 long files (0 lines of code)
    • 2 medium size files (748 lines of codeclsfd_ftr_w_mp_ins)
    • 1 small files (112 lines of code)
    • 83 very small files (1,408 lines of code)
38% | 0% | 20% | 3% | 38%
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
yaml65% | 0% | 19% | 0% | 15%
py0% | 0% | 22% | 7% | 69%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
operations/ml_ops/personalize-step-functions70% | 0% | 0% | 0% | 29%
operations/streaming_events0% | 0% | 100% | 0% | 0%
data_science/diagnose0% | 0% | 100% | 0% | 0%
operations/filter_rotator/src0% | 0% | 0% | 68% | 31%
operations/ml_ops_ds_sdk/lambda0% | 0% | 0% | 0% | 100%
workshops/POC_in_a_box0% | 0% | 0% | 0% | 100%
workshops/POC_in_a_box/completed0% | 0% | 0% | 0% | 100%
operations/filter_rotator0% | 0% | 0% | 0% | 100%
operations/streaming_events/lambdas0% | 0% | 0% | 0% | 100%
workshops/Reinvent_20190% | 0% | 0% | 0% | 100%
data_science/offline_performance_evaluation0% | 0% | 0% | 0% | 100%
operations/lambda_examples0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
template.yaml
in next_steps/operations/ml_ops/personalize-step-functions
1391 -
template.yaml
in next_steps/operations/streaming_events
411 -
diagnose.py
in next_steps/data_science/diagnose
337 11
filter_rotator.py
in next_steps/operations/filter_rotator/src/filter_rotator_function
112 2
template.yaml
in next_steps/operations/filter_rotator
87 -
dataset.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-dataset
60 2
stepfunction_create_personalize_role.py
in next_steps/operations/ml_ops_ds_sdk/lambda
57 1
PersonalizePOCEE.yaml
in next_steps/workshops/POC_in_a_box/completed
55 -
PersonalizePOCEE.yaml
in next_steps/workshops/POC_in_a_box
55 -
template_evaluation.py
in next_steps/operations/filter_rotator/src/filter_rotator_function
50 12
putevents.js
in next_steps/operations/streaming_events/lambdas/putevents
45 -
filters.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-filters
44 2
campaign.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-campaign
43 1
PersonalizePOC.yaml
in next_steps/workshops/POC_in_a_box
41 -
PersonalizePOC.yaml
in next_steps/workshops/POC_in_a_box/completed
41 -
RI_PersonalizeWorkshop.yaml
in next_steps/workshops/Reinvent_2019
41 -
metrics.py
in next_steps/data_science/offline_performance_evaluation
41 6
stepfunction-create-schema.py
in next_steps/operations/ml_ops_ds_sdk/lambda
37 1
solution.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-solution
37 2
datasetimport.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/import-data
34 1
event_processor.py
in next_steps/operations/lambda_examples
32 2
parse.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/s3lambda
28 2
eventTracker.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/event-tracker
27 1
stepfunction-createdatasetimportjob.py
in next_steps/operations/ml_ops_ds_sdk/lambda
25 1
datasetgroup.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-datasetgroup
25 1
stepfunctioncreatedatasetimportjob.py
in next_steps/operations/ml_ops_ds_sdk/lambda
24 1
getRecommendations.py
in next_steps/operations/streaming_events/lambdas/getRecommendations
23 1
stepfunctioncreatedataset.py
in next_steps/operations/ml_ops_ds_sdk/lambda
21 1
stepfunction_getsolution_metric_create_campaign.py
in next_steps/operations/ml_ops_ds_sdk/lambda
20 1
stepfunction_select-recipe_create-solution.py
in next_steps/operations/ml_ops_ds_sdk/lambda
19 1
stepfunction_getRecommendations.py
in next_steps/operations/ml_ops_ds_sdk/lambda
19 1
stepfunction_waitforDatasetGroup.py
in next_steps/operations/ml_ops_ds_sdk/lambda
19 1
notify-delete.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify-delete
18 2
stepfunction_waitfordatasetimportjob.py
in next_steps/operations/ml_ops_ds_sdk/lambda
16 1
stepfunctioncreatedatagroup.py
in next_steps/operations/ml_ops_ds_sdk/lambda
16 1
stepfunction_waitforCampaign.py
in next_steps/operations/ml_ops_ds_sdk/lambda
15 1
list-solutions.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-solutions
15 1
list-solution-versions.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-solution-versions
15 1
list-datasets.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-datasets
15 1
list-campaigns.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-campaigns
15 1
list-trackers.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-trackers
15 1
stepfunction_create_solution_version.py
in next_steps/operations/ml_ops_ds_sdk/lambda
14 1
stepfunction_waitforSolutionVersion.py
in next_steps/operations/ml_ops_ds_sdk/lambda
14 1
actions.py
in next_steps/operations/ml_ops/personalize-step-functions/shared/python
14 2
notify.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify
13 2
delete-campaign.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-campaign
12 1
delete-datasetgroup.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-datasetgroup
12 1
delete-solution.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-solution
12 1
delete-dataset.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-dataset
12 1
wait-delete-datasetgroup.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-datasetgroup
10 1
Files With Most Units (Top 20)
File# lines# units
template_evaluation.py
in next_steps/operations/filter_rotator/src/filter_rotator_function
50 12
diagnose.py
in next_steps/data_science/diagnose
337 11
metrics.py
in next_steps/data_science/offline_performance_evaluation
41 6
event_processor.py
in next_steps/operations/lambda_examples
32 2
filter_rotator.py
in next_steps/operations/filter_rotator/src/filter_rotator_function
112 2
actions.py
in next_steps/operations/ml_ops/personalize-step-functions/shared/python
14 2
parse.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/s3lambda
28 2
solution.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-solution
37 2
notify-delete.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify-delete
18 2
filters.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-filters
44 2
dataset.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-dataset
60 2
notify.py
in next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify
13 2
getRecommendations.py
in next_steps/operations/streaming_events/lambdas/getRecommendations
23 1
stepfunction-createdatasetimportjob.py
in next_steps/operations/ml_ops_ds_sdk/lambda
25 1
stepfunction_select-recipe_create-solution.py
in next_steps/operations/ml_ops_ds_sdk/lambda
19 1
stepfunction_waitforCampaign.py
in next_steps/operations/ml_ops_ds_sdk/lambda
15 1
stepfunction_waitfordatasetimportjob.py
in next_steps/operations/ml_ops_ds_sdk/lambda
16 1
stepfunction_getsolution_metric_create_campaign.py
in next_steps/operations/ml_ops_ds_sdk/lambda
20 1
stepfunction_getRecommendations.py
in next_steps/operations/ml_ops_ds_sdk/lambda
19 1
stepfunctioncreatedatagroup.py
in next_steps/operations/ml_ops_ds_sdk/lambda
16 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
template.yaml
in next_steps/operations/filter_rotator
87 - 6
template.yaml
in next_steps/operations/streaming_events
411 - 5
filter_rotator.py
in next_steps/operations/filter_rotator/src/filter_rotator_function
112 2 2
event_processor.py
in next_steps/operations/lambda_examples
32 2 1
PersonalizePOCEE.yaml
in next_steps/workshops/POC_in_a_box/completed
55 - 1
PersonalizePOCEE.yaml
in next_steps/workshops/POC_in_a_box
55 - 1