openai / Video-Pre-Training
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 251 units with 1,994 lines of code in units (70.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (206 lines of code)
    • 13 simple units (303 lines of code)
    • 232 very simple units (1,485 lines of code)
0% | 0% | 10% | 15% | 74%
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
py0% | 0% | 10% | 15% | 74%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 0% | 31% | 34% | 34%
lib0% | 0% | 5% | 10% | 84%
Most Complex Units
Top 50 most complex units
Unit# linesMcCabe index# params
53 22 3
26 18 1
38 13 5
16 13 3
42 12 6
31 12 1
27 10 2
25 10 4
11 9 4
54 8 4
12 7 1
16 7 4
19 7 4
21 7 1
12 7 3
58 7 6
18 6 4
14 6 2
16 6 3
18 5 5
15 5 5
17 5 2
25 5 7
10 5 3
11 5 4
16 5 4
10 5 3
20 5 4
40 5 5
5 4 2
9 4 3
18 4 3
5 4 2
15 4 2
18 4 1
13 4 4
12 4 3
10 4 3
29 4 6
7 4 2
9 4 2
12 4 4
11 4 2
7 3 5
14 3 1
7 3 1
7 3 2
7 3 3
6 3 1
11 3 1