aws-solutions / improving-forecast-accuracy-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 183 files with 9,635 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (854 lines of code)
    • 8 medium size files (2,622 lines of codeclsfd_ftr_w_mp_ins)
    • 18 small files (2,346 lines of code)
    • 156 very small files (3,813 lines of code)
0% | 8% | 27% | 24% | 39%
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% | 23% | 39%
yaml0% | 0% | 0% | 52% | 47%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
glue/jobs0% | 99% | 0% | 0% | <1%
infrastructure/forecast0% | 0% | 47% | 25% | 27%
forecast-shared/shared0% | 0% | 23% | 39% | 36%
cdk_solution_helper_py/helpers_cdk0% | 0% | 22% | 20% | 57%
synthetic0% | 0% | 77% | 22% | <1%
example/5-taxi0% | 0% | 0% | 100% | 0%
cdk_solution_helper_py/helpers_common0% | 0% | 0% | 0% | 100%
lambdas/sns0% | 0% | 0% | 0% | 100%
example/2-overrides0% | 0% | 0% | 0% | 100%
example/3-different-algorithm0% | 0% | 0% | 0% | 100%
infrastructure0% | 0% | 0% | 0% | 100%
lambdas/notification0% | 0% | 0% | 0% | 100%
infrastructure/quicksight0% | 0% | 0% | 0% | 100%
lambdas/createforecast0% | 0% | 0% | 0% | 100%
lambdas/createpredictor0% | 0% | 0% | 0% | 100%
example/1-defaults0% | 0% | 0% | 0% | 100%
forecast-shared0% | 0% | 0% | 0% | 100%
lambdas/createdatasetgroup0% | 0% | 0% | 0% | 100%
lambdas/createquicksightanalysis0% | 0% | 0% | 0% | 100%
lambdas/createdatasetimportjob0% | 0% | 0% | 0% | 100%
lambdas/creategluetablename0% | 0% | 0% | 0% | 100%
notebook0% | 0% | 0% | 0% | 100%
lambdas0% | 0% | 0% | 0% | 100%
glue0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
forecast_etl.py
in source/glue/jobs
854 69
stack.py
in source/infrastructure/forecast
490 1
create_synthetic_data.py
in source/synthetic
428 30
config.py
in source/forecast-shared/shared
418 31
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
322 16
factory.py
in source/infrastructure/forecast/aws_lambda/policies
272 10
predictor.py
in source/forecast-shared/shared/Predictor
249 14
synthesizers.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
239 10
parameters.py
in source/infrastructure/forecast/forecast
204 1
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
173 10
forecast.py
in source/forecast-shared/shared/Forecast
168 9
dataset_group.py
in source/forecast-shared/shared/DatasetGroup
165 12
helpers.py
in source/forecast-shared/shared
164 22
template.py
in source/forecast-shared/shared/quicksight_custom_resources/util
145 10
policies.py
in source/infrastructure/forecast/etl
134 5
dataset.py
in source/forecast-shared/shared/Dataset
132 13
notebook.py
in source/infrastructure/forecast/sagemaker
132 3
config.yaml
in source/synthetic
126 -
downloader.py
in source/infrastructure/forecast/forecast
125 6
dataset.py
in source/forecast-shared/shared/quicksight_custom_resources/util
119 8
glue.py
in source/infrastructure/forecast/etl
118 1
solutionstep.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions
115 8
url_downloader.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/url_downloader/src/custom_resources
111 9
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
106 3
dataset_import_job.py
in source/forecast-shared/shared/Dataset
106 5
quicksight_application.py
in source/forecast-shared/shared/quicksight_custom_resources/util
104 11
forecast-defaults.yaml
in source/example/5-taxi
103 -
lifecycle_config.py
in source/infrastructure/forecast/sagemaker
97 5
analysis.py
in source/forecast-shared/shared/quicksight_custom_resources/util
92 5
quicksight_resource.py
in source/forecast-shared/shared/quicksight_custom_resources/util
90 8
quicksight.py
in source/forecast-shared/shared/quicksight_custom_resources/util
89 15
policies.py
in source/infrastructure/forecast/sagemaker
88 4
forecast-defaults.yaml
in source/example/2-overrides
85 -
url_downloader.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/url_downloader
84 3
handler.py
in source/lambdas/sns
84 9
forecast-defaults.yaml
in source/example/3-different-algorithm
84 -
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/java
83 2
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/java
82 3
tags.py
in source/forecast-shared/shared/Tags
82 7
dashboard.py
in source/forecast-shared/shared/quicksight_custom_resources/util
82 6
datasource.py
in source/forecast-shared/shared/quicksight_custom_resources/util
79 5
interfaces.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk
78 4
url_helper.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/url_helper
76 3
dataset_file.py
in source/forecast-shared/shared/Dataset
72 10
quicksight.py
in source/forecast-shared/shared/quicksight_custom_resources
67 6
name.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_name
66 3
notifications.py
in source/infrastructure/forecast/sns
66 5
metrics.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/solutions_metrics
65 1
sns.py
in source/infrastructure/forecast/aws_lambda/functions
61 5
hash.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/resource_hash
60 3
Files With Most Units (Top 20)
File# lines# units
forecast_etl.py
in source/glue/jobs
854 69
config.py
in source/forecast-shared/shared
418 31
create_synthetic_data.py
in source/synthetic
428 30
helpers.py
in source/forecast-shared/shared
164 22
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
322 16
quicksight.py
in source/forecast-shared/shared/quicksight_custom_resources/util
89 15
predictor.py
in source/forecast-shared/shared/Predictor
249 14
dataset.py
in source/forecast-shared/shared/Dataset
132 13
dataset_group.py
in source/forecast-shared/shared/DatasetGroup
165 12
quicksight_application.py
in source/forecast-shared/shared/quicksight_custom_resources/util
104 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
173 10
dataset_file.py
in source/forecast-shared/shared/Dataset
72 10
template.py
in source/forecast-shared/shared/quicksight_custom_resources/util
145 10
factory.py
in source/infrastructure/forecast/aws_lambda/policies
272 10
url_downloader.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/cfn_custom_resources/url_downloader/src/custom_resources
111 9
forecast.py
in source/forecast-shared/shared/Forecast
168 9
handler.py
in source/lambdas/sns
84 9
solutionstep.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/stepfunctions
115 8
dataset.py
in source/forecast-shared/shared/quicksight_custom_resources/util
119 8
Files With Long Lines (Top 20)

There are 20 files with lines longer than 120 characters. In total, there are 34 long lines.

File# lines# units# long lines
config.py
in source/forecast-shared/shared
418 31 6
bundling.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
173 10 3
quicksight_resource.py
in source/forecast-shared/shared/quicksight_custom_resources/util
90 8 3
parameters.py
in source/infrastructure/forecast/forecast
204 1 3
function.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/aws_lambda/python
106 3 2
build_s3_cdk_dist.py
in source/cdk_solution_helper_py/helpers_cdk/aws_solutions/cdk/scripts
322 16 2
config.py
in source/cdk_solution_helper_py/helpers_common/aws_solutions/core
51 7 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
53 2 1
dataset_import_job.py
in source/forecast-shared/shared/Dataset
106 5 1
dataset.py
in source/forecast-shared/shared/Dataset
132 13 1
handler.py
in source/lambdas/sns
84 9 1
deploy.py
in source/infrastructure
30 1 1
athena.py
in source/infrastructure/forecast/etl
30 1 1
glue.py
in source/infrastructure/forecast/etl
118 1 1
downloader.py
in source/infrastructure/forecast/forecast
125 6 1
policies.py
in source/infrastructure/forecast/sagemaker
88 4 1