facebookresearch / SEAL_OGB
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 38 units with 731 lines of code in units (63.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 16 medium size units (516 lines of code)
    • 10 small units (156 lines of code)
    • 12 very small units (59 lines of code)
0% | 0% | 70% | 21% | 8%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 0% | 70% | 21% | 8%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
ROOT0% | 0% | 70% | 21% | 8%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def test_multiple_models()
in seal_link_pred.py
43 28 1
def __init__()
in models.py
42 8 10
def __init__()
in models.py
41 5 10
39 3 4
38 7 5
def __init__()
in seal_link_pred.py
35 4 13
def test()
in seal_link_pred.py
33 12 0
31 8 10
def forward()
in models.py
30 8 7
def forward()
in models.py
30 8 7
def process()
in seal_link_pred.py
29 6 1
def PPR()
in utils.py
28 7 2
27 8 6
def forward()
in models.py
25 7 7
def forward()
in models.py
24 8 7
21 3 3
20 2 3
def __init__()
in models.py
19 4 8
def __init__()
in models.py
19 4 8
16 2 4