anthropics / anthropic-sdk-java
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 393 units with 3,503 lines of code in units (28.1% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 3 medium complex units (146 lines of code)
    • 12 simple units (505 lines of code)
    • 378 very simple units (2,852 lines of code)
0% | 0% | 4% | 14% | 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
kt0% | 0% | 5% | 14% | 79%
java0% | 0% | 2% | 14% | 82%
kts0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
anthropic-java-example0% | 0% | 2% | 14% | 82%
anthropic-java-aws0% | 0% | 38% | 0% | 61%
anthropic-java-bedrock0% | 0% | 22% | 25% | 51%
anthropic-java-core0% | 0% | 0% | 10% | 89%
anthropic-java-vertex0% | 0% | 0% | 84% | 15%
anthropic-java-foundry0% | 0% | 0% | 47% | 52%
anthropic-java-mcp0% | 0% | 0% | 0% | 100%
buildSrc0% | 0% | 0% | 0% | 100%
anthropic-java-client-okhttp0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
50 18 0
45 18 0
51 15 2
33 10 2
26 9 1
29 9 1
61 8 1
38 8 3
136 8 1
19 7 1
21 7 2
30 7 1
40 6 2
21 6 3
51 6 1
16 5 3
25 5 0
9 5 1
38 5 2
48 5 2
44 5 4
14 5 1
15 5 1
19 5 2
25 5 1
13 5 0
20 5 1
11 5 0
53 4 1
39 4 2
14 4 0
14 4 2
24 4 2
8 4 1
8 4 1
8 4 1
8 4 1
8 4 1
8 4 1
8 4 1
8 4 1
22 4 1
18 4 1
15 4 1
12 4 1
18 4 0
15 4 1
12 4 1
51 4 1
38 3 1