aws-samples / aws-utility-meter-data-analytics-platform-cn
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 44 files with 5,805 lines of code.
    • 1 very long files (1,809 lines of code)
    • 2 long files (1,326 lines of code)
    • 3 medium size files (898 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (567 lines of code)
    • 34 very small files (1,205 lines of code)
31% | 22% | 15% | 9% | 20%
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
yaml87% | 0% | 12% | 0% | 0%
yml0% | 51% | 24% | 17% | 6%
py0% | 0% | 0% | 9% | 90%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates48% | 20% | 16% | 12% | 2%
templates/prediction0% | 61% | 30% | 0% | 8%
assets/functions/prepare_training0% | 0% | 0% | 99% | <1%
assets/glue/scripts0% | 0% | 0% | 0% | 100%
assets/functions/meter_forecast0% | 0% | 0% | 0% | 100%
assets/functions/prepare_batch0% | 0% | 0% | 0% | 100%
assets/functions/batch_anomaly_detection0% | 0% | 0% | 0% | 100%
assets/functions/redshift0% | 0% | 0% | 0% | 100%
assets/functions/upload_result0% | 0% | 0% | 0% | 100%
assets/functions/get_anomaly0% | 0% | 0% | 0% | 100%
assets/functions/check_initial_pipeline_run0% | 0% | 0% | 0% | 100%
assets/functions/outage_info0% | 0% | 0% | 0% | 100%
assets/functions/split_batch0% | 0% | 0% | 0% | 100%
assets/functions/state_topic_subscription0% | 0% | 0% | 0% | 100%
assets/functions/crawler0% | 0% | 0% | 0% | 100%
assets/functions/load_pipeline_parameter0% | 0% | 0% | 0% | 100%
Longest Files (Top 44)
File# lines# units
aws-vpc.template.yaml
in templates
1809 -
glue.yml
in templates
747 -
prediction.yml
in templates/prediction
579 -
workload.yml
in templates
350 -
prediction-api.yml
in templates/prediction
293 -
main.template.yaml
in templates
255 -
redshift.yml
in templates
173 -
copy-scripts.yml
in templates
162 -
copy-demo-data.yml
in templates
122 -
app.py
in assets/functions/prepare_training
110 5
app.py
in assets/functions/meter_forecast
99 5
app.py
in assets/functions/prepare_batch
90 4
transform_raw_to_clean_london.py
in assets/glue/scripts
85 5
glue-tables.yml
in templates
83 -
app.py
in assets/functions/batch_anomaly_detection
80 5
transform_raw_to_clean.py
in assets/glue/scripts
79 4
sagemaker.yml
in templates/prediction
76 -
app.py
in assets/functions/redshift/consumption
61 4
business_aggregate_monthly.py
in assets/glue/scripts
56 3
app.py
in assets/functions/upload_result
53 2
import_demo_data_to_redshift.py
in assets/glue/scripts
53 -
business_aggregate_weekly.py
in assets/glue/scripts
51 3
app.py
in assets/functions/get_anomaly
48 1
business_aggregate_daily.py
in assets/glue/scripts
43 2
app.py
in assets/functions/check_initial_pipeline_run
42 3
index.js
in assets/functions/outage_info
42 -
app.py
in assets/functions/split_batch
37 1
business_daily_to_redshift.py
in assets/glue/scripts
35 -
app.py
in assets/functions/state_topic_subscription
28 2
transform_clean_to_business_partition.py
in assets/glue/scripts
22 -
app.py
in assets/functions/load_pipeline_parameter
12 2
app.py
in assets/functions/crawler/trigger_glue_crawler
12 1
app.py
in assets/functions/crawler/get_glue_crawler_state
7 1
__init__.py
in assets/functions/batch_anomaly_detection
1 -
__init__.py
in assets/functions/upload_result
1 -
__init__.py
in assets/functions/get_anomaly
1 -
__init__.py
in assets/functions/state_topic_subscription
1 -
__init__.py
in assets/functions/prepare_batch
1 -
__init__.py
in assets/functions/meter_forecast
1 -
__init__.py
in assets/functions/crawler/trigger_glue_crawler
1 -
__init__.py
in assets/functions/crawler/get_glue_crawler_state
1 -
__init__.py
in assets/functions/prepare_training
1 -
__init__.py
in assets/functions/check_initial_pipeline_run
1 -
__init__.py
in assets/functions/split_batch
1 -
Files With Most Units (Top 18)
File# lines# units
app.py
in assets/functions/batch_anomaly_detection
80 5
app.py
in assets/functions/meter_forecast
99 5
app.py
in assets/functions/prepare_training
110 5
transform_raw_to_clean_london.py
in assets/glue/scripts
85 5
app.py
in assets/functions/redshift/consumption
61 4
app.py
in assets/functions/prepare_batch
90 4
transform_raw_to_clean.py
in assets/glue/scripts
79 4
app.py
in assets/functions/check_initial_pipeline_run
42 3
business_aggregate_monthly.py
in assets/glue/scripts
56 3
business_aggregate_weekly.py
in assets/glue/scripts
51 3
app.py
in assets/functions/upload_result
53 2
app.py
in assets/functions/state_topic_subscription
28 2
app.py
in assets/functions/load_pipeline_parameter
12 2
business_aggregate_daily.py
in assets/glue/scripts
43 2
app.py
in assets/functions/get_anomaly
48 1
app.py
in assets/functions/crawler/trigger_glue_crawler
12 1
app.py
in assets/functions/crawler/get_glue_crawler_state
7 1
app.py
in assets/functions/split_batch
37 1
Files With Long Lines (Top 20)

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

File# lines# units# long lines
aws-vpc.template.yaml
in templates
1809 - 16
workload.yml
in templates
350 - 8
main.template.yaml
in templates
255 - 8
app.py
in assets/functions/prepare_training
110 5 6
glue.yml
in templates
747 - 5
import_demo_data_to_redshift.py
in assets/glue/scripts
53 - 5
transform_raw_to_clean_london.py
in assets/glue/scripts
85 5 3
app.py
in assets/functions/upload_result
53 2 2
business_aggregate_monthly.py
in assets/glue/scripts
56 3 2
business_daily_to_redshift.py
in assets/glue/scripts
35 - 2
business_aggregate_weekly.py
in assets/glue/scripts
51 3 2
business_aggregate_daily.py
in assets/glue/scripts
43 2 2
transform_raw_to_clean.py
in assets/glue/scripts
79 4 2
prediction-api.yml
in templates/prediction
293 - 1
prediction.yml
in templates/prediction
579 - 1
app.py
in assets/functions/batch_anomaly_detection
80 5 1
app.py
in assets/functions/redshift/consumption
61 4 1
app.py
in assets/functions/prepare_batch
90 4 1
app.py
in assets/functions/meter_forecast
99 5 1
index.js
in assets/functions/outage_info
42 - 1