aws-samples / aws-deeplens-recipes
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 103 files with 8,482 lines of code.
    • 2 very long files (3,674 lines of code)
    • 1 long files (522 lines of code)
    • 4 medium size files (1,074 lines of codeclsfd_ftr_w_mp_ins)
    • 7 small files (946 lines of code)
    • 89 very small files (2,266 lines of code)
43% | 6% | 12% | 11% | 26%
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
css60% | 8% | 17% | 2% | 9%
py0% | 0% | 0% | 50% | 49%
html0% | 0% | 0% | 23% | 76%
toml0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
static/css93% | 0% | 0% | 6% | 0%
themes/learn/static34% | 16% | 33% | 0% | 15%
static/code/worker-safety0% | 0% | 0% | 60% | 39%
themes/learn/layouts0% | 0% | 0% | 38% | 61%
static/code/coffee-counter0% | 0% | 0% | 61% | 38%
static/code/trash-sorter0% | 0% | 0% | 0% | 100%
themes/learn/i18n0% | 0% | 0% | 0% | 100%
themes/learn/exampleSite0% | 0% | 0% | 0% | 100%
layouts/shortcodes0% | 0% | 0% | 0% | 100%
layouts/partials0% | 0% | 0% | 0% | 100%
layouts0% | 0% | 0% | 0% | 100%
themes/learn0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
static0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
all.css
in static/css
2570 -
theme.css
in themes/learn/static/css
1104 -
nucleus.css
in themes/learn/static/css
522 -
mermaid.forest.css
in themes/learn/static/mermaid
340 -
mermaid.dark.css
in themes/learn/static/mermaid
262 -
mermaid.css
in themes/learn/static/mermaid
260 -
hugo-theme.css
in themes/learn/static/css
212 -
theme-mine.css
in static/css
180 -
menu.html
in themes/learn/layouts/partials
147 -
cloud-lambda.py
in static/code/worker-safety
146 8
lambda_function.py
in static/code/worker-safety/deeplens-lambda
129 6
face_function.py
in static/code/coffee-counter
120 2
deeplens_inference_function.py
in static/code/coffee-counter
120 4
header.html
in themes/learn/layouts/partials
104 -
main.html
in static/code/coffee-counter/app/templates
94 -
theme-green.css
in themes/learn/static/css
90 -
theme-blue.css
in themes/learn/static/css
90 -
theme-red.css
in themes/learn/static/css
90 -
children.html
in themes/learn/layouts/shortcodes
86 -
theme-mine.css
in themes/learn/exampleSite/static/css
84 -
Lambda.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk
73 6
Lambda.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk
73 6
IoTDataPlane.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk
72 7
IoTDataPlane.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk
72 7
hybrid.css
in themes/learn/static/css
72 -
atom-one-dark-reasonable.css
in themes/learn/static/css
70 -
footer.html
in themes/learn/layouts/partials
66 -
config.toml
in themes/learn/exampleSite
62 -
application.py
in static/code/coffee-counter/app
59 1
custom-header.html
in layouts/partials
51 -
404.html
in layouts
49 -
404.html
in themes/learn/layouts
48 -
lambda_function.py
in static/code/trash-sorter/deeplens-trash-lambda
47 2
tabs.html
in layouts/shortcodes
43 -
tags.css
in themes/learn/static/css
42 -
auto-complete.css
in themes/learn/static/css
40 -
logo.html
in themes/learn/exampleSite/layouts/partials
37 -
attachments.html
in themes/learn/layouts/shortcodes
35 -
utils.py
in static/code/trash-sorter/deeplens-trash-lambda
30 4
index.html
in themes/learn/layouts
30 -
ghcontributors.html
in layouts/shortcodes
29 -
ghcontributors.html
in themes/learn/exampleSite/layouts/shortcodes
29 -
testing.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk/utils
24 1
testing.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk/utils
24 1
config.toml
in root
22 -
tab.html
in layouts/shortcodes
19 -
theme.toml
in themes/learn
18 -
list.html
in themes/learn/layouts/_default
18 -
zh-cn.toml
in themes/learn/i18n
18 -
de.toml
in themes/learn/i18n
18 -
Files With Most Units (Top 15)
File# lines# units
cloud-lambda.py
in static/code/worker-safety
146 8
IoTDataPlane.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk
72 7
IoTDataPlane.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk
72 7
Lambda.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk
73 6
lambda_function.py
in static/code/worker-safety/deeplens-lambda
129 6
Lambda.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk
73 6
deeplens_inference_function.py
in static/code/coffee-counter
120 4
utils.py
in static/code/trash-sorter/deeplens-trash-lambda
30 4
face_function.py
in static/code/coffee-counter
120 2
lambda_function.py
in static/code/trash-sorter/deeplens-trash-lambda
47 2
testing.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk/utils
24 1
client.py
in static/code/worker-safety/deeplens-lambda/greengrasssdk
8 1
application.py
in static/code/coffee-counter/app
59 1
testing.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk/utils
24 1
client.py
in static/code/trash-sorter/deeplens-trash-lambda/greengrasssdk
8 1
Files With Long Lines (Top 20)

There are 38 files with lines longer than 120 characters. In total, there are 122 long lines.

File# lines# units# long lines
logo.html
in themes/learn/exampleSite/layouts/partials
37 - 16
footer.html
in themes/learn/layouts/partials
66 - 13
children.html
in themes/learn/layouts/shortcodes
86 - 12
theme.css
in themes/learn/static/css
1104 - 8
menu.html
in themes/learn/layouts/partials
147 - 8
cloud-lambda.py
in static/code/worker-safety
146 8 5
custom-header.html
in layouts/partials
51 - 5
header.html
in themes/learn/layouts/partials
104 - 5
main.html
in static/code/coffee-counter/app/templates
94 - 4
404.html
in layouts
49 - 4
menu-footer.html
in themes/learn/exampleSite/layouts/partials
7 - 4
404.html
in themes/learn/layouts
48 - 4
all.css
in static/css
2570 - 3
theme-mine.css
in static/css
180 - 3
deeplens_inference_function.py
in static/code/coffee-counter
120 4 2
nucleus.css
in themes/learn/static/css
522 - 2
search.html
in themes/learn/layouts/partials
16 - 2
index.html
in themes/learn/layouts
30 - 2
face_function.py
in static/code/coffee-counter
120 2 1
speakerdeck.html
in layouts/partials
1 - 1