aws-solutions / aws-qnabot
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 272 files with 24,569 lines of code.
    • 1 very long files (1,167 lines of code)
    • 2 long files (1,259 lines of code)
    • 24 medium size files (7,149 lines of codeclsfd_ftr_w_mp_ins)
    • 56 small files (7,782 lines of code)
    • 189 very small files (7,212 lines of code)
4% | 5% | 29% | 31% | 29%
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
js6% | 3% | 30% | 25% | 34%
py0% | 48% | 16% | 30% | 5%
vue0% | 0% | 22% | 65% | 11%
yaml0% | 0% | 100% | 0% | 0%
css0% | 0% | 82% | 0% | 18%
html0% | 0% | 0% | 61% | 38%
scss0% | 0% | 0% | 0% | 100%
pug0% | 0% | 0% | 0% | 100%
ejs0% | 0% | 0% | 0% | 100%
styl0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
templates/export92% | 0% | 0% | 0% | 7%
templates0% | 100% | 0% | 0% | 0%
lambda/lexv2-build0% | 100% | 0% | 0% | 0%
templates/master0% | 0% | 41% | 19% | 39%
lambda/es-proxy-layer0% | 0% | 56% | 26% | 17%
website/js0% | 0% | 20% | 58% | 21%
lambda/fulfillment0% | 0% | 36% | 46% | 16%
lambda/cfn0% | 0% | 32% | 7% | 60%
lambda/genesys0% | 0% | 88% | 0% | 11%
lambda/schema0% | 0% | 61% | 35% | 2%
lambda/export0% | 0% | 36% | 20% | 42%
utility_scripts0% | 0% | 48% | 50% | <1%
templates/dev0% | 0% | 0% | 49% | 50%
lambda/import0% | 0% | 0% | 100% | 0%
lambda/js_lambda_hook_sdk0% | 0% | 0% | 100% | 0%
templates/import0% | 0% | 0% | 52% | 47%
lambda/kendra-webcrawler0% | 0% | 0% | 100% | 0%
utility_scripts/csv2json_converter0% | 0% | 0% | 44% | 55%
templates/public-vpc-support0% | 0% | 0% | 100% | 0%
templates/public0% | 0% | 0% | 100% | 0%
lambda/qnabot-common-layer0% | 0% | 0% | 61% | 38%
website/config0% | 0% | 0% | 46% | 53%
lambda/kendra-webcrawler-schedule-updater0% | 0% | 0% | 100% | 0%
templates/testall0% | 0% | 0% | 63% | 36%
lambda/lex-build0% | 0% | 0% | 0% | 100%
lambda/testall0% | 0% | 0% | 0% | 100%
lambda/translate0% | 0% | 0% | 0% | 100%
lambda/kendra-webcrawler-status0% | 0% | 0% | 0% | 100%
lambda/connect0% | 0% | 0% | 0% | 100%
templates/lib0% | 0% | 0% | 0% | 100%
website/html0% | 0% | 0% | 0% | 100%
lambda/proxy-es0% | 0% | 0% | 0% | 100%
website/style0% | 0% | 0% | 0% | 100%
lambda0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
resources.js
in templates/export
1167 -
util.js
in templates
671 13
handler.py
in lambda/lexv2-build
588 35
proxy-es.js
in templates/master
466 -
query.js
in lambda/es-proxy-layer/lib
450 8
kendra.js
in lambda/es-proxy-layer/lib
438 13
lex.js
in lambda/cfn/lib
430 19
import.vue
in website/js/components
423 -
fulfillment.js
in templates/master/lex
412 -
handlebars.js
in lambda/es-proxy-layer/lib
306 1
QnABot-CallFlow.yaml
in lambda/genesys/flowsv2
296 -
supportedLanguages.js
in lambda/es-proxy-layer/lib
288 2
index.js
in templates/master
275 -
firehose.js
in templates/master/elasticsearch
262 -
index.js
in templates/master/routes/jobs
258 1
lexRouter.js
in lambda/fulfillment/lib/middleware
258 10
specialtyBotRouter.js
in lambda/fulfillment/lib/middleware
258 15
bucket.js
in templates/master
253 -
index.vue
in website/js/components/designer
253 -
lex.js
in lambda/fulfillment/lib/middleware
252 16
qna.js
in lambda/schema
246 -
index.js
in templates/master/lex-build
237 1
index.js
in templates/master/cognito
232 -
index.vue
in website/js/components/connect
229 -
createFAQ.js
in lambda/export
217 7
cognito-login.css
in templates/master/cognito/style
205 -
configureCMK.py
in utility_scripts
205 3
2_preprocess.js
in lambda/fulfillment/lib/middleware
200 2
menu-testall.vue
in website/js/components/designer
199 -
admin.vue
in website/js
193 -
input.vue
in website/js/components/designer
189 -
kendraIndex.vue
in website/js/components
189 -
settings.vue
in website/js/components
188 -
lambda-layers.js
in templates/master
176 -
customTranslate.vue
in website/js/components
176 -
index.js
in lambda/import
167 1
add.vue
in website/js/components/designer
165 -
edit.vue
in website/js/components/designer
163 -
index.vue
in website/js/components/genesys
156 -
kendraQuery.js
in lambda/es-proxy-layer/lib
156 5
index.js
in templates/master/lexv2-build
155 1
alexa.js
in lambda/fulfillment/lib/middleware
155 6
cfn.js
in lambda/es-proxy-layer/lib
150 2
modal.vue
in website/js/components/designer
149 -
bot.js
in templates/master/lex
147 -
hooks.js
in lambda/js_lambda_hook_sdk/lambda_hook_sdk
147 24
1_parse.js
in lambda/fulfillment/lib/middleware
146 5
test.js
in templates/master/routes/qa
145 8
resources.js
in templates/import
145 -
handler.js
in lambda/es-proxy-layer/lib
144 7
Files With Most Units (Top 20)
File# lines# units
handler.py
in lambda/lexv2-build
588 35
hooks.js
in lambda/js_lambda_hook_sdk/lambda_hook_sdk
147 24
lex.js
in lambda/cfn/lib
430 19
lex.js
in lambda/fulfillment/lib/middleware
252 16
specialtyBotRouter.js
in lambda/fulfillment/lib/middleware
258 15
util.js
in templates
671 13
kendra.js
in lambda/es-proxy-layer/lib
438 13
qnabot_csv2json_converter.js
in utility_scripts/csv2json_converter/js
140 12
logging.js
in lambda/qnabot-common-layer/qnabot
125 10
lexRouter.js
in lambda/fulfillment/lib/middleware
258 10
test.js
in templates/master/routes/qa
145 8
query.js
in lambda/es-proxy-layer/lib
450 8
promise.js
in lambda/cfn/lib/util
46 8
kendra_webcrawler.py
in lambda/kendra-webcrawler
144 8
createFAQ.js
in lambda/export
217 7
handler.js
in lambda/es-proxy-layer/lib
144 7
ElasticSearchUpdate.js
in lambda/cfn/lib
88 7
kendra_webcrawler_schedule_updater.py
in lambda/kendra-webcrawler-schedule-updater
119 7
PostUpgradeImport.js
in lambda/cfn/lib
102 6
ApiDeployment.js
in lambda/cfn/lib
79 6
Files With Long Lines (Top 20)

There are 66 files with lines longer than 120 characters. In total, there are 237 long lines.

File# lines# units# long lines
kendra.js
in lambda/es-proxy-layer/lib
438 13 21
qna.js
in lambda/schema
246 - 19
configureCMK.py
in utility_scripts
205 3 11
steps.js
in website/js/components/connect
79 - 10
index.js
in templates/master
275 - 9
qnabot_csv2json_converter.html
in utility_scripts/csv2json_converter
68 - 9
import.vue
in website/js/components
423 - 8
alexa.js
in lambda/fulfillment/lib/middleware
155 6 8
quiz.js
in lambda/schema
143 - 7
util.js
in templates
671 13 6
index.html
in templates/master/cognito/style
108 - 6
lexRouter.js
in lambda/fulfillment/lib/middleware
258 10 6
master.js
in templates/dev
18 - 5
steps.js
in website/js/components/genesys
57 - 5
specialtyBotRouter.js
in lambda/fulfillment/lib/middleware
258 15 5
default-settings.js
in templates/master
100 - 4
qnabot_csv2json_converter.js
in utility_scripts/csv2json_converter/js
140 12 4
kendra_webcrawler_status.py
in lambda/kendra-webcrawler-status
58 4 4
kendraQuery.js
in lambda/es-proxy-layer/lib
156 5 4
lex.js
in lambda/fulfillment/lib/middleware
252 16 4