aws-samples / amazon-polly-metahumans
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 37 units with 385 lines of code in units (52.3% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (90 lines of code)
    • 0 medium complex units (0 lines of code)
    • 0 simple units (0 lines of code)
    • 35 very simple units (295 lines of code)
0% | 23% | 0% | 0% | 76%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
cpp0% | 29% | 0% | 0% | 70%
cs0% | 0% | 0% | 0% | 100%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
Source/AmazonPollyMetaHuman/Private0% | 30% | 0% | 0% | 69%
Source/AmazonPollyMetaHuman0% | 0% | 0% | 0% | 100%
Source0% | 0% | 0% | 0% | 100%
Source/AmazonPollyMetaHuman/Public0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex 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
void USpeechComponent::GenerateSpeechSync()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
13 5 2
void USpeechComponent::GenerateVisemeEvents()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
23 5 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
private void AddLibrary()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.Build.cs
21 3 1
void FAmazonPollyMetaHumanModule::ShutdownModule()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.cpp
8 2 0
bool USpeechComponent::SynthesizeAudio()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
11 2 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
EViseme GetVisemeValueFromString()
in Source/AmazonPollyMetaHuman/Private/Viseme.cpp
29 2 1
public AmazonPollyMetaHuman()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.Build.cs
29 2 1
public AmazonPollyMetaHumanEditorTarget()
in Source/AmazonPollyMetaHumanEditor.Target.cs
6 1 1
void MemoryManagerWrapper::FreeMemory()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.cpp
4 1 1
void FAmazonPollyMetaHumanModule::StartupModule()
in Source/AmazonPollyMetaHuman/AmazonPollyMetaHuman.cpp
7 1 0
void USpeechComponent::InitializeComponent()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
4 1 0
EViseme USpeechComponent::GetCurrentViseme()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
4 1 0
bool USpeechComponent::IsSpeaking()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
4 1 0
Aws::Polly::Model::SynthesizeSpeechRequest USpeechComponent::CreatePollyAudioRequest()
in Source/AmazonPollyMetaHuman/Private/SpeechComponent.cpp
8 1 2