aws-samples / smart-cooler
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 44 files with 3,119 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,258 lines of code)
    • 1 medium size files (211 lines of codeclsfd_ftr_w_mp_ins)
    • 5 small files (678 lines of code)
    • 36 very small files (972 lines of code)
0% | 40% | 6% | 21% | 31%
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
py0% | 43% | 0% | 18% | 37%
yml0% | 56% | 20% | 16% | 6%
js0% | 0% | 0% | 59% | 40%
yaml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
detection-function0% | 80% | 0% | 16% | 2%
ROOT0% | 58% | 21% | 16% | 4%
purchase-function0% | 0% | 0% | 40% | 59%
SmartCoolerCharge0% | 0% | 0% | 54% | 45%
SmartCoolerScan0% | 0% | 0% | 56% | 43%
qr-reader-function0% | 0% | 0% | 0% | 100%
authentication-function0% | 0% | 0% | 0% | 100%
door-sensor-function0% | 0% | 0% | 0% | 100%
qr-monitoring-function0% | 0% | 0% | 0% | 100%
update-product-function0% | 0% | 0% | 0% | 100%
update-product-local-function0% | 0% | 0% | 0% | 100%
Longest Files (Top 44)
File# lines# units
six.py
in detection-function/src
677 62
template.yml
in root
581 -
smart-cooler-od.yml
in root
211 -
smart-cooler-api.yml
in root
168 -
purchase.py
in purchase-function/src
153 5
run.py
in detection-function/src
137 5
clientHelper.js
in SmartCoolerCharge
110 9
clientHelper.js
in SmartCoolerScan
110 9
inventory.py
in purchase-function/src
93 8
qr_reader.py
in qr-reader-function/src
80 2
index.js
in SmartCoolerCharge
55 1
door_sensor.py
in door-sensor-function/src
51 1
components.py
in purchase-function/src
46 7
components.py
in authentication-function/src
43 7
index.js
in SmartCoolerScan
42 1
buildspec.yml
in root
41 -
template.yaml
in update-product-local-function
37 -
inventory.py
in update-product-function/src
34 4
authenticate.py
in authentication-function/src
33 1
qr_monitor.py
in qr-monitoring-function/src
26 4
localstorage.py
in qr-monitoring-function/src
24 3
localstorage.py
in authentication-function/src
24 3
localstorage.py
in purchase-function/src
24 3
localstorage.py
in qr-reader-function/src
24 3
template.yml
in detection-function
23 -
amazon_pay.py
in purchase-function/src
23 2
app.py
in update-product-local-function/src
23 1
template.yaml
in update-product-function
20 -
template.yaml
in qr-monitoring-function
19 -
template.yaml
in door-sensor-function
19 -
template.yaml
in authentication-function
19 -
template.yaml
in purchase-function
19 -
template.yaml
in qr-reader-function
19 -
template.yaml
in SmartCoolerScan
18 -
client.js
in SmartCoolerCharge
17 3
camera.py
in purchase-function/src
17 2
client.js
in SmartCoolerScan
17 3
template.yaml
in SmartCoolerCharge
12 -
update_product.py
in update-product-function/src
11 1
constants.js
in SmartCoolerCharge
8 -
constants.js
in SmartCoolerScan
8 -
__init__.py
in door-sensor-function/src
1 -
__init__.py
in authentication-function/src
1 -
__init__.py
in update-product-local-function/src
1 -
Files With Most Units (Top 20)
File# lines# units
six.py
in detection-function/src
677 62
clientHelper.js
in SmartCoolerCharge
110 9
clientHelper.js
in SmartCoolerScan
110 9
inventory.py
in purchase-function/src
93 8
components.py
in authentication-function/src
43 7
components.py
in purchase-function/src
46 7
run.py
in detection-function/src
137 5
purchase.py
in purchase-function/src
153 5
qr_monitor.py
in qr-monitoring-function/src
26 4
inventory.py
in update-product-function/src
34 4
localstorage.py
in qr-monitoring-function/src
24 3
client.js
in SmartCoolerCharge
17 3
localstorage.py
in authentication-function/src
24 3
localstorage.py
in purchase-function/src
24 3
localstorage.py
in qr-reader-function/src
24 3
client.js
in SmartCoolerScan
17 3
amazon_pay.py
in purchase-function/src
23 2
camera.py
in purchase-function/src
17 2
qr_reader.py
in qr-reader-function/src
80 2
door_sensor.py
in door-sensor-function/src
51 1
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
buildspec.yml
in root
41 - 4
purchase.py
in purchase-function/src
153 5 3
clientHelper.js
in SmartCoolerCharge
110 9 2
clientHelper.js
in SmartCoolerScan
110 9 2
qr_reader.py
in qr-reader-function/src
80 2 1