id: 1 unit: async function postInference() file: lambda-function/src/controllers/sagemakerController.js start line: 13 end line: 93 size: 48 LOC McCabe index: 8 number of parameters: 2 id: 2 unit: function applyPredictionsToImage() file: src/js/app.js start line: 189 end line: 239 size: 37 LOC McCabe index: 3 number of parameters: 0 id: 3 unit: async function postEndpoints() file: lambda-function/src/controllers/sagemakerController.js start line: 102 end line: 152 size: 33 LOC McCabe index: 4 number of parameters: 2 id: 4 unit: async function submitInference() file: src/js/app.js start line: 89 end line: 142 size: 31 LOC McCabe index: 5 number of parameters: 0 id: 5 unit: async function setSagemakerEndpoints() file: src/js/app.js start line: 144 end line: 173 size: 22 LOC McCabe index: 3 number of parameters: 0 id: 6 unit: function addClassInput() file: src/js/app.js start line: 249 end line: 269 size: 18 LOC McCabe index: 2 number of parameters: 0 id: 7 unit: function getPredictionHtmlPrettyPrint() file: src/js/app.js start line: 286 end line: 311 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 8 unit: function getPredictionLabel() file: src/js/app.js start line: 313 end line: 324 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 9 unit: function validateUserInputs() file: src/js/app.js start line: 175 end line: 186 size: 8 LOC McCabe index: 4 number of parameters: 0 id: 10 unit: fr.onload = function() file: src/js/app.js start line: 63 end line: 78 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 11 unit: function removeClassInput() file: src/js/app.js start line: 272 end line: 279 size: 7 LOC McCabe index: 3 number of parameters: 0 id: 12 unit: function apiHealthController() file: lambda-function/src/controllers/apiHealthController.js start line: 4 end line: 18 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 13 unit: function getHealth() file: lambda-function/src/controllers/apiHealthController.js start line: 7 end line: 13 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 14 unit: function thresholdUpdate() file: src/js/app.js start line: 241 end line: 245 size: 5 LOC McCabe index: 3 number of parameters: 0 id: 15 unit: function router() file: lambda-function/src/routes/sagemakerRoutes.js start line: 8 end line: 13 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 16 unit: function imageSelected() file: src/js/app.js start line: 59 end line: 82 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 17 unit: function router() file: lambda-function/src/routes/apiHealthRoutes.js start line: 8 end line: 13 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 18 unit: function sagemakerController() file: lambda-function/src/controllers/sagemakerController.js start line: 4 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 19 unit: throw Error() file: src/js/app.js start line: 126 end line: 127 size: 2 LOC McCabe index: 2 number of parameters: 1 id: 20 unit: throw Error() file: src/js/app.js start line: 156 end line: 157 size: 2 LOC McCabe index: 2 number of parameters: 1