aws-samples / amazon-transcribe-comprehend-medical-twilio
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 19 units with 241 lines of code in units (37.5% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (55 lines of code)
    • 2 medium size units (48 lines of code)
    • 5 small units (78 lines of code)
    • 11 very small units (60 lines of code)
0% | 22% | 19% | 32% | 24%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
js0% | 22% | 19% | 32% | 24%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
lib0% | 23% | 20% | 32% | 23%
ROOT0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
exports.createPresignedURL = function()
in lib/aws-signature-v4.js
55 13 6
function getAwsEventTransformerStream()
in lib/transcribe-service.js
27 4 0
function getAudioEventMessageTransformer()
in lib/transcribe-service.js
21 1 0
function getSignedTranscribeWebsocketUrl()
in lib/transcribe-service.js
19 1 2
constructor()
in lib/transcribe-service.js
17 1 3
16 1 5
exports.createSignature = function()
in lib/aws-signature-v4.js
13 1 5
13 4 2
10 1 1
8 1 1
8 1 1
exports.createStringToSign = function()
in lib/aws-signature-v4.js
8 1 4
function hmac()
in lib/aws-signature-v4.js
6 1 3
stop()
in lib/transcribe-service.js
4 1 0
function()
in server.js
4 2 2
3 1 3
function toTime()
in lib/aws-signature-v4.js
3 1 1
function toDate()
in lib/aws-signature-v4.js
3 1 1
function hash()
in lib/aws-signature-v4.js
3 1 2