microsoft / vision-ai-developer-kit
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 258 units with 2,852 lines of code in units (28.7% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (245 lines of code)
    • 9 medium complex units (440 lines of code)
    • 16 simple units (327 lines of code)
    • 230 very simple units (1,840 lines of code)
0% | 8% | 15% | 11% | 64%
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
js0% | 17% | 17% | 10% | 54%
py0% | 0% | 13% | 11% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
camera-sdk/sdk_api_docs/_static0% | 17% | 17% | 10% | 54%
camera-sdk/iotccsdk0% | 0% | 20% | 17% | 61%
machine-learning-notebooks/02-mobilenet-transfer-learning-scripts0% | 0% | 17% | 0% | 82%
machine-learning-notebooks0% | 0% | 5% | 17% | 76%
camera-sdk0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function eq()
in camera-sdk/sdk_api_docs/_static/underscore-1.3.1.js
58 41 3
this.stemWord = function()
in camera-sdk/sdk_api_docs/_static/language_data.js
111 29 1
performTermsSearch : function()
in camera-sdk/sdk_api_docs/_static/searchtools.js
76 27 4
def configure_preview()
in camera-sdk/iotccsdk/camera.py
48 20 6
(function()()
in camera-sdk/sdk_api_docs/_static/underscore-1.3.1.js
102 20 1
def create_image_lists()
in machine-learning-notebooks/02-mobilenet-transfer-learning-scripts/retrain.py
54 18 3
query : function()
in camera-sdk/sdk_api_docs/_static/searchtools.js
63 16 1
performObjectSearch : function()
in camera-sdk/sdk_api_docs/_static/searchtools.js
53 15 2
def configure_preview()
in machine-learning-notebooks/camera.py
30 15 6
def start()
in camera-sdk/iotccsdk/frame_iterators.py
49 11 2
var each = _.each = _.forEach = function()
in camera-sdk/sdk_api_docs/_static/underscore-1.3.1.js
16 11 3
def create_model_info()
in machine-learning-notebooks/02-mobilenet-transfer-learning-scripts/retrain.py
25 11 2
def get_inferences()
in camera-sdk/iotccsdk/camera.py
30 10 1
jQuery.uaMatch = function()
in camera-sdk/sdk_api_docs/_static/doctools.js
13 9 1
_.reduceRight = _.foldr = function()
in camera-sdk/sdk_api_docs/_static/underscore-1.3.1.js
11 9 4
_.indexOf = function()
in camera-sdk/sdk_api_docs/_static/underscore-1.3.1.js
11 9 3
def connect()
in camera-sdk/iotccsdk/ipcprovider.py
31 8 1
function highlight()
in camera-sdk/sdk_api_docs/_static/doctools.js
40 8 2
$()
in camera-sdk/sdk_api_docs/_static/doctools.js
19 8 1
def __send_request()
in camera-sdk/iotccsdk/ipcprovider.py
25 7 5