tensorflow / graphics
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 928 units with 18,032 lines of code in units (73.3% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (264 lines of code)
    • 33 medium complex units (2,354 lines of code)
    • 66 simple units (3,010 lines of code)
    • 827 very simple units (12,404 lines of code)
0% | 1% | 13% | 16% | 68%
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% | 1% | 13% | 16% | 68%
cc0% | 0% | 15% | 20% | 64%
pyx0% | 0% | 22% | 50% | 26%
js0% | 0% | 0% | 22% | 77%
h0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tensorflow_graphics/projects0% | 2% | 17% | 17% | 62%
tensorflow_graphics/rendering0% | 0% | 9% | 13% | 77%
tensorflow_graphics/util0% | 0% | 26% | 3% | 70%
tensorflow_graphics/geometry0% | 0% | 3% | 26% | 70%
tensorflow_graphics/math0% | 0% | 8% | 0% | 91%
tensorflow_graphics/notebooks0% | 0% | 17% | 12% | 69%
tensorflow_graphics/datasets0% | 0% | 9% | 12% | 78%
tensorflow_graphics/nn0% | 0% | 0% | 18% | 81%
tensorflow_graphics/tensorboard0% | 0% | 0% | 22% | 77%
tensorflow_graphics/io0% | 0% | 0% | 71% | 28%
tensorflow_graphics/image0% | 0% | 0% | 0% | 100%
tensorflow_graphics/g3doc0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
def _val_epoch()
in tensorflow_graphics/projects/points_to_3Dobjects/train_multi_objects/train.py
157 33 9
def val()
in tensorflow_graphics/projects/points_to_3Dobjects/train_multi_objects/train.py
107 27 4
def obj_read_for_gl()
in tensorflow_graphics/projects/points_to_3Dobjects/utils/plot.py
77 24 3
def update()
in tensorflow_graphics/projects/points_to_3Dobjects/utils/evaluator.py
110 21 7
def map_texture()
in tensorflow_graphics/rendering/texture/mipmap.py
80 21 6
def main()
in tensorflow_graphics/projects/cvxnet/eval.py
87 20 1
def preprocess()
in tensorflow_graphics/projects/points_to_3Dobjects/transforms/preprocessor.py
31 19 4
def get_dataset()
in tensorflow_graphics/projects/points_to_3Dobjects/train_multi_objects/train.py
67 19 3
def minimize()
in tensorflow_graphics/math/optimizer/levenberg_marquardt.py
72 18 7
def compare_batch_dimensions()
in tensorflow_graphics/util/shape.py
42 18 11
def main()
in tensorflow_graphics/projects/points_to_3Dobjects/train_multi_objects/train.py
77 18 1
def check_static()
in tensorflow_graphics/util/shape.py
49 17 8
def _eval_detections_per_class()
in tensorflow_graphics/projects/points_to_3Dobjects/utils/evaluator.py
52 17 4
def main()
in tensorflow_graphics/projects/nasa/track.py
167 16 1
def create_generator()
in tensorflow_graphics/projects/gan/architectures_progressive_gan.py
74 16 5
def create_discriminator()
in tensorflow_graphics/projects/gan/architectures_progressive_gan.py
94 16 2
def _broadcast_shape_helper()
in tensorflow_graphics/util/shape.py
26 15 2
def evaluate()
in tensorflow_graphics/projects/points_to_3Dobjects/utils/evaluator.py
52 15 1
def add_detections()
in tensorflow_graphics/projects/points_to_3Dobjects/utils/evaluator.py
122 15 3
pyx
def to_dense()
in tensorflow_graphics/projects/cvxnet/lib/libmise/mise.pyx
24 15 1