aws-samples / amazon-polly-metahumans
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 37 units with 385 lines of code in units (52.3% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (52 lines of code)
    • 5 medium size units (140 lines of code)
    • 6 small units (82 lines of code)
    • 25 very small units (111 lines of code)
0% | 13% | 36% | 21% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
cpp0% | 17% | 29% | 26% | 26%
cs0% | 0% | 80% | 0% | 19%
h0% | 0% | 0% | 0% | 100%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
Source/AmazonPollyMetaHuman/Private0% | 17% | 30% | 27% | 23%
Source/AmazonPollyMetaHuman0% | 0% | 66% | 0% | 33%
Source0% | 0% | 0% | 0% | 100%
Source/AmazonPollyMetaHuman/Public0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
Aws::Polly::Model::VoiceId ToPollyVoiceId()
in Source/AmazonPollyMetaHuman/Private/VoiceId.cpp
52 28 1
Aws::Polly::Model::Engine ToPollyVoiceEngine()
in Source/AmazonPollyMetaHuman/Private/VoiceId.cpp
38 28 1
EViseme GetVisemeValueFromString()
in Source/AmazonPollyMetaHuman/Private/Viseme.cpp
29 2 1
public AmazonPollyMetaHuman()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.Build.cs
29 2 1
void USpeechComponent::GenerateVisemeEvents()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
23 5 1
private void AddLibrary()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.Build.cs
21 3 1
void USpeechComponent::GenerateSpeech()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
16 3 5
void USpeechComponent::PlayNextViseme()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
16 3 0
void USpeechComponent::GenerateSpeechSync()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
13 5 2
bool USpeechComponent::SynthesizeVisemes()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
13 2 2
PollyOutcome PollyClient::SynthesizeSpeech()
in Source/AmazonPollyMetaHuman/Private/PollyClient.cpp
13 2 1
bool USpeechComponent::SynthesizeAudio()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
11 2 2
Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyVisemeRequest()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
9 1 2
void FAmazonPollyMetaHumanModule::ShutdownModule()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.cpp
8 2 0
Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyAudioRequest()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
8 1 2
void FAmazonPollyMetaHumanModule::StartupModule()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.cpp
7 1 0
TArray UnrealAWSUtils::PreparePollyData()
in Source/AmazonPollyMetaHuman/Private/UnrealAWSUtils.cpp
7 1 1
public AmazonPollyMetaHumanEditorTarget()
in Source/AmazonPollyMetaHumanEditor.Target.cs
6 1 1
long GetStreamSize()
in Source/AmazonPollyMetaHuman/Private/UnrealAWSUtils.cpp
6 1 1
public AmazonPollyMetaHumanTarget()
in Source/AmazonPollyMetaHuman.Target.cs
6 1 1