aws-samples / amazon-frauddetector-mlops-multiaccount-cdk
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 53 files with 1,624 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (222 lines of code)
    • 51 very small files (1,402 lines of code)
0% | 0% | 0% | 13% | 86%
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% | 0% | 0% | 14% | 85%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/core0% | 0% | 0% | 32% | 67%
infra/src/stages0% | 0% | 0% | 33% | 66%
src0% | 0% | 0% | 0% | 100%
infra/src/custom_constructs0% | 0% | 0% | 0% | 100%
infra/src0% | 0% | 0% | 0% | 100%
infra/src/lambda_poller0% | 0% | 0% | 0% | 100%
src/features0% | 0% | 0% | 0% | 100%
infra/src/stacks0% | 0% | 0% | 0% | 100%
build0% | 0% | 0% | 0% | 100%
src/rules0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
fraud_detector_utils.py
in src/core
115 7
train_stage_codebuild_long_polling.py
in infra/src/stages
107 6
feature_variables_dynamic.py
in src/features
87 7
deploy_stage_codebuild.py
in infra/src/stages
75 6
main_demo_data_transformer.py
in src
74 11
fraud_detector_model_based_deploy.py
in src/core
74 4
lambda_function.py
in infra/src/lambda_poller
71 4
fraud_detector_undeploy.py
in src/core
70 6
fraud_detector_train.py
in src/core
57 3
ml_pipeline_construct.py
in infra/src/custom_constructs
56 4
app_config_parser.py
in infra/src
53 5
tool_account_fd_role_construct.py
in infra/src/custom_constructs
47 1
feature_variables_demo.py
in src
44 6
app_deploy_config.py
in infra/src
40 3
main_demo_fraud_detector_train.py
in src
39 1
app.py
in infra/src
38 2
generic_stage_codebuild.py
in infra/src/stages
35 1
ci_pipeline_construct.py
in infra/src/custom_constructs
35 1
main_demo_fraud_detector_deploy.py
in src
33 1
buildspec.train.yml
in build
32 -
fraud_detector_event.py
in src/core
27 3
repo_action_bitbucket.py
in infra/src/stages
26 1
detector_rule_model_score_no_threshold.py
in src/rules
25 6
buildspec.build.yml
in build
24 -
environment_bootstrap_stack.py
in infra/src/stacks
24 1
detector_rule_model_score_positive.py
in src/rules
23 6
main_demo_fraud_detector_undeploy.py
in src
23 1
approval_stage.py
in infra/src/stages
22 3
buildspec.deploy.yml
in build
20 -
repo_action_codecommit.py
in infra/src/stages
20 1
train_stage_base.py
in infra/src/stages
19 3
deploy_stage_base.py
in infra/src/stages
19 3
frauddetector_poller.py
in infra/src/lambda_poller
18 1
data_stack.py
in infra/src/stacks
17 1
ci_pipeline_stack.py
in infra/src/stacks
17 1
data_bucket_construct.py
in infra/src/custom_constructs
15 1
detector_rule_base.py
in src/rules
14 5
fraud_detector_service_role_construct.py
in infra/src/custom_constructs
14 1
fraud_detector_role_stack.py
in infra/src/stacks
12 1
machine_learning_pipeline_stack.py
in infra/src/stacks
11 1
train_factory_locator.py
in infra/src
10 1
repo_factory_locator.py
in infra/src
10 1
deploy_factory_locator.py
in infra/src
10 1
fraud_detector_deploy_base.py
in src/core
6 1
feature_variables_base.py
in src/features
5 2
base_poller.py
in infra/src/lambda_poller
4 1
__init__.py
in src
1 -
__init__.py
in src/rules
1 -
__init__.py
in src/core
1 -
__init__.py
in infra/src
1 -
Files With Most Units (Top 20)
File# lines# units
main_demo_data_transformer.py
in src
74 11
feature_variables_dynamic.py
in src/features
87 7
fraud_detector_utils.py
in src/core
115 7
detector_rule_model_score_positive.py
in src/rules
23 6
detector_rule_model_score_no_threshold.py
in src/rules
25 6
fraud_detector_undeploy.py
in src/core
70 6
feature_variables_demo.py
in src
44 6
train_stage_codebuild_long_polling.py
in infra/src/stages
107 6
deploy_stage_codebuild.py
in infra/src/stages
75 6
detector_rule_base.py
in src/rules
14 5
app_config_parser.py
in infra/src
53 5
fraud_detector_model_based_deploy.py
in src/core
74 4
lambda_function.py
in infra/src/lambda_poller
71 4
ml_pipeline_construct.py
in infra/src/custom_constructs
56 4
fraud_detector_train.py
in src/core
57 3
fraud_detector_event.py
in src/core
27 3
app_deploy_config.py
in infra/src
40 3
train_stage_base.py
in infra/src/stages
19 3
deploy_stage_base.py
in infra/src/stages
19 3
approval_stage.py
in infra/src/stages
22 3
Files With Long Lines (Top 10)

There are 10 files with lines longer than 120 characters. In total, there are 19 long lines.

File# lines# units# long lines
train_stage_codebuild_long_polling.py
in infra/src/stages
107 6 5
deploy_stage_codebuild.py
in infra/src/stages
75 6 4
ml_pipeline_construct.py
in infra/src/custom_constructs
56 4 2
ci_pipeline_stack.py
in infra/src/stacks
17 1 2
buildspec.train.yml
in build
32 - 1
buildspec.deploy.yml
in build
20 - 1
repo_action_codecommit.py
in infra/src/stages
20 1 1
approval_stage.py
in infra/src/stages
22 3 1
environment_bootstrap_stack.py
in infra/src/stacks
24 1 1
data_stack.py
in infra/src/stacks
17 1 1