facebookresearch / VCMeshConv
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 88 units with 1,711 lines of code in units (87.2% of code).
    • 1 very long units (105 lines of code)
    • 3 long units (242 lines of code)
    • 23 medium size units (699 lines of code)
    • 37 small units (531 lines of code)
    • 24 very small units (134 lines of code)
6% | 14% | 40% | 31% | 7%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
h13% | 21% | 52% | 11% | 1%
py0% | 11% | 36% | 36% | 16%
cpp0% | 0% | 18% | 76% | 5%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
GraphSampling10% | 15% | 44% | 27% | 2%
GraphAutoEncoder0% | 11% | 36% | 36% | 16%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
bool LoadOBJ_withcolor()
in GraphSampling/meshLoader.h
105 18 4
bool LoadOBJ()
in GraphSampling/meshLoader.h
93 17 3
def read_config()
in GraphAutoEncoder/graphAE_param_iso.py
81 15 2
bool LoadOFF()
in GraphSampling/meshLoader.h
68 7 3
def forward2()
in GraphAutoEncoder/graphVAESSW.py
47 6 5
def forward()
in GraphAutoEncoder/graphVAESSW.py
46 6 5
vector get_center_points_lst()
in GraphSampling/meshPooler.h
42 10 1
def __init__()
in GraphAutoEncoder/graphVAESSW.py
41 7 8
void save_colored_obj_pool_receptive_field()
in GraphSampling/meshPooler_visualizer.h
34 5 3
bool is_connection_map_good()
in GraphSampling/meshPooler.h
33 7 0
void compute_pool_and_unpool_map()
in GraphSampling/meshPooler.h
33 6 3
void save_colored_obj_pool_receptive_field()
in GraphSampling/meshPooler_visualizer.h
33 5 3
bool SaveOBJ()
in GraphSampling/meshLoader.h
32 4 4
def forward()
in GraphAutoEncoder/graphVAE_train.py
31 4 7
vector get_p_connection_lst()
in GraphSampling/meshPooler.h
31 5 2
vector get_neighborID_lst_lst()
in GraphSampling/meshCNN.h
31 7 2
bool can_be_center()
in GraphSampling/meshPooler.h
28 6 4
void save_obj_with_colored_sample_points_all_layers()
in GraphSampling/meshPooler_visualizer.h
28 5 3
bool SaveOBJ()
in GraphSampling/meshLoader.h
27 4 3
25 2 1