aws-samples / aws-lex-v2-bot-analytics
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 29 files with 2,941 lines of code.
    • 1 very long files (1,620 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (213 lines of codeclsfd_ftr_w_mp_ins)
    • 4 small files (561 lines of code)
    • 23 very small files (547 lines of code)
55% | 0% | 7% | 19% | 18%
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
yaml100% | 0% | 0% | 0% | 0%
py0% | 0% | 29% | 16% | 53%
js0% | 0% | 0% | 77% | 22%
toml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
ROOT97% | 0% | 0% | 0% | 2%
src/lambda_functions/bot_tester0% | 0% | 86% | 0% | 13%
src/lambda_functions/cw_custom_widget_nodejs/widgets0% | 0% | 0% | 97% | 2%
src/lambda_functions/cw_metric_filter_cr0% | 0% | 0% | 98% | 1%
src/lambda_functions/cw_custom_widget_python/widgets0% | 0% | 0% | 0% | 100%
src/lambda_functions/cw_custom_widget_python/lib0% | 0% | 0% | 0% | 100%
src/lambda_functions/cw_custom_widget_nodejs0% | 0% | 0% | 0% | 100%
src/lambda_functions/banker_bot0% | 0% | 0% | 0% | 100%
src/lambda_functions/resource_name_cfn_cr0% | 0% | 0% | 0% | 100%
src/lambda_functions/cw_custom_widget_python0% | 0% | 0% | 0% | 100%
src/lambda_functions/cw_custom_widget_nodejs/lib0% | 0% | 0% | 0% | 100%
Longest Files (Top 29)
File# lines# units
template.yaml
in root
1620 -
bot_conversations.py
in src/lambda_functions/bot_tester
213 3
missedUtterance.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
184 -
conversationPath.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
153 2
lambda_function.py
in src/lambda_functions/cw_metric_filter_cr
122 5
heatmap.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
102 3
index.js
in src/lambda_functions/cw_custom_widget_nodejs
80 -
lambda_function.py
in src/lambda_functions/banker_bot
78 10
slots.py
in src/lambda_functions/cw_custom_widget_python/widgets
60 1
session_attributes.py
in src/lambda_functions/cw_custom_widget_python/widgets
44 1
lambda_function.py
in src/lambda_functions/resource_name_cfn_cr
43 3
cw_logs.py
in src/lambda_functions/cw_custom_widget_python/lib
38 1
lambda_function.py
in src/lambda_functions/cw_custom_widget_python
35 1
samconfig.toml
in root
32 -
lambda_function.py
in src/lambda_functions/bot_tester
32 1
logger.py
in src/lambda_functions/cw_custom_widget_python/lib
27 2
runQuery.js
in src/lambda_functions/cw_custom_widget_nodejs/lib
25 -
client.py
in src/lambda_functions/cw_custom_widget_python/lib
20 2
index.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
9 -
prettier.config.js
in root
7 -
index.js
in src/lambda_functions/cw_custom_widget_nodejs/lib
4 -
__init__.py
in src/lambda_functions/cw_custom_widget_python
3 -
__init__.py
in src/lambda_functions/cw_metric_filter_cr
2 -
__init__.py
in src/lambda_functions/resource_name_cfn_cr
2 -
pyproject.toml
in root
2 -
__init__.py
in src/lambda_functions/bot_tester
1 -
__init__.py
in src/lambda_functions/cw_custom_widget_python/lib
1 -
__init__.py
in src/lambda_functions/cw_custom_widget_python/widgets
1 -
__init__.py
in src/lambda_functions/banker_bot
1 -
Files With Most Units (Top 13)
File# lines# units
lambda_function.py
in src/lambda_functions/banker_bot
78 10
lambda_function.py
in src/lambda_functions/cw_metric_filter_cr
122 5
bot_conversations.py
in src/lambda_functions/bot_tester
213 3
heatmap.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
102 3
lambda_function.py
in src/lambda_functions/resource_name_cfn_cr
43 3
logger.py
in src/lambda_functions/cw_custom_widget_python/lib
27 2
client.py
in src/lambda_functions/cw_custom_widget_python/lib
20 2
conversationPath.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
153 2
lambda_function.py
in src/lambda_functions/bot_tester
32 1
cw_logs.py
in src/lambda_functions/cw_custom_widget_python/lib
38 1
session_attributes.py
in src/lambda_functions/cw_custom_widget_python/widgets
44 1
slots.py
in src/lambda_functions/cw_custom_widget_python/widgets
60 1
lambda_function.py
in src/lambda_functions/cw_custom_widget_python
35 1
Files With Long Lines (Top 2)

There are 2 files with lines longer than 120 characters. In total, there are 27 long lines.

File# lines# units# long lines
template.yaml
in root
1620 - 26
conversationPath.js
in src/lambda_functions/cw_custom_widget_nodejs/widgets
153 2 1