aws-robotics / tts-ros1
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 30 units with 296 lines of code in units (72.9% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 1 simple units (33 lines of code)
    • 29 very simple units (263 lines of code)
0% | 0% | 0% | 11% | 88%
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% | 0% | 11% | 88%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tts/src/tts0% | 0% | 0% | 12% | 87%
tts/scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _synthesize_speech_and_save()
in tts/src/tts/amazonpolly.py
33 10 2
def retrieve_credentials()
in tts/src/tts/amazonpolly.py
26 5 1
def _make_audio_file_fullpath()
in tts/src/tts/amazonpolly.py
10 4 3
def _node_request_handler()
in tts/src/tts/amazonpolly.py
24 4 2
def do_speak()
in tts/scripts/tts_node.py
21 4 1
def __init__()
in tts/src/tts/synthesizer.py
9 3 3
def _parse_request_or_raise()
in tts/src/tts/synthesizer.py
8 3 2
def get_ros_param()
in tts/src/tts/amazonpolly.py
7 3 2
def _generate_user_agent_suffix()
in tts/src/tts/amazonpolly.py
9 3 1
def _call_engine()
in tts/src/tts/synthesizer.py
7 2 2
def _node_request_handler()
in tts/src/tts/synthesizer.py
8 2 2
def main()
in tts/src/tts/synthesizer.py
26 2 0
def __init__()
in tts/src/tts/amazonpolly.py
9 2 5
def _get_polly_client()
in tts/src/tts/amazonpolly.py
22 2 6
def _dispatch()
in tts/src/tts/amazonpolly.py
7 2 2
def __init__()
in tts/src/tts/synthesizer.py
2 1 2
def __call__()
in tts/src/tts/synthesizer.py
6 1 2
def __init__()
in tts/src/tts/synthesizer.py
2 1 1
def __call__()
in tts/src/tts/synthesizer.py
5 1 2
def start()
in tts/src/tts/synthesizer.py
5 1 3