aws-solutions / maintaining-personalized-experiences-with-machine-learning
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 188 files with 9,104 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (813 lines of code)
    • 9 medium size files (2,543 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,080 lines of code)
    • 170 very small files (4,668 lines of code)
0% | 8% | 27% | 11% | 51%
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% | 9% | 28% | 11% | 50%
java0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws_lambda/shared0% | 47% | 28% | 0% | 24%
infrastructure/personalize0% | 0% | 26% | 22% | 50%
cdk_solution_helper_py/helpers_cdk0% | 0% | 25% | 19% | 54%
scheduler/common0% | 0% | 71% | 0% | 28%
scheduler/cdk0% | 0% | 41% | 0% | 58%
cdk_solution_helper_py/helpers_common0% | 0% | 0% | 0% | 100%
aws_lambda/sns_notification0% | 0% | 0% | 0% | 100%
aws_lambda/s3_event0% | 0% | 0% | 0% | 100%
aws_lambda/create_batch_inference_job0% | 0% | 0% | 0% | 100%
aws_lambda/create_solution0% | 0% | 0% | 0% | 100%
infrastructure0% | 0% | 0% | 0% | 100%
aws_lambda/create_batch_segment_job0% | 0% | 0% | 0% | 100%
aws_lambda/create_campaign0% | 0% | 0% | 0% | 100%
aws_lambda/create_solution_version0% | 0% | 0% | 0% | 100%
aws_lambda/create_dataset_group0% | 0% | 0% | 0% | 100%
aws_lambda/create_dataset_import_job0% | 0% | 0% | 0% | 100%
aws_lambda/create_recommender0% | 0% | 0% | 0% | 100%
aws_lambda/create_filter0% | 0% | 0% | 0% | 100%
aws_lambda/create_dataset0% | 0% | 0% | 0% | 100%
aws_lambda/create_event_tracker0% | 0% | 0% | 0% | 100%
aws_lambda/create_schema0% | 0% | 0% | 0% | 100%
aws_lambda/create_config0% | 0% | 0% | 0% | 100%
aws_lambda/prepare_input0% | 0% | 0% | 0% | 100%
aws_lambda/create_timestamp0% | 0% | 0% | 0% | 100%
aws_lambda0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
personalize_service.py
in source/aws_lambda/shared
813 52
stack.py
in source/infrastructure/personalize
454 1
solution_fragment.py
in source/infrastructure/personalize/step_functions
331 3
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
301 16
construct.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk
301 11
sfn_middleware.py
in source/aws_lambda/shared
261 13
synthesizers.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
239 10
service_model.py
in source/aws_lambda/shared/personalize
224 15
base.py
in source/scheduler/common/aws_solutions/scheduler/common
221 14
scheduler_cli.py
in source/scheduler/common/aws_solutions/scheduler/common/scripts
211 14
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
171 10
batch_inference_jobs_fragment.py
in source/infrastructure/personalize/step_functions
150 3
batch_segment_jobs_fragment.py
in source/infrastructure/personalize/step_functions
148 3
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
133 6
create_dataset_group.py
in source/infrastructure/personalize/aws_lambda/functions
133 2
dashboard.py
in source/infrastructure/personalize/cloudwatch
124 3
solutionstep.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions
114 8
dataset_import_fragment.py
in source/infrastructure/personalize/step_functions
107 3
base.py
in source/aws_lambda/shared/notifiers
98 12
create_dataset_import_job.py
in source/infrastructure/personalize/aws_lambda/functions
97 2
handler.py
in source/aws_lambda/sns_notification
92 10
scheduled_solution_maintenance.py
in source/infrastructure/personalize/step_functions
92 1
create_batch_segment_job.py
in source/infrastructure/personalize/aws_lambda/functions
90 2
create_batch_inference_job.py
in source/infrastructure/personalize/aws_lambda/functions
90 2
handler.py
in source/aws_lambda/s3_event
89 4
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/java
83 2
interfaces.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
82 4
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/java
82 3
notifications.py
in source/infrastructure/personalize/sns
72 5
scheduled_dataset_import.py
in source/infrastructure/personalize/step_functions
71 1
scheduler_fragment.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk
68 3
filter_fragment.py
in source/infrastructure/personalize/step_functions
68 3
scheduler_fragment.py
in source/infrastructure/personalize/step_functions
68 3
name.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_name
66 3
metrics.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/solutions_metrics
65 1
schedule.py
in source/scheduler/common/aws_solutions/scheduler/common
63 3
handler.py
in source/aws_lambda/create_batch_inference_job
61 1
hash.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_hash
60 3
solution_fragment.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions
59 3
handler.py
in source/aws_lambda/create_solution
59 1
personalization_fragment.py
in source/infrastructure/personalize/step_functions
59 3
loader.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/helpers
56 3
handler.py
in source/aws_lambda/create_batch_segment_job
56 1
s3.py
in source/aws_lambda/shared
56 6
update_scheduled_task.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk/aws_lambda
55 2
create_scheduled_task.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk/aws_lambda
55 2
create_event_tracker.py
in source/infrastructure/personalize/aws_lambda/functions
55 2
setup.py
in source/cdk_solution_helper_py/helpers_cdk
54 1
layer.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
54 2
helpers.py
in source/cdk_solution_helper_py/helpers_common/aws_solutions/core
52 6
Files With Most Units (Top 20)
File# lines# units
personalize_service.py
in source/aws_lambda/shared
813 52
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
301 16
service_model.py
in source/aws_lambda/shared/personalize
224 15
base.py
in source/scheduler/common/aws_solutions/scheduler/common
221 14
scheduler_cli.py
in source/scheduler/common/aws_solutions/scheduler/common/scripts
211 14
sfn_middleware.py
in source/aws_lambda/shared
261 13
base.py
in source/aws_lambda/shared/notifiers
98 12
construct.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk
301 11
synthesizers.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
239 10
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
171 10
handler.py
in source/aws_lambda/sns_notification
92 10
solutionstep.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions
114 8
name.py
in source/aws_lambda/shared/resource
25 8
hash.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_hash/src/custom_resources
47 7
config.py
in source/cdk_solution_helper_py/helpers_common/aws_solutions/core
45 7
stack.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
48 6
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
133 6
helpers.py
in source/cdk_solution_helper_py/helpers_common/aws_solutions/core
52 6
s3.py
in source/aws_lambda/shared
56 6
ScheduleEvent.java
in source/scheduler/cdk/aws_solutions/scheduler/cdk/aws_lambda/get_next_scheduled_event/src/main/java/com/amazonaws/solutions/schedule_sfn_task
31 6
Files With Long Lines (Top 20)

There are 21 files with lines longer than 120 characters. In total, there are 42 long lines.

File# lines# units# long lines
personalize_service.py
in source/aws_lambda/shared
813 52 5
dataset_import_fragment.py
in source/infrastructure/personalize/step_functions
107 3 5
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
171 10 3
schedule.py
in source/scheduler/common/aws_solutions/scheduler/common
63 3 3
batch_inference_jobs_fragment.py
in source/infrastructure/personalize/step_functions
150 3 3
batch_segment_jobs_fragment.py
in source/infrastructure/personalize/step_functions
148 3 3
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
133 6 2
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
301 16 2
config.py
in source/cdk_solution_helper_py/helpers_common/aws_solutions/core
45 7 2
handler.py
in source/aws_lambda/sns_notification
92 10 2
construct.py
in source/scheduler/cdk/aws_solutions/scheduler/cdk
301 11 2
context.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
51 4 1
synthesizers.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
239 10 1
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/java
83 2 1
name.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_name/src/custom_resources
36 4 1
layer.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
54 2 1
service_model.py
in source/aws_lambda/shared/personalize
224 15 1
HandleScheduleEvent.java
in source/scheduler/cdk/aws_solutions/scheduler/cdk/aws_lambda/get_next_scheduled_event/src/main/java/com/amazonaws/solutions/schedule_sfn_task
36 3 1
base.py
in source/scheduler/common/aws_solutions/scheduler/common
221 14 1
stack.py
in source/infrastructure/personalize
454 1 1