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).
def lambda_handler() in lca-ai-stack/source/lambda_functions/merge_recording_audio/merge_recording_audio.py
82
12
2
def _prune_state() in lca-ai-stack/source/lambda_functions/call_event_stream_processor/tumbling_window_state/call_state_manager.py
24
11
1
private boolean startStreaming() in lca-ai-stack/source/kvs_transcribe_streaming/src/main/java/com/amazonaws/kvstranscribestreaming/KVSRecordingTask.java
public void writeToDynamoDB() in lca-ai-stack/source/kvs_transcribe_streaming/src/main/java/com/amazonaws/kvstranscribestreaming/TranscribedSegmentWriter.java
private void recursiveStartStream() in lca-ai-stack/source/kvs_transcribe_streaming/src/main/java/com/amazonaws/transcribestreaming/TranscribeStreamingRetryClient.java
33
5
6
public void request() in lca-ai-stack/source/kvs_transcribe_streaming/src/main/java/com/amazonaws/transcribestreaming/FileByteToAudioEventSubscription.java
23
5
1
public void request() in lca-ai-stack/source/kvs_transcribe_streaming/src/main/java/com/amazonaws/transcribestreaming/KVSByteToAudioEventSubscription.java
26
5
1
next: async() in lca-ai-stack/source/ui/src/hooks/use-calls-graphql-api.js