aws-samples / aws-textract-comprehend-lex-chatbot
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 20 units with 326 lines of code in units (43.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (186 lines of code)
    • 5 small units (76 lines of code)
    • 10 very small units (64 lines of code)
0% | 0% | 57% | 23% | 19%
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% | 57% | 23% | 19%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src/lambda0% | 0% | 57% | 23% | 19%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def handler()
in src/lambda/lex-manager.py
50 10 2
def get_details()
in src/lambda/meaningful-conversations-lex-lambda.py
47 12 1
def get_notes()
in src/lambda/meaningful-conversations-lex-lambda.py
39 9 1
def get_summary()
in src/lambda/meaningful-conversations-lex-lambda.py
28 6 1
def __extract_all_pages()
in src/lambda/extract_text_from_textract_async_job_output.py
22 6 5
def handler()
in src/lambda/extract_text_from_textract_async_job_output.py
20 2 2
def create_bot()
in src/lambda/lex-manager.py
17 3 0
def handler()
in src/lambda/create_texttract_detect_text_async_job.py
17 1 2
def elicit_slot()
in src/lambda/meaningful-conversations-lex-lambda.py
11 1 5
def dispatch()
in src/lambda/meaningful-conversations-lex-lambda.py
11 1 1
def confirm_intent()
in src/lambda/meaningful-conversations-lex-lambda.py
10 1 4
def close()
in src/lambda/meaningful-conversations-lex-lambda.py
10 1 3
def delete_bot()
in src/lambda/lex-manager.py
8 2 1
def delegate()
in src/lambda/meaningful-conversations-lex-lambda.py
8 1 2
def build_validation_result()
in src/lambda/meaningful-conversations-lex-lambda.py
6 1 3
def extract_text()
in src/lambda/extract_text_from_textract_async_job_output.py
5 1 2
def __get_textract_result()
in src/lambda/extract_text_from_textract_async_job_output.py
5 1 2
def try_ex()
in src/lambda/meaningful-conversations-lex-lambda.py
5 2 1
def safe_int()
in src/lambda/meaningful-conversations-lex-lambda.py
4 2 1
def lambda_handler()
in src/lambda/meaningful-conversations-lex-lambda.py
3 1 2