aws-samples / aws-serverless-workshop-innovator-island
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 92 files with 6,036 lines of code.
    • 1 very long files (1,104 lines of code)
    • 1 long files (522 lines of code)
    • 6 medium size files (1,555 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (472 lines of code)
    • 80 very small files (2,383 lines of code)
18% | 8% | 25% | 7% | 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
css31% | 14% | 37% | 0% | 16%
yaml0% | 0% | 51% | 0% | 48%
html0% | 0% | 0% | 33% | 66%
js0% | 0% | 0% | 24% | 75%
toml0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
hugo-site/themes24% | 11% | 29% | 5% | 29%
1-app-deploy/sam-app0% | 0% | 81% | 0% | 18%
5-park-stats/2-simulator0% | 0% | 0% | 63% | 36%
1-app-deploy/ride-controller0% | 0% | 0% | 0% | 100%
6-eventbridge/1-eventbus0% | 0% | 0% | 0% | 100%
6-eventbridge/2-maintenance0% | 0% | 0% | 0% | 100%
hugo-site0% | 0% | 0% | 0% | 100%
2-realtime0% | 0% | 0% | 0% | 100%
3-photos/2-compositing0% | 0% | 0% | 0% | 100%
3-photos/1-chromakey0% | 0% | 0% | 0% | 100%
1-app-deploy/local-app0% | 0% | 0% | 0% | 100%
3-photos/3-postprocess0% | 0% | 0% | 0% | 100%
4-translate/local-app0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
theme.css
in hugo-site/themes/learn/static/css
1104 -
nucleus.css
in hugo-site/themes/learn/static/css
522 -
mermaid.forest.css
in hugo-site/themes/learn/static/mermaid
340 -
mermaid.dark.css
in hugo-site/themes/learn/static/mermaid
262 -
mermaid.css
in hugo-site/themes/learn/static/mermaid
260 -
template.yaml
in 1-app-deploy/sam-app
252 -
theme-aws.css
in hugo-site/themes/learn/static/css
229 -
hugo-theme.css
in hugo-site/themes/learn/static/css
212 -
menu.html
in hugo-site/themes/learn/layouts/partials
140 -
probabilities.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
126 -
simulation.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction
105 1
header.html
in hugo-site/themes/learn/layouts/partials
101 -
theme-green.css
in hugo-site/themes/learn/static/css
90 -
theme-blue.css
in hugo-site/themes/learn/static/css
90 -
theme-red.css
in hugo-site/themes/learn/static/css
90 -
children.html
in hugo-site/themes/learn/layouts/shortcodes
86 -
theme-mine.css
in hugo-site/themes/learn/exampleSite/static/css
84 -
app.js
in 6-eventbridge/2-maintenance/sam-app/outagesFunction
83 -
hybrid.css
in hugo-site/themes/learn/static/css
72 -
atom-one-dark-reasonable.css
in hugo-site/themes/learn/static/css
70 -
footer.html
in hugo-site/themes/learn/layouts/partials
67 -
template.yaml
in 1-app-deploy/ride-controller
65 -
config.toml
in hugo-site/themes/learn/exampleSite
62 -
app.py
in 3-photos/1-chromakey
62 3
app.js
in 1-app-deploy/ride-controller/initDB
60 7
importData.js
in 1-app-deploy/local-app
52 -
app.js
in 6-eventbridge/1-eventbus/sam-app/publishFunction
49 -
app.js
in 3-photos/3-postprocess
49 -
404.html
in hugo-site/themes/learn/layouts
48 -
app.js
in 1-app-deploy/ride-controller/fatController
48 2
translate.js
in 4-translate/local-app
48 -
tags.css
in hugo-site/themes/learn/static/css
42 -
dispatch.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
41 1
auto-complete.css
in hugo-site/themes/learn/static/css
40 -
template.yaml
in 2-realtime
40 -
app.js
in 2-realtime
39 -
app.js
in 3-photos/2-compositing/lambdaFunction
39 1
logo.html
in hugo-site/themes/learn/exampleSite/layouts/partials
37 -
visitor.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
35 -
attachments.html
in hugo-site/themes/learn/layouts/shortcodes
35 -
config.toml
in hugo-site
33 -
template.yaml
in 6-eventbridge/1-eventbus/sam-app
33 -
app.js
in 1-app-deploy/sam-app/getUploadURL
32 -
template.yaml
in 5-park-stats/2-simulator/sam-app
29 -
ghcontributors.html
in hugo-site/themes/learn/exampleSite/layouts/shortcodes
29 -
app.js
in 6-eventbridge/1-eventbus/sam-app/metricsFunction
29 -
initRides.js
in 1-app-deploy/ride-controller/initDB
29 -
buildspec.yml
in hugo-site
27 -
template.yaml
in 3-photos/2-compositing
27 -
app.js
in 1-app-deploy/sam-app/getInitState
24 -
Files With Most Units (Top 8)
File# lines# units
app.js
in 1-app-deploy/ride-controller/initDB
60 7
app.py
in 3-photos/1-chromakey
62 3
app.js
in 1-app-deploy/ride-controller/fatController
48 2
app.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction
10 1
geo.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
15 1
dispatch.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
41 1
simulation.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction
105 1
app.js
in 3-photos/2-compositing/lambdaFunction
39 1
Files With Long Lines (Top 20)

There are 27 files with lines longer than 120 characters. In total, there are 98 long lines.

File# lines# units# long lines
logo.html
in hugo-site/themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in hugo-site/themes/learn/layouts/partials
67 - 14
children.html
in hugo-site/themes/learn/layouts/shortcodes
86 - 12
theme.css
in hugo-site/themes/learn/static/css
1104 - 8
menu.html
in hugo-site/themes/learn/layouts/partials
140 - 8
header.html
in hugo-site/themes/learn/layouts/partials
101 - 5
theme-aws.css
in hugo-site/themes/learn/static/css
229 - 4
menu-footer.html
in hugo-site/themes/learn/exampleSite/layouts/partials
7 - 4
404.html
in hugo-site/themes/learn/layouts
48 - 4
template.yaml
in 1-app-deploy/sam-app
252 - 4
nucleus.css
in hugo-site/themes/learn/static/css
522 - 2
search.html
in hugo-site/themes/learn/layouts/partials
16 - 2
probabilities.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction/lib
126 - 1
simulation.js
in 5-park-stats/2-simulator/sam-app/simulatorFunction
105 1 1
theme-green.css
in hugo-site/themes/learn/static/css
90 - 1
atom-one-dark-reasonable.css
in hugo-site/themes/learn/static/css
70 - 1
theme-blue.css
in hugo-site/themes/learn/static/css
90 - 1
theme-red.css
in hugo-site/themes/learn/static/css
90 - 1
theme-mine.css
in hugo-site/themes/learn/exampleSite/static/css
84 - 1
ghcontributors.html
in hugo-site/themes/learn/exampleSite/layouts/shortcodes
29 - 1