microsoft / Deep3DFaceReconstruction
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 62 units with 986 lines of code in units (89.5% of code).
    • 0 very long units (0 lines of code)
    • 3 long units (175 lines of code)
    • 10 medium size units (347 lines of code)
    • 19 small units (287 lines of code)
    • 30 very small units (177 lines of code)
0% | 17% | 35% | 29% | 17%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 17% | 35% | 29% | 17%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 17% | 35% | 29% | 17%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def Render_block()
in face_decoder.py
62 5 9
def demo()
in demo.py
57 5 0
def inception_resnet_v1()
in inception_resnet_v1.py
56 1 6
def R_Net()
in networks.py
48 2 2
46 5 0
def train()
in train.py
42 1 0
def __init__()
in options.py
41 3 3
37 2 2
def preprocessing()
in preprocess_img.py
32 1 0
def load_dataset()
in data_loader.py
29 5 2
def Illumination_block()
in face_decoder.py
26 1 4
def Reconstruction_Block()
in face_decoder.py
25 6 3
def reduction_b()
in inception_resnet_v1.py
21 1 1
19 12 1
def block35()
in inception_resnet_v1.py
18 2 5
def Compute_norm()
in face_decoder.py
17 4 3
def block17()
in inception_resnet_v1.py
17 2 5
def block8()
in inception_resnet_v1.py
17 2 5
def summarize()
in reconstruction_model.py
17 2 1
def reduction_a()
in inception_resnet_v1.py
16 1 5