openai / openai-knowledge-retrieval
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 189 units with 2,682 lines of code in units (38.9% of code).
    • 1 very complex units (221 lines of code)
    • 2 complex units (222 lines of code)
    • 10 medium complex units (528 lines of code)
    • 24 simple units (564 lines of code)
    • 152 very simple units (1,147 lines of code)
8% | 8% | 19% | 21% | 42%
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
py10% | 10% | 23% | 16% | 39%
ts0% | 0% | 15% | 26% | 57%
tsx0% | 0% | 0% | 45% | 54%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
stores52% | 0% | 10% | 12% | 24%
ingestion0% | 50% | 6% | 14% | 28%
evals0% | 7% | 47% | 9% | 34%
app0% | 0% | 12% | 32% | 55%
cli0% | 0% | 0% | 54% | 45%
retrieval0% | 0% | 0% | 13% | 86%
extensions0% | 0% | 0% | 58% | 41%
models0% | 0% | 0% | 0% | 100%
telemetry0% | 0% | 0% | 0% | 100%
prompts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
221 60 2
163 39 1
59 26 3
59 23 3
89 20 3
35 19 3
42 17 1
79 15 5
46 14 3
80 12 1
57 12 3
22 12 2
19 11 1
11 10 1
20 9 1
20 9 1
24 8 1
11 8 1
18 8 2
13 8 2
23 8 1
44 8 0
11 7 3
11 7 1
17 7 2
15 7 2
26 7 1
12 7 1
19 7 1
59 7 1
98 7 5
17 6 1
8 6 1
12 6 2
9 6 0
15 6 1
51 6 2
6 5 2
10 5 1
37 5 2
18 5 3
3 5 1
13 5 1
16 5 2
28 5 2
23 5 2
39 5 1
14 5 0
10 4 2
11 4 2