aws-samples / serverless-streaming-data-application
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 34 files with 2,060 lines of code.
    • 0 very long files (0 lines of code)
    • 1 long files (561 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (598 lines of code)
    • 29 very small files (901 lines of code)
0% | 27% | 0% | 29% | 43%
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
vue0% | 79% | 0% | 0% | 20%
yaml0% | 0% | 0% | 68% | 31%
js0% | 0% | 0% | 18% | 81%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
frontend/src0% | 72% | 0% | 0% | 27%
3-streaming-kda0% | 0% | 0% | 100% | 0%
0-setup/base-template0% | 0% | 0% | 47% | 52%
2-streaming-kdf0% | 0% | 0% | 100% | 0%
2-streaming-kdf/s3-processor0% | 0% | 0% | 78% | 21%
1-streaming-kds/tumblingFunction0% | 0% | 0% | 0% | 100%
1-streaming-kds0% | 0% | 0% | 0% | 100%
simulator/lib0% | 0% | 0% | 0% | 100%
simulator0% | 0% | 0% | 0% | 100%
1-streaming-kds/finalResultsFunction0% | 0% | 0% | 0% | 100%
1-streaming-kds/publishStreamFunction0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
3-streaming-kda/DestinationFunction0% | 0% | 0% | 0% | 100%
2-streaming-kdf/transformer0% | 0% | 0% | 0% | 100%
frontend0% | 0% | 0% | 0% | 100%
Longest Files (Top 34)
File# lines# units
Home.vue
in frontend/src/components
561 -
template.yaml
in 3-streaming-kda
170 -
template.yaml
in 0-setup/base-template/1-core
155 -
template.yaml
in 2-streaming-kdf
153 -
app.js
in 2-streaming-kdf/s3-processor
120 3
IoT.vue
in frontend/src/components
94 -
template.yaml
in 1-streaming-kds
87 -
app.js
in 1-streaming-kds/tumblingFunction
80 1
template.yaml
in 0-setup/base-template/3-api
67 -
template.yaml
in 0-setup/base-template/2-ddb
62 -
simulation.js
in simulator
57 -
App.vue
in frontend/src
47 -
dispatch.js
in simulator/lib
46 1
app.js
in 1-streaming-kds/finalResultsFunction
39 2
racer.js
in simulator/lib
33 2
racer.js
in frontend/src/lib
32 2
app.js
in 1-streaming-kds/publishStreamFunction
26 -
getLeaderboard.js
in 0-setup/base-template/3-api/functions
21 -
gzip.js
in 2-streaming-kdf/s3-processor/lib
20 -
gzip.js
in frontend/src/lib
20 -
main.js
in frontend/src
20 -
getRaces.js
in 0-setup/base-template/3-api/functions
19 -
index.html
in frontend/public
18 -
app.js
in 3-streaming-kda/DestinationFunction
17 -
app.js
in simulator
14 1
testHarness.js
in 2-streaming-kdf/s3-processor
13 -
testHarness.js
in 1-streaming-kds/publishStreamFunction
13 -
testHarness.js
in 1-streaming-kds/tumblingFunction
11 -
testHarness.js
in 1-streaming-kds/finalResultsFunction
11 -
testHarness.js
in 2-streaming-kdf/transformer
10 -
vue.config.js
in frontend
8 -
app.js
in 2-streaming-kdf/transformer
6 -
babel.config.js
in frontend
5 -
vuetify.js
in frontend/src/plugins
5 -
Files With Most Units (Top 7)
File# lines# units
app.js
in 2-streaming-kdf/s3-processor
120 3
racer.js
in simulator/lib
33 2
racer.js
in frontend/src/lib
32 2
app.js
in 1-streaming-kds/finalResultsFunction
39 2
app.js
in simulator
14 1
dispatch.js
in simulator/lib
46 1
app.js
in 1-streaming-kds/tumblingFunction
80 1
Files With Long Lines (Top 4)

There are 4 files with lines longer than 120 characters. In total, there are 14 long lines.

File# lines# units# long lines
Home.vue
in frontend/src/components
561 - 8
template.yaml
in 0-setup/base-template/1-core
155 - 4
simulation.js
in simulator
57 - 1
index.html
in frontend/public
18 - 1