aws-samples / aws-sagemaker-pytorch-shop-by-style
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 17 files with 2,219 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (523 lines of code)
    • 2 medium size files (568 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (574 lines of code)
    • 10 very small files (554 lines of code)
0% | 23% | 25% | 25% | 24%
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
yaml0% | 45% | 27% | 23% | 3%
py0% | 0% | 32% | 38% | 28%
html0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
cf0% | 45% | 27% | 23% | 3%
similarity0% | 0% | 35% | 42% | 21%
web/sample-web0% | 0% | 0% | 0% | 100%
web/graphvis0% | 0% | 0% | 0% | 100%
lambda0% | 0% | 0% | 0% | 100%
etl/gremlin0% | 0% | 0% | 0% | 100%
web/sample-web/css0% | 0% | 0% | 0% | 100%
Longest Files (Top 17)
File# lines# units
neptune.yaml
in src/cf
523 -
shopbystyle-prototype.yaml
in src/cf
313 -
index.py
in src/similarity
255 16
siamese.py
in src/similarity
168 7
microservices.yaml
in src/cf
159 -
siamese2.py
in src/similarity
141 3
deployweb.yaml
in src/cf
106 -
shoerack.html
in src/web/sample-web
99 -
graphvis.html
in src/web/graphvis
99 -
batch.py
in src/similarity
63 4
index.js
in src/lambda
53 1
cnn.py
in src/similarity
50 7
zappos50k-edges.py
in src/etl/gremlin
43 -
inference.py
in src/similarity
43 3
copy-assets.yaml
in src/cf
40 -
style.css
in src/web/sample-web/css
34 -
loader.py
in src/lambda
30 1
Files With Most Units (Top 8)
File# lines# units
index.py
in src/similarity
255 16
siamese.py
in src/similarity
168 7
cnn.py
in src/similarity
50 7
batch.py
in src/similarity
63 4
siamese2.py
in src/similarity
141 3
inference.py
in src/similarity
43 3
loader.py
in src/lambda
30 1
index.js
in src/lambda
53 1
Files With Long Lines (Top 5)

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

File# lines# units# long lines
zappos50k-edges.py
in src/etl/gremlin
43 - 3
siamese2.py
in src/similarity
141 3 2
microservices.yaml
in src/cf
159 - 1
shopbystyle-prototype.yaml
in src/cf
313 - 1
siamese.py
in src/similarity
168 7 1