awslabs / amazon-polly-tts-for-windows
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 39 units with 1,067 lines of code in units (43.5% of code).
    • 0 very complex units (0 lines of code)
    • 1 complex units (124 lines of code)
    • 5 medium complex units (429 lines of code)
    • 3 simple units (158 lines of code)
    • 30 very simple units (356 lines of code)
0% | 11% | 40% | 14% | 33%
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% | 13% | 45% | 16% | 24%
cs0% | 0% | 0% | 0% | 100%
c0% | 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
installvoices0% | 36% | 32% | 12% | 18%
PollyTTSEngine0% | 0% | 51% | 19% | 29%
PollyPlayer0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
std::pair VoiceForSAPI::GetVoiceHexValue()
in installvoices/VoiceForSapi.cpp
124 29 1
HRESULT CTTSEngObj::OutputSentence()
in PollyTTSEngine/ttsengobj.cpp
133 19 2
STDMETHODIMP CTTSEngObj::Speak()
in PollyTTSEngine/ttsengobj.cpp
83 13 5
int AddVoice()
in installvoices/InstallVoices.cpp
51 13 1
BOOL CTTSEngObj::AddNextSentenceItem()
in PollyTTSEngine/ttsengobj.cpp
102 12 1
voice_map_t SelectedVoicesMap()
in installvoices/InstallVoices.cpp
60 12 1
HRESULT CTTSEngObj::GetNextSentence()
in PollyTTSEngine/ttsengobj.cpp
59 9 1
int wmain()
in installvoices/InstallVoices.cpp
41 9 2
PollySpeechResponse PollyManager::GenerateSpeech()
in PollyTTSEngine/PollyManager.cpp
58 8 1
std::string PollyManager::ParseXMLOutput()
in PollyTTSEngine/PollyManager.cpp
20 5 1
74 5 2
private void LoadVoices()
in PollyPlayer/Form1.cs
17 4 0
static BOOL IsSpace()
in PollyTTSEngine/ttsengobj.cpp
4 4 1
protected override void Dispose()
in PollyPlayer/Form1.Designer.cs
8 3 1
BOOL SearchSet()
in PollyTTSEngine/ttsengobj.cpp
12 3 4
argument_set_t ArgumentSet()
in installvoices/InstallVoices.cpp
14 3 1
STDAPI DllCanUnloadNow()
in PollyTTSEngine/PollyTTSEngine.cpp
4 2 1
std::wstring CTTSEngObj::ReplaceText()
in PollyTTSEngine/ttsengobj.cpp
7 2 3
int RemoveVoice()
in installvoices/InstallVoices.cpp
15 2 1
private void InitializeComponent()
in PollyPlayer/Form1.Designer.cs
68 1 0