microsoft / cognitive-services-speech-sdk-js
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 232 files with 17,355 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,028 lines of code)
    • 17 medium size files (5,035 lines of codeclsfd_ftr_w_mp_ins)
    • 33 small files (4,691 lines of code)
    • 179 very small files (5,601 lines of code)
0% | 11% | 29% | 27% | 32%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts0% | 11% | 29% | 27% | 30%
js0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/common.speech0% | 23% | 36% | 16% | 23%
src/sdk/Transcription0% | 55% | 20% | 0% | 23%
src/sdk/Audio0% | 0% | 63% | 32% | 4%
src/common.speech/Transcription0% | 0% | 38% | 35% | 25%
src/common.browser0% | 0% | 34% | 48% | 17%
src/sdk0% | 0% | 11% | 39% | 49%
src/common0% | 0% | 15% | 38% | 45%
src/common.speech/ServiceMessages0% | 0% | 0% | 0% | 100%
ROOT0% | 0% | 0% | 0% | 100%
ci0% | 0% | 0% | 0% | 100%
src/audioworklet0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
Conversation.ts
in src/sdk/Transcription
853 55
ServiceRecognizerBase.ts
in src/common.speech
621 34
DialogServiceAdapter.ts
in src/common.speech
554 14
SynthesisAdapterBase.ts
in src/common.speech
483 19
AudioOutputFormat.ts
in src/sdk/Audio
480 8
ConversationServiceAdapter.ts
in src/common.speech/Transcription
411 13
SpeechSynthesizer.ts
in src/sdk
399 21
ConversationTranslator.ts
in src/sdk/Transcription
321 22
AudioInputStream.ts
in src/sdk/Audio
318 30
MicAudioSource.ts
in src/common.browser
288 9
TranslationServiceRecognizer.ts
in src/common.speech
268 5
WebsocketMessageAdapter.ts
in src/common.browser
259 6
SpeakerAudioDestination.ts
in src/sdk/Audio
243 19
ConversationTranslatorRecognizer.ts
in src/common.speech/Transcription
237 17
SynthesisTurn.ts
in src/common.speech
230 21
IntentServiceRecognizer.ts
in src/common.speech
229 4
List.ts
in src/common
227 1
TranscriptionServiceRecognizer.ts
in src/common.speech
222 6
ServiceTelemetryListener.Internal.ts
in src/common.speech
211 4
RequestSession.ts
in src/common.speech
209 27
Promise.ts
in src/common
198 11
CertChecks.ts
in src/common.browser
196 7
SpeechServiceRecognizer.ts
in src/common.speech
195 3
IntentRecognizer.ts
in src/sdk
189 18
SpeechConfig.ts
in src/sdk
186 36
FileAudioSource.ts
in src/common.browser
178 7
AudioConfig.ts
in src/sdk/Audio
176 28
ConversationTranslatorInterfaces.ts
in src/common.speech/Transcription
175 7
SpeechTranslationConfig.ts
in src/sdk
173 35
TranscriberRecognizer.ts
in src/common.speech/Transcription
159 16
RecognizerConfig.ts
in src/common.speech
156 16
ConversationManager.ts
in src/common.speech/Transcription
145 3
TranslationRecognizer.ts
in src/sdk
145 19
Queue.ts
in src/common
143 3
RestMessageAdapter.ts
in src/common.browser
137 7
DialogServiceConnector.ts
in src/sdk
135 15
Recognizer.ts
in src/sdk
134 13
PCMRecorder.ts
in src/common.browser
132 4
RecognitionEvents.ts
in src/common.speech
131 21
AudioOutputStream.ts
in src/sdk/Audio
126 17
WebsocketMessageFormatter.ts
in src/common.speech
122 -
SpeechRecognizer.ts
in src/sdk
121 17
VoiceProfileEnrollmentResult.ts
in src/sdk
121 13
BaseAudioPlayer.ts
in src/sdk/Audio
120 10
VoiceProfileClient.ts
in src/sdk
119 14
ConnectionEvents.ts
in src/common
118 23
ConversationTranslatorEventArgs.ts
in src/common.speech/Transcription
117 23
AudioStreamFormat.ts
in src/sdk/Audio
117 7
ReplayableAudioNode.ts
in src/common.browser
111 7
OCSPEvents.ts
in src/common
108 17
Files With Most Units (Top 20)
File# lines# units
Conversation.ts
in src/sdk/Transcription
853 55
SpeechConfig.ts
in src/sdk
186 36
SpeechTranslationConfig.ts
in src/sdk
173 35
ServiceRecognizerBase.ts
in src/common.speech
621 34
AudioInputStream.ts
in src/sdk/Audio
318 30
AudioConfig.ts
in src/sdk/Audio
176 28
RequestSession.ts
in src/common.speech
209 27
ConversationTranslatorEventArgs.ts
in src/common.speech/Transcription
117 23
TranslationResponsePayload.ts
in src/common.speech/Transcription/ServiceMessages
96 23
ConnectionEvents.ts
in src/common
118 23
ParticipantResponsePayload.ts
in src/common.speech/Transcription/ServiceMessages
94 22
ConversationTranslator.ts
in src/sdk/Transcription
321 22
RecognitionEvents.ts
in src/common.speech
131 21
SynthesisTurn.ts
in src/common.speech
230 21
SpeechSynthesizer.ts
in src/sdk
399 21
SynthesisAdapterBase.ts
in src/common.speech
483 19
SpeakerAudioDestination.ts
in src/sdk/Audio
243 19
TranslationRecognizer.ts
in src/sdk
145 19
IntentRecognizer.ts
in src/sdk
189 18
ConversationTranslatorRecognizer.ts
in src/common.speech/Transcription
237 17
Files With Long Lines (Top 20)

There are 93 files with lines longer than 120 characters. In total, there are 406 long lines.

File# lines# units# long lines
ConversationServiceAdapter.ts
in src/common.speech/Transcription
411 13 26
Conversation.ts
in src/sdk/Transcription
853 55 24
DialogServiceAdapter.ts
in src/common.speech
554 14 22
ServiceRecognizerBase.ts
in src/common.speech
621 34 22
ConversationTranslator.ts
in src/sdk/Transcription
321 22 18
SynthesisAdapterBase.ts
in src/common.speech
483 19 15
SpeechSynthesizer.ts
in src/sdk
399 21 13
WebsocketMessageAdapter.ts
in src/common.browser
259 6 11
SpeechServiceRecognizer.ts
in src/common.speech
195 3 11
TranscriptionServiceRecognizer.ts
in src/common.speech
222 6 11
TranslationServiceRecognizer.ts
in src/common.speech
268 5 10
SpeechTranslationConfig.ts
in src/sdk
173 35 8
CertChecks.ts
in src/common.browser
196 7 7
SpeakerIdMessageAdapter.ts
in src/common.speech
96 12 7
SpeechConnectionFactory.ts
in src/common.speech
87 - 6
ConversationTranslatorRecognizer.ts
in src/common.speech/Transcription
237 17 6
TranslationRecognizer.ts
in src/sdk
145 19 6
VoiceProfileEnrollmentResult.ts
in src/sdk
121 13 6
MicAudioSource.ts
in src/common.browser
288 9 5
DialogConnectorFactory.ts
in src/common.speech
61 - 5