aws-samples / voice-enabled-patient-diary
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 95 units with 1,099 lines of code in units (75.2% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (81 lines of code)
    • 7 simple units (175 lines of code)
    • 86 very simple units (843 lines of code)
0% | 0% | 7% | 15% | 76%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
py0% | 0% | 8% | 18% | 73%
ts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
lambda/src0% | 0% | 15% | 24% | 59%
lambda/src/data_access0% | 0% | 0% | 15% | 84%
lib0% | 0% | 0% | 0% | 100%
lambda/src/common0% | 0% | 0% | 0% | 100%
lib/defaults0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def report_symptom()
in lambda/src/gather_symptom_bot.py
50 16 1
def parse_time_input()
in lambda/src/medication_diary_bot.py
31 11 3
def validate_symptom_input()
in lambda/src/gather_symptom_bot.py
39 10 4
def fall_back()
in lambda/src/gather_symptom_bot.py
21 9 1
def __eq__()
in lambda/src/data_access/user_profile.py
10 8 2
def schedule_outreach_for_participant()
in lambda/src/outreach_scanner.py
37 7 4
def get_item_ddb()
in lambda/src/data_access/ddb_util.py
19 6 3
def update_survey_completion()
in lambda/src/data_access/survey_completion.py
22 6 4
def validate_medication_time()
in lambda/src/medication_diary_bot.py
27 6 4
def lambda_handler()
in lambda/src/check_survey_completion.py
22 5 2
def query_item_ddb()
in lambda/src/data_access/ddb_util.py
19 5 3
def scan_item_ddb()
in lambda/src/data_access/ddb_util.py
19 5 3
def no_symptom()
in lambda/src/gather_symptom_bot.py
23 5 1
def get_next_survey_bot()
in lambda/src/data_access/survey_completion.py
13 4 2
def confirm_symptom()
in lambda/src/gather_symptom_bot.py
15 4 6
constructor()
in lib/epro-voice-stack.ts
110 3 3
def dispatch()
in lambda/src/lex_bot_handler.py
8 3 2
def verify_identity()
in lambda/src/verify_identity_bot.py
33 3 1
def extract_phone_number()
in lambda/src/common/lex_helper.py
7 3 1
def get_attribute()
in lambda/src/common/lex_helper.py
2 3 3