microsoft / microsoft-r
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 2,678 units with 18,607 lines of code in units (40.5% of code).
    • 0 very complex units (0 lines of code)
    • 3 complex units (250 lines of code)
    • 35 medium complex units (1,577 lines of code)
    • 111 simple units (2,603 lines of code)
    • 2,529 very simple units (14,177 lines of code)
0% | 1% | 8% | 13% | 76%
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% | 16% | 14% | 27% | 41%
cs0% | 0% | 16% | 15% | 68%
java0% | 0% | 3% | 11% | 84%
R0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ml-app-vuejs0% | 12% | 9% | 30% | 47%
R Server Operationalization0% | 5% | 6% | 4% | 84%
ValidateSetup0% | 0% | 30% | 4% | 64%
mlserver-java-clients0% | 0% | 3% | 11% | 84%
MLADS20170% | 0% | 8% | 21% | 70%
ManualTransmissionAzureFunction0% | 0% | 14% | 31% | 53%
Ready20170% | 0% | 0% | 0% | 100%
rserver-arm-templates0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
(function(root, factory)()
in ml-app-vuejs/lib/image-classification-client/src/ApiClient.js
140 45 2
applyMedia = function()
in R Server Operationalization/LoanScoring/LoanScoring/Scripts/respond.js
55 27 1
applyMedia = function()
in R Server Operationalization/PredictOperatingMargin/PredictOperatingMargin/Scripts/respond.js
55 27 1
public async Task SetWorkspaceObjectWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
102 18 5
translate = function()
in R Server Operationalization/LoanScoring/LoanScoring/Scripts/respond.js
33 17 3
translate = function()
in R Server Operationalization/PredictOperatingMargin/PredictOperatingMargin/Scripts/respond.js
33 17 3
public async Task UploadSessionFileWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
100 17 4
exports.convertToType = function()
in ml-app-vuejs/lib/image-classification-client/src/ApiClient.js
49 17 2
public boolean equals()
in mlserver-java-clients/RemoteExecutionApp/java-client/src/main/java/io/swagger/client/model/WebService.java
23 17 1
public bool Equals()
in MLADS2017/WeatherServiceAzureFunction/WeatherService/Model/WebServiceResult.cs
31 16 1
public bool Equals()
in ManualTransmissionAzureFunction/src/ManualTransmissionClient/Model/WebServiceResult.cs
31 16 1
public async Task DeleteWebServiceVersionWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
91 16 4
public async Task DeleteSessionFileWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
91 16 4
public async Task DeleteWorkspaceObjectWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
91 16 4
public async Task LoadSnapshotWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
91 16 4
public List parameterToPairs()
in MLADS2017/WeatherServiceAlexa/alexaDemo/WeatherServiceAwsLambda/src/main/java/io/swagger/client/ApiClient.java
38 15 3
public List parameterToPairs()
in mlserver-java-clients/Alexa-Lambda-Enabled-RainService/microsoft.mlserver.lambda/src/main/java/io/swagger/client/ApiClient.java
38 15 3
public List parameterToPairs()
in mlserver-java-clients/ChatBotClient/java-client/src/main/java/io/swagger/client/ApiClient.java
38 15 3
public List parameterToPairs()
in mlserver-java-clients/RemoteExecutionApp/java-client/src/main/java/io/swagger/client/ApiClient.java
38 15 3
public List parameterToPairs()
in mlserver-java-clients/RxLogitWebService/java-client/src/main/java/io/swagger/client/ApiClient.java
38 15 3