microsoft / jupyter-core
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 133 units with 2,088 lines of code in units (56.0% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 1 medium complex units (136 lines of code)
    • 5 simple units (241 lines of code)
    • 127 very simple units (1,711 lines of code)
0% | 0% | 6% | 11% | 81%
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
cs0% | 0% | 6% | 11% | 81%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 34% | 23% | 42%
src/Engines0% | 0% | 0% | 15% | 84%
src/ResultEncoding0% | 0% | 0% | 20% | 79%
src/Servers0% | 0% | 0% | 0% | 100%
src/ShellRouting0% | 0% | 0% | 0% | 100%
src/Extensions0% | 0% | 0% | 0% | 100%
src/Symbols0% | 0% | 0% | 0% | 100%
src/Data0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public int InstallKernelSpec()
in src/KernelApplication.cs
136 12 8
public CommandType GetNextCommand()
in src/Engines/InputParser.cs
30 10 4
public virtual async Task Complete()
in src/Engines/BaseEngine.cs
47 8 2
91 8 1
internal MimeBundle EncodeForDisplay()
in src/Engines/BaseEngine.cs
32 6 1
public EncodedData? Encode()
in src/ResultEncoding/Table.cs
41 6 1
public async Task HandleAsync()
in src/Engines/CompleteRequestHandler.cs
51 5 1
public override async Task HandleAsync()
in src/Engines/ExecuteRequestHandler.cs
40 5 3
private void EventLoop()
in src/Servers/HeartbeatServer.cs
27 5 0
private void EventLoop()
in src/Servers/ShellServer.cs
28 5 1
public ISymbol? Resolve()
in src/Engines/BaseEngine.cs
10 4 1
public virtual async Task ExecuteMagic()
in src/Engines/BaseEngine.cs
21 4 3
protected async virtual Task ExecutionTaskForMessage()
in src/Engines/ExecuteRequestHandler.cs
88 4 3
private bool StartsWithMagic()
in src/Engines/InputParser.cs
22 4 3
public EncodedData? Encode()
in src/ResultEncoding/BasicEncoders.cs
15 4 1
public EncodedData? Encode()
in src/ResultEncoding/BasicEncoders.cs
17 4 1
public static string ToMarkdownHtml()
in src/ResultEncoding/SymbolEncoder.cs
11 4 2
public void RegisterFallback()
in src/ShellRouting/ShellRouter.cs
26 4 1
public override IPAddress ReadJson()
in src/Data/Serialization.cs
15 3 5
public void RegisterDisplayEncoder()
in src/Engines/BaseEngine.cs
9 3 1