Conditional Complexity Overall
  • There are 92 units with 929 lines of code in units (57.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 2 medium complex units (115 lines of code)
    • 6 simple units (132 lines of code)
    • 84 very simple units (682 lines of code)
0% | 0% | 12% | 14% | 73%
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
rs0% | 0% | 19% | 10% | 69%
py0% | 0% | 7% | 16% | 76%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src0% | 0% | 19% | 10% | 69%
tiktoken0% | 0% | 11% | 18% | 69%
scripts0% | 0% | 0% | 31% | 68%
tiktoken_ext0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
40 13 2
75 12 3
28 9 2
40 8 3
24 7 0
21 6 1
9 6 2
10 6 1
16 5 1
14 5 1
30 5 3
33 5 3
12 4 2
26 4 5
11 4 1
11 4 2
6 3 0
7 3 1
10 3 3
7 3 0
9 3 3
6 2 0
6 2 2
4 2 2
2 2 2
4 2 2
7 2 2
10 2 1
6 2 2
2 2 1
5 2 5
8 2 3
2 2 2
2 2 2
6 2 1
29 2 0
6 2 2
14 2 2
3 2 3
15 2 4
18 2 4
14 2 4
6 2 2
6 2 3
8 1 0
2 1 1
6 1 4
6 1 4
4 1 4
7 1 5
About This Analysis
  • 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...