aws-samples / amazon-transcribe-post-call-analytics
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 262 units with 4,552 lines of code in units (35.4% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (174 lines of code)
    • 19 medium complex units (1,119 lines of code)
    • 30 simple units (914 lines of code)
    • 212 very simple units (2,345 lines of code)
0% | 3% | 24% | 20% | 51%
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% | 6% | 26% | 22% | 44%
js0% | 0% | 25% | 10% | 63%
tsx0% | 0% | 20% | 20% | 59%
ts0% | 0% | 0% | 23% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
pca-server/src/pca0% | 8% | 29% | 21% | 40%
pca-ui/src/www0% | 0% | 56% | 6% | 36%
aws-kendra-transcribe-media-search/lambda/indexer0% | 0% | 24% | 25% | 50%
aws-kendra-transcribe-media-search/src/search0% | 0% | 10% | 24% | 64%
aws-kendra-transcribe-media-search/src0% | 0% | 44% | 0% | 55%
pca-ui/src/lambda0% | 0% | 0% | 16% | 83%
pca-server/src/copy-samples0% | 0% | 0% | 50% | 49%
pca-server/src/trigger0% | 0% | 0% | 0% | 100%
aws-kendra-transcribe-media-search/lambda/token-enabler0% | 0% | 0% | 0% | 100%
aws-kendra-transcribe-media-search/lambda/build-trigger0% | 0% | 0% | 0% | 100%
aws-kendra-transcribe-media-search/src/services0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def create_turn_by_turn_segments()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
174 48 2
def extract_nlp()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
45 25 2
def create_combined_tca_graphic()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
87 23 1
def list_s3_objects()
in aws-kendra-transcribe-media-search/lambda/indexer/crawler.py
60 23 4
def print_()
in pca-server/src/pca/six.py
50 22 2
function Search()
in pca-ui/src/www/src/routes/Search.js
177 20 1
render()
in aws-kendra-transcribe-media-search/src/App.tsx
45 19 0
function Home()
in pca-ui/src/www/src/routes/Home.js
52 17 1
def build_single_loudness_chart()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
43 17 12
def extract_analytics_categories()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
31 17 2
def lambda_handler()
in pca-server/src/pca/pca-transcribe-eventbridge.py
59 15 2
def submitTranscribeJob()
in pca-server/src/pca/pca-aws-sf-start-transcribe-job.py
88 15 3
def lambda_handler()
in aws-kendra-transcribe-media-search/lambda/indexer/crawler.py
38 15 2
def evaluate_transcribe_mode()
in pca-server/src/pca/pca-aws-sf-start-transcribe-job.py
28 14 2
def create_output_conversation_analytics()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
66 13 1
def parse_transcribe_file()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
49 13 2
def create_simple_entity_entries()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
24 12 2
def process_s3_media_object()
in aws-kendra-transcribe-media-search/lambda/indexer/crawler.py
69 12 8
def __init__()
in pca-server/src/pca/pca-aws-sf-process-turn-by-turn.py
38 11 4
render()
in aws-kendra-transcribe-media-search/src/search/facets/components/Facet.tsx
70 11 0