microsoft / hol-azure-machine-learning
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 83 units with 1,161 lines of code in units (20.6% 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)
    • 2 simple units (33 lines of code)
    • 81 very simple units (1,128 lines of code)
0% | 0% | 0% | 2% | 97%
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% | 0% | 0% | 4% | 95%
cs0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts0% | 0% | 0% | 15% | 85%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/js0% | 0% | 0% | 0% | 100%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers0% | 0% | 0% | 0% | 100%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/lib0% | 0% | 0% | 0% | 100%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Reporting0% | 0% | 0% | 0% | 100%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/App_Start0% | 0% | 0% | 0% | 100%
appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
exitFullscreen: function()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
14 6 0
function onReceiveMessage()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
19 6 1
public async Task UpdateConnectionInformation()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Reporting/PowerBIReportClient.cs
31 5 5
fullscreen: function()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
12 5 0
function raiseCustomEvent()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
22 5 3
function getEmbedUrl()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
12 4 0
function init()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
7 4 1
function embed()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
16 4 1
public async Task Upload()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers/DashboardController.cs
35 3 1
public async Task WaitForImportToComplete()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Reporting/PowerBIReportClient.cs
9 3 1
getAccessToken: function()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
10 3 0
isFullscreen: function()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
9 3 0
function getEmbedUrl()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Scripts/powerbi.js
11 3 0
$()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/js/theming.js
9 3 1
$()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/js/theming.js
9 3 1
$()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/js/theming.js
9 3 1
public ActionResult Create()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers/AircraftController.cs
11 2 1
public ActionResult Edit()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers/AircraftController.cs
11 2 2
public ActionResult Delete()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers/AircraftController.cs
11 2 2
private IList GetWorkspaceReports()
in appx/Power BI Embedded/powerbi-sample-app/powerbi-sample-app/Controllers/DashboardController.cs
14 2 1