awslabs / amazon-transcribe-streaming-sdk
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 176 units with 805 lines of code in units (50.5% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (30 lines of code)
    • 1 simple units (18 lines of code)
    • 174 very simple units (757 lines of code)
0% | 0% | 3% | 2% | 94%
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% | 3% | 2% | 94%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
amazon_transcribe0% | 0% | 3% | 2% | 93%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _encode_header_val()
in amazon_transcribe/eventstream.py
30 14 2
def read()
in amazon_transcribe/structures.py
18 9 2
def prepare_body()
in amazon_transcribe/request.py
15 5 1
def write()
in amazon_transcribe/structures.py
12 5 2
def serialize()
in amazon_transcribe/eventstream.py
13 5 3
def readinto()
in amazon_transcribe/structures.py
13 4 3
def next()
in amazon_transcribe/eventstream.py
8 4 1
def _get_error_message()
in amazon_transcribe/deserialize.py
11 4 2
def parse()
in amazon_transcribe/deserialize.py
10 4 2
def get_chunk()
in amazon_transcribe/httpsession.py
11 3 1
def _get_path()
in amazon_transcribe/httpsession.py
7 3 2
def as_list()
in amazon_transcribe/request.py
2 3 1
def _validate_str()
in amazon_transcribe/request.py
6 3 2
def prepare_params()
in amazon_transcribe/request.py
8 3 1
def _validate_checksum()
in amazon_transcribe/eventstream.py
4 3 3
def to_response_dict()
in amazon_transcribe/eventstream.py
9 3 2
def _parse_headers()
in amazon_transcribe/eventstream.py
8 3 1
def _validate_prelude()
in amazon_transcribe/eventstream.py
5 3 2
def serialize()
in amazon_transcribe/serialize.py
4 2 2
def __init__()
in amazon_transcribe/response.py
5 2 3