aws-samples / amazon-transcribe-output-word-document
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 27 units with 994 lines of code in units (92.6% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (152 lines of code)
    • 7 medium complex units (491 lines of code)
    • 6 simple units (216 lines of code)
    • 13 very simple units (135 lines of code)
0% | 15% | 49% | 21% | 13%
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% | 15% | 49% | 21% | 13%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
python0% | 15% | 49% | 21% | 13%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def create_turn_by_turn_segments()
in python/ts-to-word.py
152 27 2
def write_transcribe_text()
in python/ts-to-word.py
71 21 5
def write()
in python/ts-to-word.py
143 20 3
def build_call_loudness_charts()
in python/ts-to-word.py
82 20 6
def generate_document()
in python/ts-to-word.py
77 20 0
def build_single_loudness_chart()
in python/ts-to-word.py
41 17 10
def write_detected_categories()
in python/ts-to-word.py
43 14 2
34 12 2
def write_header_graphs()
in python/ts-to-word.py
72 10 3
def write_analytics_sentiment()
in python/ts-to-word.py
49 9 2
def write_confidence_scores()
in python/ts-to-word.py
47 8 3
def set_transcript_text_style()
in python/ts-to-word.py
14 7 4
def generate_sentiment()
in python/ts-to-word.py
17 7 2
def merge_speaker_segments()
in python/ts-to-word.py
17 6 1
def write_comprehend_sentiment()
in python/ts-to-word.py
57 3 3
8 2 1
def insert_category_row()
in python/ts-to-word.py
10 2 4
def __init__()
in python/ts-to-word.py
15 1 1
def convert_timestamp()
in python/ts-to-word.py
5 1 1
def set_repeat_table_header()
in python/ts-to-word.py
6 1 1