awsdocs / amazon-rekognition-developer-guide
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 69 units with 1,650 lines of code in units (61.7% 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)
    • 6 simple units (221 lines of code)
    • 63 very simple units (1,429 lines of code)
0% | 0% | 0% | 13% | 86%
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
java0% | 0% | 0% | 13% | 86%
py0% | 0% | 0% | 32% | 67%
cs0% | 0% | 0% | 6% | 93%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
java_examples/stored_video0% | 0% | 0% | 25% | 74%
python_examples/stored_video0% | 0% | 0% | 36% | 63%
dotnet_examples/image0% | 0% | 0% | 6% | 93%
java_examples/image0% | 0% | 0% | 6% | 93%
java_examples/streaming_video0% | 0% | 0% | 0% | 100%
python_examples/image0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def main()
in code_examples/python_examples/stored_video/python-rek-video.py
37 8 1
public static void main()
in code_examples/java_examples/stored_video/java-rek-video.java
48 7 1
private static void GetResultsFaceSearchCollection()
in code_examples/java_examples/stored_video/java-rek-video.java
42 7 0
public static void ShowBoundingBoxPositions()
in code_examples/java_examples/image/java-rotate-image.java
33 6 4
def GetResultsFaceSearchCollection()
in code_examples/python_examples/stored_video/python-rek-video.py
25 6 2
public static void ShowBoundingBoxPositions()
in code_examples/dotnet_examples/image/net-image-orientation-bounding-box.cs
36 6 4
public static void main()
in code_examples/java_examples/image/java-list-collections.java
21 5 1
public static void main()
in code_examples/java_examples/image/java-list-faces-In-collection.java
23 5 1
public static void main()
in code_examples/java_examples/image/java-list-faces-in-collection.java
23 5 1
void GetResultsLabels()
in code_examples/java_examples/stored_video/java-lambda-handler-sns.java
30 5 2
private static void GetResultsLabels()
in code_examples/java_examples/stored_video/java-rek-video.java
30 5 0
private static void GetResultsFaces()
in code_examples/java_examples/stored_video/java-rek-video.java
26 5 0
private static void GetResultsPersons()
in code_examples/java_examples/stored_video/java-rek-video.java
27 5 0
private static void GetResultsCelebrities()
in code_examples/java_examples/stored_video/java-rek-video.java
32 5 0
private static void GetResultsModerationLabels()
in code_examples/java_examples/stored_video/java-rek-video.java
29 5 0
def ShowBoundingBoxPositions()
in code_examples/python_examples/image/python-image-orientation-bounding-box.py
19 5 4
public static void Example()
in code_examples/dotnet_examples/image/net-list-collections.cs
21 5 0
public static void Example()
in code_examples/dotnet_examples/image/net-list-faces.cs
22 5 0
public static void main()
in code_examples/java_examples/image/java-rotate-image.java
48 4 1
public static void main()
in code_examples/java_examples/image/java-detect-faces.java
30 4 1