aws-samples / amazon-ivs-virtual-qa-web-demo
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 40 files with 2,880 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,141 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (542 lines of code)
    • 34 very small files (1,197 lines of code)
0% | 39% | 0% | 18% | 41%
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
css0% | 82% | 0% | 17% | 0%
yaml0% | 100% | 0% | 0% | 0%
js0% | 0% | 0% | 21% | 78%
py0% | 0% | 0% | 35% | 64%
html0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
frontend/src0% | 72% | 0% | 15% | 11%
ROOT0% | 100% | 0% | 0% | 0%
backend/lambda/question-service0% | 0% | 0% | 100% | 0%
frontend/src/providers0% | 0% | 0% | 52% | 47%
frontend/src/addQuestion0% | 0% | 0% | 79% | 20%
frontend/src/questionList0% | 0% | 0% | 0% | 100%
frontend/src/auth0% | 0% | 0% | 0% | 100%
frontend/src/player0% | 0% | 0% | 0% | 100%
backend/lambda/question-stream0% | 0% | 0% | 0% | 100%
backend/lambda/connection-stream0% | 0% | 0% | 0% | 100%
backend/lambda/vote-stream0% | 0% | 0% | 0% | 100%
backend/lambda/vote-service0% | 0% | 0% | 0% | 100%
backend/lambda/websocket-service0% | 0% | 0% | 0% | 100%
frontend/public0% | 0% | 0% | 0% | 100%
frontend/src/util0% | 0% | 0% | 0% | 100%
Longest Files (Top 40)
File# lines# units
index.css
in frontend/src
639 -
template.yaml
in root
502 -
lambda.py
in backend/lambda/question-service
152 5
App.css
in frontend/src
139 -
QuestionProvider.js
in frontend/src/providers
137 4
AddQuestionModal.js
in frontend/src/addQuestion
114 1
SignInButton.js
in frontend/src/auth
97 4
VoteButton.js
in frontend/src/questionList/Question
92 1
SignInModal.js
in frontend/src/auth
80 1
lambda.py
in backend/lambda/question-stream
76 7
DeleteQuestionModal.js
in frontend/src/questionList/Question
74 -
CurrentQuestionModal.js
in frontend/src/questionList/Question
64 -
lambda.py
in backend/lambda/connection-stream
62 6
lambda.py
in backend/lambda/vote-stream
60 4
Player.js
in frontend/src/player
52 1
lambda.py
in backend/lambda/vote-service
51 2
WebSocketClient.js
in frontend/src
49 2
VoteProvider.js
in frontend/src/providers
44 -
CurrentQuestion.js
in frontend/src/player
41 2
App.js
in frontend/src
35 -
QuestionList.js
in frontend/src/questionList
34 2
UserProvider.js
in frontend/src/providers
30 -
AddQuestionButton.js
in frontend/src/addQuestion
30 1
Question.js
in frontend/src/questionList/Question
29 -
lambda.py
in backend/lambda/websocket-service
28 1
index.html
in frontend/public
24 -
DeleteQuestionButton.js
in frontend/src/questionList/Question
23 -
CurrentQuestionButton.js
in frontend/src/questionList/Question
23 -
PlayerMetadataProvider.js
in frontend/src/providers
21 -
useOutsideClick.js
in frontend/src/util
15 2
IVSProvider.js
in frontend/src/providers
14 1
AuthConfigure.js
in frontend/src/auth
14 -
config.js
in frontend/src
10 1
index.js
in frontend/src
9 -
PlayerMetadataContext.js
in frontend/src/providers
3 -
QuestionContext.js
in frontend/src/providers
3 -
VoteContext.js
in frontend/src/providers
3 -
UserContext.js
in frontend/src/providers
3 -
IVSContext.js
in frontend/src/providers
3 -
setupTests.js
in frontend/src
1 -
Files With Most Units (Top 19)
File# lines# units
lambda.py
in backend/lambda/question-stream
76 7
lambda.py
in backend/lambda/connection-stream
62 6
lambda.py
in backend/lambda/question-service
152 5
QuestionProvider.js
in frontend/src/providers
137 4
SignInButton.js
in frontend/src/auth
97 4
lambda.py
in backend/lambda/vote-stream
60 4
WebSocketClient.js
in frontend/src
49 2
CurrentQuestion.js
in frontend/src/player
41 2
useOutsideClick.js
in frontend/src/util
15 2
QuestionList.js
in frontend/src/questionList
34 2
lambda.py
in backend/lambda/vote-service
51 2
config.js
in frontend/src
10 1
IVSProvider.js
in frontend/src/providers
14 1
Player.js
in frontend/src/player
52 1
AddQuestionButton.js
in frontend/src/addQuestion
30 1
AddQuestionModal.js
in frontend/src/addQuestion
114 1
VoteButton.js
in frontend/src/questionList/Question
92 1
SignInModal.js
in frontend/src/auth
80 1
lambda.py
in backend/lambda/websocket-service
28 1
Files With Long Lines (Top 7)

There are 7 files with lines longer than 120 characters. In total, there are 18 long lines.

File# lines# units# long lines
template.yaml
in root
502 - 8
VoteButton.js
in frontend/src/questionList/Question
92 1 3
index.css
in frontend/src
639 - 3
IVSProvider.js
in frontend/src/providers
14 1 1
CurrentQuestion.js
in frontend/src/player
41 2 1
DeleteQuestionButton.js
in frontend/src/questionList/Question
23 - 1
CurrentQuestionButton.js
in frontend/src/questionList/Question
23 - 1