facebookresearch / habitat-matterport3d-dataset
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 35 units with 265 lines of code in units (25.1% of code).
    • 0 very long units (0 lines of code)
    • 1 long units (80 lines of code)
    • 1 medium size units (21 lines of code)
    • 4 small units (46 lines of code)
    • 29 very small units (118 lines of code)
0% | 30% | 7% | 17% | 44%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
py0% | 30% | 7% | 17% | 44%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
quality_comparison0% | 45% | 11% | 19% | 22%
common0% | 0% | 0% | 22% | 78%
scale_comparison0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
def measure_reconstruction_completeness()
in quality_comparison/measure_reconstruction_completeness.py
80 11 1
def is_image_defective()
in quality_comparison/measure_reconstruction_completeness.py
21 7 1
def measure_visual_fidelity()
in quality_comparison/measure_visual_fidelity.py
13 3 1
def robust_load_sim()
in common/utils.py
11 2 1
def extract_rgb_images()
in quality_comparison/extract_mp3d_real.py
11 3 2
def extract_rgb_images()
in quality_comparison/extract_gibson_real.py
11 3 2
def get_filtered_scenes()
in common/utils.py
10 4 2
9 2 2
def extract_images_in_uniform_grid()
in quality_comparison/extract_sim.py
9 1 0
def robust_load_sim()
in quality_comparison/extract_sim.py
8 2 2
7 2 2
def compute_navigation_complexity()
in scale_comparison/metrics.py
6 1 0
def get_scene_name()
in quality_comparison/extract_sim.py
6 2 2
def get_triangle_areas()
in scale_comparison/metrics.py
5 1 1
def compute_metrics()
in scale_comparison/compute_scene_metrics.py
5 1 0
def get_topdown_map()
in common/utils.py
5 1 0
def make_habitat_configuration()
in quality_comparison/extract_sim.py
5 1 4
def compute_scene_clutter()
in scale_comparison/metrics.py
4 1 0
def compute_floor_area()
in scale_comparison/metrics.py
4 1 0
def get_random_quaternion()
in common/utils.py
4 1 0