aws-samples / bring-your-own-data-labs
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 81 files with 8,738 lines of code.
    • 2 very long files (2,208 lines of code)
    • 2 long files (1,044 lines of code)
    • 11 medium size files (2,962 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (328 lines of code)
    • 64 very small files (2,196 lines of code)
25% | 11% | 33% | 3% | 25%
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
css32% | 15% | 38% | 0% | 14%
js0% | 0% | 45% | 25% | 29%
html0% | 0% | 0% | 19% | 80%
toml0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
workshop/themes/learn25% | 12% | 30% | 3% | 27%
workshop/Server/css42% | 20% | 17% | 0% | 19%
workshop/Server/mermaid0% | 0% | 100% | 0% | 0%
workshop/Server/js0% | 0% | 45% | 25% | 29%
workshop0% | 0% | 0% | 0% | 100%
workshop/Server/en0% | 0% | 0% | 0% | 100%
workshop/Server/fr0% | 0% | 0% | 0% | 100%
workshop/layouts/partials0% | 0% | 0% | 0% | 100%
workshop/layouts/shortcodes0% | 0% | 0% | 0% | 100%
workshop/Server0% | 0% | 0% | 0% | 100%
workshop/layouts/_default0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
theme.css
in workshop/Server/css
1104 -
theme.css
in workshop/themes/learn/static/css
1104 -
nucleus.css
in workshop/Server/css
522 -
nucleus.css
in workshop/themes/learn/static/css
522 -
learn.js
in workshop/Server/js
342 40
mermaid.forest.css
in workshop/Server/mermaid
340 -
mermaid.forest.css
in workshop/themes/learn/static/mermaid
340 -
mermaid.dark.css
in workshop/Server/mermaid
262 -
mermaid.dark.css
in workshop/themes/learn/static/mermaid
262 -
mermaid.css
in workshop/Server/mermaid
260 -
mermaid.css
in workshop/themes/learn/static/mermaid
260 -
theme-aws.css
in workshop/Server/css
236 -
theme-aws.css
in workshop/themes/learn/static/css
236 -
hugo-theme.css
in workshop/Server/css
212 -
hugo-theme.css
in workshop/themes/learn/static/css
212 -
auto-complete.js
in workshop/Server/js
188 18
menu.html
in workshop/themes/learn/layouts/partials
140 -
header.html
in workshop/themes/learn/layouts/partials
94 -
theme-green.css
in workshop/Server/css
90 -
theme-blue.css
in workshop/Server/css
90 -
theme-red.css
in workshop/Server/css
90 -
theme-green.css
in workshop/themes/learn/static/css
90 -
theme-blue.css
in workshop/themes/learn/static/css
90 -
theme-red.css
in workshop/themes/learn/static/css
90 -
post_build.py
in workshop
86 1
children.html
in workshop/themes/learn/layouts/shortcodes
86 -
pre_build.py
in workshop
79 1
hugo-learn.js
in workshop/Server/js
78 5
kinesis.js
in workshop/Server/js
73 3
hybrid.css
in workshop/Server/css
72 -
hybrid.css
in workshop/themes/learn/static/css
72 -
atom-one-dark-reasonable.css
in workshop/Server/css
70 -
atom-one-dark-reasonable.css
in workshop/themes/learn/static/css
70 -
search.js
in workshop/Server/js
69 8
footer.html
in workshop/themes/learn/layouts/partials
67 -
404.html
in workshop/themes/learn/layouts
46 -
404.html
in workshop/Server/en
45 -
404.html
in workshop/Server/fr
45 -
tags.css
in workshop/Server/css
42 -
tags.css
in workshop/themes/learn/static/css
42 -
auto-complete.css
in workshop/Server/css
40 -
config.toml
in workshop
40 -
auto-complete.css
in workshop/themes/learn/static/css
40 -
attachments.html
in workshop/themes/learn/layouts/shortcodes
35 -
theme.toml
in workshop/themes/learn
18 -
list.html
in workshop/themes/learn/layouts/_default
18 -
de.toml
in workshop/themes/learn/i18n
18 -
id.toml
in workshop/themes/learn/i18n
18 -
fr.toml
in workshop/themes/learn/i18n
18 -
nl.toml
in workshop/themes/learn/i18n
18 -
Files With Most Units (Top 7)
File# lines# units
learn.js
in workshop/Server/js
342 40
auto-complete.js
in workshop/Server/js
188 18
search.js
in workshop/Server/js
69 8
hugo-learn.js
in workshop/Server/js
78 5
kinesis.js
in workshop/Server/js
73 3
post_build.py
in workshop
86 1
pre_build.py
in workshop
79 1
Files With Long Lines (Top 20)

There are 33 files with lines longer than 120 characters. In total, there are 109 long lines.

File# lines# units# long lines
footer.html
in workshop/themes/learn/layouts/partials
67 - 14
children.html
in workshop/themes/learn/layouts/shortcodes
86 - 12
auto-complete.js
in workshop/Server/js
188 18 11
theme.css
in workshop/Server/css
1104 - 8
theme.css
in workshop/themes/learn/static/css
1104 - 8
menu.html
in workshop/themes/learn/layouts/partials
140 - 8
theme-aws.css
in workshop/Server/css
236 - 5
theme-aws.css
in workshop/themes/learn/static/css
236 - 5
header.html
in workshop/themes/learn/layouts/partials
94 - 5
404.html
in workshop/themes/learn/layouts
46 - 5
learn.js
in workshop/Server/js
342 40 3
nucleus.css
in workshop/Server/css
522 - 2
nucleus.css
in workshop/themes/learn/static/css
522 - 2
search.html
in workshop/themes/learn/layouts/partials
16 - 2
search.js
in workshop/Server/js
69 8 1
theme-green.css
in workshop/Server/css
90 - 1
atom-one-dark-reasonable.css
in workshop/Server/css
70 - 1
theme-blue.css
in workshop/Server/css
90 - 1
theme-red.css
in workshop/Server/css
90 - 1
index.html
in workshop/Server
1 - 1