aws-samples / cvat-on-aws-china
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 20 units with 218 lines of code in units (7.4% 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 (20 lines of code)
    • 19 very simple units (198 lines of code)
0% | 0% | 0% | 9% | 90%
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% | 9% | 90%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
cvat-serverless/functions0% | 0% | 0% | 42% | 57%
cvat-serverless/functions/endpoints0% | 0% | 0% | 0% | 100%
cvat-serverless0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def function_invoke()
in cvat-serverless/functions/views.py
20 8 1
def _compute_similarity_matrix()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
24 4 5
def get_label()
in cvat-serverless/functions/endpoints/tf_rcnn.py
8 4 1
def function_list()
in cvat-serverless/functions/views.py
10 3 1
def function_detail()
in cvat-serverless/functions/views.py
10 3 2
def call()
in cvat-serverless/functions/endpoints/pth_rcnn.py
15 3 1
def infer()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
8 3 6
def infer()
in cvat-serverless/functions/endpoints/tf_rcnn.py
17 3 1
def call()
in cvat-serverless/functions/endpoints/tf_rcnn.py
22 3 1
def main()
in cvat-serverless/manage.py
11 2 0
def _match_boxes()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
8 2 3
def get_result_dict()
in cvat-serverless/functions/views.py
4 1 1
def call()
in cvat-serverless/functions/endpoints/foolwood_siammask.py
9 1 1
def infer()
in cvat-serverless/functions/endpoints/pth_rcnn.py
9 1 1
def call()
in cvat-serverless/functions/endpoints/shiyinzhang_iog.py
9 1 1
def sagemaker_call()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
14 1 1
def _match_crops()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
6 1 2
def call()
in cvat-serverless/functions/endpoints/openvino_reidentification.py
11 1 1
def create()
in cvat-serverless/functions/serializers.py
2 1 2
def update()
in cvat-serverless/functions/serializers.py
1 1 3