aws-samples / aws-serverless-workshops
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 223 files with 34,406 lines of code.
    • 3 very long files (19,261 lines of code)
    • 2 long files (1,122 lines of code)
    • 21 medium size files (6,487 lines of codeclsfd_ftr_w_mp_ins)
    • 15 small files (2,316 lines of code)
    • 182 very small files (5,220 lines of code)
55% | 3% | 18% | 6% | 15%
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
js97% | 0% | 0% | 0% | 2%
css25% | 12% | 46% | 0% | 14%
scss0% | 13% | 5% | 37% | 43%
yaml0% | 0% | 89% | 8% | 1%
yml0% | 0% | 72% | 0% | 27%
html0% | 0% | 0% | 25% | 74%
ts0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
MultiRegion/2_UI/src74% | 2% | 3% | 6% | 12%
ImageProcessing/workshop/themes24% | 11% | 29% | 5% | 29%
ImageProcessing/workshop/static0% | 0% | 100% | 0% | 0%
MachineLearning/1_DataProcessing/cloudformation0% | 0% | 100% | 0% | 0%
ImageProcessing/src/cloudformation0% | 0% | 100% | 0% | 0%
MultiRegion/1_API0% | 0% | 0% | 70% | 29%
ImageProcessing/src/lambda-functions0% | 0% | 0% | 0% | 100%
MachineLearning/3_Inference/cloudformation0% | 0% | 0% | 0% | 100%
MachineLearning/1_DataProcessing/assets0% | 0% | 0% | 0% | 100%
MultiRegion/2_UI/cfn0% | 0% | 0% | 0% | 100%
MachineLearning/1_DataProcessing/lambda-functions0% | 0% | 0% | 0% | 100%
ImageProcessing/workshop0% | 0% | 0% | 0% | 100%
MachineLearning/2_ModelBuilding/cloudformation0% | 0% | 0% | 0% | 100%
MachineLearning/3_Inference/lambda-functions0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
aws-cognito-sdk.js
in MultiRegion/2_UI/src/assets/js/aws
15988 977
amazon-cognito-identity.js
in MultiRegion/2_UI/src/assets/js/aws
2169 86
theme.css
in ImageProcessing/workshop/themes/learn/static/css
1104 -
_variables.scss
in MultiRegion/2_UI/src/styles/bootstrap
600 -
nucleus.css
in ImageProcessing/workshop/themes/learn/static/css
522 -
home.css
in MultiRegion/2_UI/src/styles/awsui/base-styles
425 -
sam.yaml
in ImageProcessing/workshop/static/cloudformation
417 -
mermaid.forest.css
in ImageProcessing/workshop/themes/learn/static/mermaid
340 -
setup-sam-eu-west-1.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-ap-southeast-2.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-ap-northeast-1.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-us-west-2.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-ap-south-1.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-ap-northeast-2.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-us-east-1.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
setup-sam-us-east-2.yaml
in ImageProcessing/workshop/static/cloudformation/legacy_templates
331 -
module-setup.yaml
in ImageProcessing/src/cloudformation
301 -
99_complete.yml
in MachineLearning/1_DataProcessing/cloudformation
293 -
mermaid.dark.css
in ImageProcessing/workshop/themes/learn/static/mermaid
262 -
1_lambda_functions.yml
in MachineLearning/1_DataProcessing/cloudformation
261 -
mermaid.css
in ImageProcessing/workshop/themes/learn/static/mermaid
260 -
utilities.css
in MultiRegion/2_UI/src/styles/awsui/base-styles
258 -
_forms.scss
in MultiRegion/2_UI/src/styles/bootstrap
243 -
theme-aws.css
in ImageProcessing/workshop/themes/learn/static/css
236 -
hugo-theme.css
in ImageProcessing/workshop/themes/learn/static/css
212 -
_normalize.scss
in MultiRegion/2_UI/src/styles/bootstrap
196 -
wild-rydes-api-primary-region.yaml
in MultiRegion/1_API
192 -
_card.scss
in MultiRegion/2_UI/src/styles/bootstrap
191 -
_custom-forms.scss
in MultiRegion/2_UI/src/styles/bootstrap
181 -
wild-rydes-api-failover-region.yaml
in MultiRegion/1_API
179 -
_navbar.scss
in MultiRegion/2_UI/src/styles/bootstrap
177 -
_reboot.scss
in MultiRegion/2_UI/src/styles/bootstrap
175 -
menu.html
in ImageProcessing/workshop/themes/learn/layouts/partials
144 -
_carousel.scss
in MultiRegion/2_UI/src/styles/bootstrap
137 -
_button-group.scss
in MultiRegion/2_UI/src/styles/bootstrap
137 -
_popover.scss
in MultiRegion/2_UI/src/styles/bootstrap
135 -
_buttons.scss
in MultiRegion/2_UI/src/styles/bootstrap
123 -
_dropdown.scss
in MultiRegion/2_UI/src/styles/bootstrap
122 -
_input-group.scss
in MultiRegion/2_UI/src/styles/bootstrap
121 -
header.html
in ImageProcessing/workshop/themes/learn/layouts/partials
106 -
_type.scss
in MultiRegion/2_UI/src/styles/bootstrap
99 -
_modal.scss
in MultiRegion/2_UI/src/styles/bootstrap
95 -
producer.go
in MachineLearning/1_DataProcessing/assets
91 5
_list-group.scss
in MultiRegion/2_UI/src/styles/bootstrap
90 -
_tables.scss
in MultiRegion/2_UI/src/styles/bootstrap
90 -
theme-green.css
in ImageProcessing/workshop/themes/learn/static/css
90 -
theme-blue.css
in ImageProcessing/workshop/themes/learn/static/css
90 -
theme-red.css
in ImageProcessing/workshop/themes/learn/static/css
90 -
children.html
in ImageProcessing/workshop/themes/learn/layouts/shortcodes
86 -
Files With Most Units (Top 20)
File# lines# units
aws-cognito-sdk.js
in MultiRegion/2_UI/src/assets/js/aws
15988 977
amazon-cognito-identity.js
in MultiRegion/2_UI/src/assets/js/aws
2169 86
lambda_function.py
in MachineLearning/1_DataProcessing/lambda-functions/2-transform-data-output-to-s3
45 9
ticket.service.ts
in MultiRegion/2_UI/src/app/services
38 5
producer.go
in MachineLearning/1_DataProcessing/assets
91 5
login.component.ts
in MultiRegion/2_UI/src/app/views/login
63 4
ticket-list.component.ts
in MultiRegion/2_UI/src/app/components/ticket-list
84 4
lambda_function.py
in MachineLearning/3_Inference/lambda-functions
29 4
tickets-replicate.js
in MultiRegion/1_API
54 3
views.component.ts
in MultiRegion/2_UI/src/app/views
37 3
cognito.service.ts
in MultiRegion/2_UI/src/app/services
75 3
index.py
in ImageProcessing/src/lambda-functions/copy-s3-object
60 3
app.component.ts
in MultiRegion/2_UI/src/app
31 2
lambda_function.py
in MachineLearning/1_DataProcessing/lambda-functions/1-process-s3-event-fan-out
29 2
amazon-login.js
in MultiRegion/2_UI/src/assets/js
52 1
ticket.component.ts
in MultiRegion/2_UI/src/app/views/ticket
11 1
cognito-tools.component.ts
in MultiRegion/2_UI/src/app/views/cognito-tools
11 1
troubleshooting.component.ts
in MultiRegion/2_UI/src/app/views/troubleshooting
34 1
home.component.ts
in MultiRegion/2_UI/src/app/views/home
11 1
config.guard.ts
in MultiRegion/2_UI/src/app/shared/guard
28 1
Files With Long Lines (Top 20)

There are 47 files with lines longer than 120 characters. In total, there are 303 long lines.

File# lines# units# long lines
aws-cognito-sdk.js
in MultiRegion/2_UI/src/assets/js/aws
15988 977 54
amazon-cognito-identity.js
in MultiRegion/2_UI/src/assets/js/aws
2169 86 52
amazon-login.js
in MultiRegion/2_UI/src/assets/js
52 1 50
_variables.scss
in MultiRegion/2_UI/src/styles/bootstrap
600 - 16
logo.html
in ImageProcessing/workshop/themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in ImageProcessing/workshop/themes/learn/layouts/partials
67 - 14
children.html
in ImageProcessing/workshop/themes/learn/layouts/shortcodes
86 - 12
theme.css
in ImageProcessing/workshop/themes/learn/static/css
1104 - 8
menu.html
in ImageProcessing/workshop/themes/learn/layouts/partials
144 - 8
wild-rydes-api-primary-region.yaml
in MultiRegion/1_API
192 - 5
wild-rydes-api-failover-region.yaml
in MultiRegion/1_API
179 - 5
1_lambda_functions.yml
in MachineLearning/1_DataProcessing/cloudformation
261 - 5
theme-aws.css
in ImageProcessing/workshop/themes/learn/static/css
236 - 5
99_complete.yml
in MachineLearning/1_DataProcessing/cloudformation
293 - 4
menu-footer.html
in ImageProcessing/workshop/themes/learn/exampleSite/layouts/partials
7 - 4
404.html
in ImageProcessing/workshop/themes/learn/layouts
48 - 4
home.css
in MultiRegion/2_UI/src/styles/awsui/base-styles
425 - 3
home.component.html
in MultiRegion/2_UI/src/app/views/home
7 - 2
_pagination.scss
in MultiRegion/2_UI/src/styles/bootstrap
54 - 2
lambda_function.py
in MachineLearning/1_DataProcessing/lambda-functions/2-transform-data-output-to-s3
45 9 2