microsoft / PhoneticMatching
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 236 units with 2,275 lines of code in units (28.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (56 lines of code)
    • 15 simple units (420 lines of code)
    • 220 very simple units (1,799 lines of code)
0% | 0% | 2% | 18% | 79%
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
hpp0% | 0% | 21% | 16% | 62%
cs0% | 0% | 0% | 16% | 83%
ts0% | 0% | 0% | 51% | 48%
cpp0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/maluuba/speech0% | 0% | 21% | 16% | 62%
src/cs/Microsoft.PhoneticMatching0% | 0% | 0% | 25% | 75%
ts/matchers0% | 0% | 0% | 72% | 27%
src/cs/PhoneticMatchingTests0% | 0% | 0% | 6% | 93%
src/cs/PhoneticMatchingPerfTests0% | 0% | 0% | 44% | 55%
ts/nlp0% | 0% | 0% | 0% | 100%
src/maluuba0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
static void New()
in src/maluuba/speech/nodejs/fuzzymatcher.hpp
56 11 1
private void AccuracyTest()
in src/cs/PhoneticMatchingPerfTests/FuzzyMatcherPerfTester.cs
44 10 3
private Pronounceable GetPronounceableAt()
in src/cs/Microsoft.PhoneticMatching/Matchers/FuzzyMatcher/AbstractFuzzyMatcher.cs
36 8 1
public double Distance()
in src/cs/Microsoft.PhoneticMatching/Distance/EnHybridDistance.cs
24 7 2
public EnContactMatcher()
in src/cs/Microsoft.PhoneticMatching/Matchers/ContactMatcher/EnContactMatcher.cs
38 7 3
public override bool Equals()
in src/cs/PhoneticMatchingTests/Matchers/PlaceMatcherTests.cs
22 7 1
protected IList SelectMatches()
in src/cs/Microsoft.PhoneticMatching/Matchers/BaseMatcher.cs
28 6 1
public bool Equals()
in src/cs/Microsoft.PhoneticMatching/Matchers/BaseMatcher.cs
12 6 2
public EnPlaceMatcher()
in src/cs/Microsoft.PhoneticMatching/Matchers/PlaceMatcher/EnPlaceMatcher.cs
38 6 3
protected static StringBuilder CallNative()
in src/cs/Microsoft.PhoneticMatching/NativeResourceWrapper.cs
28 6 1
public override bool Equals()
in src/cs/PhoneticMatchingTests/Matchers/BaseContactMatcherTester.cs
18 6 1
private static bool AreCategoriesEqual()
in src/cs/PhoneticMatchingTests/Matchers/PlaceMatcherTests.cs
19 6 2
static void KNearestWithin()
in src/maluuba/speech/nodejs/fuzzymatcher.hpp
43 6 1
private selectMatches()
in ts/matchers/contactmatcher.ts
21 6 1
private addNameVariations()
in ts/matchers/placematcher.ts
28 6 4
private selectMatches()
in ts/matchers/placematcher.ts
21 6 1
public IList Tokenize()
in src/cs/Microsoft.PhoneticMatching/Nlp/Tokenizer/SplittingTokenizer.cs
27 5 1
internal void Run()
in src/cs/PhoneticMatchingPerfTests/FuzzyMatcherPerfTester.cs
41 5 2
static void NearestWithin()
in src/maluuba/speech/nodejs/fuzzymatcher.hpp
37 5 1
static void KNearest()
in src/maluuba/speech/nodejs/fuzzymatcher.hpp
37 5 1