facebookresearch / fbooja
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 64 units with 1,052 lines of code in units (29.2% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (178 lines of code)
    • 2 medium complex units (282 lines of code)
    • 6 simple units (304 lines of code)
    • 54 very simple units (288 lines of code)
0% | 16% | 26% | 28% | 27%
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% | 16% | 26% | 28% | 27%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
ROOT0% | 16% | 26% | 28% | 27%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def cs_fft()
in admm.py
89 29 7
def cs_fft()
in admm2.py
89 27 7
def bootstrap2()
in bootstrap2.py
143 12 10
def bootstrap()
in bootstrap.py
139 11 10
58 10 8
def jackknife()
in jackknife.py
72 10 7
55 9 8
def jackknife2()
in jackknife2.py
77 8 7
def adm()
in admm.py
21 6 6
def adm()
in admm2.py
21 6 6
def randradialineset()
in radialines.py
22 5 3
def zero_pad()
in admm.py
14 4 4
def __mul__()
in ctorch.py
11 4 2
def testbootstrap()
in bootstrap.py
21 3 8
def cat()
in ctorch.py
4 3 2
def _fft()
in ctorch.py
21 3 4
def testjackknife()
in jackknife.py
18 3 6
def zero_pad()
in admm2.py
13 3 4
16 3 7
12 2 7