aws-samples / aws-bikenow-demo
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 62 files with 6,299 lines of code.
    • 1 very long files (1,134 lines of code)
    • 2 long files (1,369 lines of code)
    • 3 medium size files (1,015 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (625 lines of code)
    • 52 very small files (2,156 lines of code)
18% | 21% | 16% | 9% | 34%
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
yaml35% | 25% | 31% | 3% | 2%
tsx0% | 45% | 0% | 13% | 40%
css0% | 0% | 0% | 57% | 42%
js0% | 0% | 0% | 55% | 44%
py0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates36% | 27% | 33% | 0% | 2%
assets/src0% | 32% | 0% | 21% | 46%
lambdas/api_get_quicksight_url0% | 0% | 0% | 95% | 4%
ROOT0% | 0% | 0% | 100% | 0%
lambdas/setup_upload_artifacts0% | 0% | 0% | 0% | 100%
lambdas/setup_rds_ddl0% | 0% | 0% | 0% | 100%
lambdas/setup_datawarehouse_ddl0% | 0% | 0% | 0% | 100%
lambdas/setup_update_config0% | 0% | 0% | 0% | 100%
lambdas/setup_empty_bucket0% | 0% | 0% | 0% | 100%
lambdas/api_post_rides0% | 0% | 0% | 0% | 100%
lambdas/api_get_rides0% | 0% | 0% | 0% | 100%
lambdas/api_predict_station_status0% | 0% | 0% | 0% | 100%
lambdas/stream_station_review_to_s30% | 0% | 0% | 0% | 100%
lambdas/api_get_reviews0% | 0% | 0% | 0% | 100%
lambdas/stream_station_status_to_es0% | 0% | 0% | 0% | 100%
lambdas/api_search_stations0% | 0% | 0% | 0% | 100%
lambdas/api_post_reviews0% | 0% | 0% | 0% | 100%
lambdas/load_station_detail_to_ddb0% | 0% | 0% | 0% | 100%
lambdas/stream_station_status_to_s30% | 0% | 0% | 0% | 100%
lambdas/load_station_status_to_ddb0% | 0% | 0% | 0% | 100%
sample0% | 0% | 0% | 0% | 100%
assets/public0% | 0% | 0% | 0% | 100%
assets0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
database-template.yaml
in templates
1134 -
analytics-template.yaml
in templates
829 -
Home.tsx
in assets/src/modules/signup
540 15
codebuild-template.yaml
in templates
386 -
aiml-template.yaml
in templates
328 -
network-template.yaml
in templates
301 -
home.css
in assets/src/modules/signup
182 -
Signup.tsx
in assets/src/modules/signup
165 2
app.js
in lambdas/api_get_quicksight_url
151 1
template.yaml
in root
127 -
Reviews.tsx
in assets/src/modules/signup
100 4
index.py
in lambdas/setup_rds_ddl
97 2
index.js
in lambdas/setup_update_config
95 7
setup-template.yaml
in templates
90 -
Login.tsx
in assets/src/modules/signup
89 1
index.py
in lambdas/setup_datawarehouse_ddl
84 2
registerServiceWorker.ts
in assets/src
81 4
App.tsx
in assets/src
80 3
glue_load_station_detail_redshift.py
in lambdas/setup_upload_artifacts/artifacts
73 3
glue_load_station_review_redshift.py
in lambdas/setup_upload_artifacts/artifacts
69 3
index.py
in lambdas/api_post_rides
67 2
glue_load_station_history_redshift.py
in lambdas/setup_upload_artifacts/artifacts
65 3
index.py
in lambdas/api_get_rides
65 2
Rides.tsx
in assets/src/modules/signup
60 4
glue_unload_station_history_s3.py
in lambdas/setup_upload_artifacts/artifacts
60 3
index.py
in lambdas/api_predict_station_status
56 3
Embed.tsx
in assets/src/modules/report
49 1
index.py
in lambdas/stream_station_review_to_s3
49 2
index.py
in lambdas/api_get_reviews
48 2
index.py
in lambdas/stream_station_status_to_es
48 2
App.css
in assets/src
45 -
index.py
in lambdas/setup_empty_bucket
43 1
index.py
in lambdas/api_search_stations
41 1
index.py
in lambdas/setup_upload_artifacts
41 1
index.tsx
in assets/src
39 -
service-worker.ts
in assets/src
38 -
index.py
in lambdas/api_post_reviews
35 1
index.py
in lambdas/load_station_detail_to_ddb
34 1
index.py
in lambdas/stream_station_status_to_s3
33 2
index.py
in lambdas/load_station_status_to_ddb
32 1
__init__.py
in lambdas/setup_datawarehouse_ddl/cfnresponse
29 1
__init__.py
in lambdas/setup_rds_ddl/cfnresponse
29 1
__init__.py
in lambdas/setup_upload_artifacts/cfnresponse
29 1
__init__.py
in lambdas/setup_empty_bucket/cfnresponse
29 1
Report.tsx
in assets/src/modules/report
24 1
Routes.tsx
in assets/src
24 -
login.css
in assets/src/modules/signup
20 -
seed_reviews.py
in sample
18 -
config.js
in assets/src
17 -
reviews.css
in assets/src/modules/signup
17 -
Files With Most Units (Top 20)
File# lines# units
Home.tsx
in assets/src/modules/signup
540 15
index.js
in lambdas/setup_update_config
95 7
registerServiceWorker.ts
in assets/src
81 4
Rides.tsx
in assets/src/modules/signup
60 4
Reviews.tsx
in assets/src/modules/signup
100 4
App.tsx
in assets/src
80 3
index.py
in lambdas/api_predict_station_status
56 3
glue_unload_station_history_s3.py
in lambdas/setup_upload_artifacts/artifacts
60 3
glue_load_station_review_redshift.py
in lambdas/setup_upload_artifacts/artifacts
69 3
glue_load_station_detail_redshift.py
in lambdas/setup_upload_artifacts/artifacts
73 3
glue_load_station_history_redshift.py
in lambdas/setup_upload_artifacts/artifacts
65 3
Signup.tsx
in assets/src/modules/signup
165 2
index.py
in lambdas/setup_datawarehouse_ddl
84 2
index.py
in lambdas/api_get_reviews
48 2
index.py
in lambdas/stream_station_status_to_es
48 2
index.py
in lambdas/api_post_rides
67 2
index.py
in lambdas/setup_rds_ddl
97 2
index.py
in lambdas/api_get_rides
65 2
index.py
in lambdas/stream_station_status_to_s3
33 2
index.py
in lambdas/stream_station_review_to_s3
49 2
Files With Long Lines (Top 20)

There are 24 files with lines longer than 120 characters. In total, there are 57 long lines.

File# lines# units# long lines
Home.tsx
in assets/src/modules/signup
540 15 8
database-template.yaml
in templates
1134 - 6
aiml-template.yaml
in templates
328 - 5
analytics-template.yaml
in templates
829 - 5
index.py
in lambdas/setup_datawarehouse_ddl
84 2 4
codebuild-template.yaml
in templates
386 - 3
index.py
in lambdas/setup_rds_ddl
97 2 3
index.py
in lambdas/api_predict_station_status
56 3 3
index.py
in lambdas/api_get_rides
65 2 3
template.yaml
in root
127 - 2
index.py
in lambdas/api_post_rides
67 2 2
Signup.tsx
in assets/src/modules/signup
165 2 1
Reviews.tsx
in assets/src/modules/signup
100 4 1
Login.tsx
in assets/src/modules/signup
89 1 1
index.py
in lambdas/api_get_reviews
48 2 1
index.py
in lambdas/stream_station_status_to_es
48 2 1
index.py
in lambdas/api_search_stations
41 1 1
glue_unload_station_history_s3.py
in lambdas/setup_upload_artifacts/artifacts
60 3 1
glue_load_station_review_redshift.py
in lambdas/setup_upload_artifacts/artifacts
69 3 1
glue_load_station_detail_redshift.py
in lambdas/setup_upload_artifacts/artifacts
73 3 1