microsoft / microsoft-r
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 2,678 units with 18,607 lines of code in units (40.5% of code).
    • 4 very long units (538 lines of code)
    • 10 long units (750 lines of code)
    • 114 medium size units (3,628 lines of code)
    • 267 small units (3,829 lines of code)
    • 2,283 very small units (9,862 lines of code)
2% | 4% | 19% | 20% | 53%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java2% | <1% | 11% | 20% | 65%
js9% | 7% | 48% | 22% | 12%
cs1% | 9% | 27% | 20% | 40%
R0% | 17% | 18% | 32% | 30%
py0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
mlserver-java-clients3% | <1% | 11% | 19% | 65%
ml-app-vuejs12% | 0% | 44% | 29% | 13%
ValidateSetup5% | 28% | 12% | 15% | 37%
R Server Operationalization0% | 8% | 27% | 19% | 44%
MLADS20170% | 0% | 26% | 22% | 51%
ManualTransmissionAzureFunction0% | 0% | 43% | 24% | 32%
Ready20170% | 0% | 0% | 0% | 100%
rserver-arm-templates0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
private void initialize()
in mlserver-java-clients/RemoteExecutionApp/java-client/src/main/java/mlserver/webservices/ServiceManagementApp.java
169 2 0
(function(root, factory)()
in ml-app-vuejs/lib/image-classification-client/src/ApiClient.js
140 45 2
private void initialize()
in mlserver-java-clients/RemoteExecutionApp/java-client/src/main/java/mlserver/remoteExecute/RemoteExecuteApp.java
127 2 0
public async Task SetWorkspaceObjectWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
102 18 5
public async Task UploadSessionFileWithHttpMessagesAsync()
in ValidateSetup/src/ValidateSetup/MRSServer.cs
100 17 4
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 static void Main()
in ValidateSetup/src/ValidateSetup/Program.cs
65 9 1
private void initialize()
in mlserver-java-clients/ChatBotClient/java-client/src/main/java/com/mlsdemo/chatbot/ChatClient.java
59 6 0
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
spBasePredictGalaxyClass <- function()
in R Server Operationalization/GalaxyClassificationWorkflow/code/deploy/deploySqlModel.R
52 3 2
exports.convertToType = function()
in ml-app-vuejs/lib/image-classification-client/src/ApiClient.js
49 17 2
private void applySslSettings()
in MLADS2017/WeatherServiceAlexa/alexaDemo/WeatherServiceAwsLambda/src/main/java/io/swagger/client/ApiClient.java
48 8 0
private void applySslSettings()
in mlserver-java-clients/Alexa-Lambda-Enabled-RainService/microsoft.mlserver.lambda/src/main/java/io/swagger/client/ApiClient.java
48 8 0
private void applySslSettings()
in mlserver-java-clients/ChatBotClient/java-client/src/main/java/io/swagger/client/ApiClient.java
48 8 0
private void applySslSettings()
in mlserver-java-clients/RemoteExecutionApp/java-client/src/main/java/io/swagger/client/ApiClient.java
48 8 0
private void applySslSettings()
in mlserver-java-clients/RxLogitWebService/java-client/src/main/java/io/swagger/client/ApiClient.java
48 8 0