microsoft / GenStudio
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 71 units with 905 lines of code in units (20.3% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 4 simple units (116 lines of code)
    • 67 very simple units (789 lines of code)
0% | 0% | 0% | 12% | 87%
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% | 0% | 9% | 90%
js0% | 0% | 0% | 19% | 80%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
website/src0% | 0% | 0% | 19% | 80%
utilities/gan-inversion0% | 0% | 0% | 68% | 31%
utilities/thumbnail-creation0% | 0% | 0% | 36% | 63%
api/ImageSimilarity0% | 0% | 0% | 0% | 100%
utilities0% | 0% | 0% | 0% | 100%
api/BigGAN0% | 0% | 0% | 0% | 100%
api/ProGAN0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
function registerValidSW()
in website/src/serviceWorker.js
33 8 2
def inversion()
in utilities/gan-inversion/02_invert_images.py
41 7 1
def run()
in utilities/thumbnail-creation/thumbnail from category.py
17 6 2
function touchHandler()
in website/src/MapPage/map.js
25 6 1
def generateMatchUrlBatch()
in api/ImageSimilarity/deployment/app.py
20 5 0
def getImage()
in api/ImageSimilarity/deployment/app.py
21 5 2
function firstTimeGenImage()
in website/src/MapPage/map.js
42 5 1
export function register()
in website/src/serviceWorker.js
22 5 1
def sample_with_category()
in api/BigGAN/deployment/app.py
21 4 6
def imgrid()
in api/BigGAN/deployment/app.py
23 4 3
def FindSimilarImages()
in api/ImageSimilarity/deployment/app.py
19 4 0
def generateMatchUrl()
in api/ImageSimilarity/deployment/app.py
18 4 0
def generateMatchBatch()
in api/ImageSimilarity/deployment/app.py
15 4 3
def sample()
in utilities/transition video.py
20 4 6
function checkValidServiceWorker()
in website/src/serviceWorker.js
23 4 2
def sample_with_labels()
in api/BigGAN/deployment/app.py
18 3 6
def interpolate()
in utilities/transition video.py
7 3 3
def window()
in utilities/transition video.py
10 3 2
def run()
in utilities/transition video.py
19 3 4
def run()
in utilities/wall projection.py
17 3 2