aws-samples / realtime-web-analytics-workshop
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 12 files with 6,278 lines of code.
    • 4 very long files (4,834 lines of code)
    • 1 long files (602 lines of code)
    • 2 medium size files (585 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 5 very small files (257 lines of code)
76% | 9% | 9% | 0% | 4%
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
yaml83% | 10% | 6% | 0% | 0%
js0% | 0% | 100% | 0% | 0%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
module-387% | 0% | 12% | 0% | <1%
module-2100% | 0% | 0% | 0% | 0%
module-10% | 88% | 0% | 0% | 11%
wasa0% | 0% | 100% | 0% | 0%
publishfunction0% | 0% | 0% | 0% | 100%
module-40% | 0% | 0% | 0% | 100%
Longest Files (Top 12)
File# lines# units
3-publish-metrics-completed.yaml
in module-3
1288 -
3-publish-metrics-update.yaml
in module-3
1263 -
2-kinesis-analytics-module-completed.yaml
in module-2
1150 -
2-kinesis-analytics-module-update.yaml
in module-2
1133 -
1-frontend-module-finish.yaml
in module-1
602 -
3-cloudwatch-dashboard.yaml
in module-3
360 -
index.js
in wasa
225 5
test-beacon.py
in module-1
81 11
cwmetricstream.py
in publishfunction
75 2
cwmetricstream2.py
in publishfunction
56 3
generate-load-times.py
in module-4
25 1
click-burst.py
in module-3
20 -
Files With Most Units (Top 5)
File# lines# units
test-beacon.py
in module-1
81 11
index.js
in wasa
225 5
cwmetricstream2.py
in publishfunction
56 3
cwmetricstream.py
in publishfunction
75 2
generate-load-times.py
in module-4
25 1
Files With Long Lines (Top 8)

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

File# lines# units# long lines
3-publish-metrics-update.yaml
in module-3
1263 - 16
2-kinesis-analytics-module-completed.yaml
in module-2
1150 - 14
2-kinesis-analytics-module-update.yaml
in module-2
1133 - 14
3-publish-metrics-completed.yaml
in module-3
1288 - 12
1-frontend-module-finish.yaml
in module-1
602 - 8
index.js
in wasa
225 5 7
test-beacon.py
in module-1
81 11 3
cwmetricstream.py
in publishfunction
75 2 2