aws-samples / amazon-transcribe-comprehend-podcast
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 38 units with 833 lines of code in units (48.8% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (378 lines of code)
    • 4 simple units (90 lines of code)
    • 28 very simple units (365 lines of code)
0% | 0% | 45% | 10% | 43%
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% | 45% | 10% | 43%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 49% | 11% | 38%
cfn-custom-resource/es-cognito0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def lambda_handler()
in src/process_podcast_rss.py
85 25 2
def chunk_up_transcript()
in src/process_transcription_full_text.py
62 24 2
def lambda_handler()
in src/process_podcast_item.py
67 20 2
def lambda_handler()
in src/podcast_transcribe.py
44 14 2
def parse_detected_entities_response()
in src/process_transcription_full_text.py
23 13 2
def lambda_handler()
in src/process_transcription_paragraph.py
97 11 2
def find_duplicate_person()
in src/common_lib.py
13 7 1
def parse_detected_key_phrases_response()
in src/process_transcription_full_text.py
17 7 1
def clean_up_entity_results()
in src/process_transcription_full_text.py
19 7 1
def process_transcript()
in src/process_transcription_full_text.py
41 6 3
def get_user_credentials()
in cfn-custom-resource/es-cognito/main.py
11 5 1
def send_response()
in src/random_string.py
12 5 4
def index_keywords()
in src/upload_to_elasticsearch.py
27 5 3
def lambda_handler()
in src/download_podcast.py
36 5 2
def configure_cognito_lambda_handler()
in cfn-custom-resource/es-cognito/main.py
14 4 2
def lambda_handler()
in src/random_string.py
26 4 2
def lambda_handler()
in src/create_transcribe_vocabulary.py
47 4 2
def lambda_handler()
in src/upload_to_elasticsearch.py
10 3 2
def index_episode()
in src/upload_to_elasticsearch.py
27 3 3
def run_comprehend()
in src/process_transcription_paragraph.py
8 3 1