aws-quickstart / quickstart-quantiphi-lex-kendra-backend
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 39 units with 490 lines of code in units (35.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (156 lines of code)
    • 15 small units (230 lines of code)
    • 18 very small units (104 lines of code)
0% | 0% | 31% | 46% | 21%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 31% | 46% | 21%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
functions/source/kendra_search_intent_handler_lambda0% | 0% | 48% | 40% | 10%
functions/source/lex_custom_resource0% | 0% | 17% | 60% | 22%
functions/source/kendra_custom_resource0% | 0% | 22% | 39% | 37%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def answer_result_type()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
31 3 1
def create_lex_intents()
in functions/source/lex_custom_resource/lex_custom_resource.py
28 11 6
def create_kendra_data_source()
in functions/source/kendra_custom_resource/kendra_custom_resource.py
27 2 2
def kendra_search_intent_handler()
in functions/source/kendra_search_intent_handler_lambda/lambda_function.py
25 4 2
def get_remembered_slot_values()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
23 8 2
def lambda_handler()
in functions/source/kendra_search_intent_handler_lambda/lambda_function.py
22 4 2
def create_lex_bot()
in functions/source/lex_custom_resource/lex_custom_resource.py
20 4 5
def create()
in functions/source/lex_custom_resource/lex_custom_resource.py
18 3 2
def get_slot_values()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
18 7 2
def create()
in functions/source/kendra_custom_resource/kendra_custom_resource.py
17 3 2
def create_kendra_faq()
in functions/source/kendra_custom_resource/kendra_custom_resource.py
17 2 2
def get_kendra_answer()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
17 6 1
def poll_create()
in functions/source/lex_custom_resource/lex_custom_resource.py
16 3 2
def delete_intents()
in functions/source/lex_custom_resource/lex_custom_resource.py
16 6 2
def create_lex_slot_types()
in functions/source/lex_custom_resource/lex_custom_resource.py
14 3 1
def create_kendra_index()
in functions/source/kendra_custom_resource/kendra_custom_resource.py
13 2 1
def check_bot_status()
in functions/source/lex_custom_resource/lex_custom_resource.py
13 4 1
def get_latest_slot_values()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
13 2 2
def close()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
13 1 3
def document_result_type()
in functions/source/kendra_search_intent_handler_lambda/helpers.py
13 1 1