facebookresearch / habitat-sim
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 402 files with 54,025 lines of code.
    • 4 very long files (5,819 lines of code)
    • 13 long files (8,553 lines of code)
    • 65 medium size files (19,152 lines of codeclsfd_ftr_w_mp_ins)
    • 64 small files (9,319 lines of code)
    • 256 very small files (11,182 lines of code)
10% | 15% | 35% | 17% | 20%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
cpp17% | 23% | 31% | 13% | 13%
cmake31% | 16% | 34% | 15% | 2%
h0% | 5% | 41% | 20% | 32%
py0% | 10% | 47% | 20% | 21%
frag0% | 0% | 41% | 16% | 41%
js0% | 0% | 0% | 59% | 40%
cu0% | 0% | 0% | 100% | 0%
vert0% | 0% | 0% | 0% | 100%
yaml0% | 0% | 0% | 0% | 100%
glsl0% | 0% | 0% | 0% | 100%
html0% | 0% | 0% | 0% | 100%
css0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
toml0% | 0% | 0% | 0% | 100%
cuh0% | 0% | 0% | 0% | 100%
geom0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
in0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/esp7% | 17% | 35% | 17% | 21%
src/utils79% | 0% | 0% | 7% | 12%
src/cmake31% | 16% | 35% | 15% | 2%
src_python/habitat_sim0% | 12% | 39% | 22% | 24%
tools0% | 0% | 91% | 0% | 8%
ROOT0% | 0% | 81% | 0% | 18%
src/shaders0% | 0% | 30% | 12% | 56%
conda-build0% | 0% | 0% | 100% | 0%
conda-build/habitat-sim0% | 0% | 0% | 0% | 100%
conda-build/common0% | 0% | 0% | 0% | 100%
conda-build/habitat-sim-mutex0% | 0% | 0% | 0% | 100%
conda-build/withbullet0% | 0% | 0% | 0% | 100%
conda-build/headless0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
ResourceManager.cpp
in src/esp/assets
2046 50
viewer.cpp
in src/utils/viewer
1684 47
cmake
FindMagnum.cmake
in src/cmake
1080 -
PathFinder.cpp
in src/esp/nav
1009 53
URDFParser.cpp
in src/esp/io
974 21
Simulator.cpp
in src/esp/sim
859 31
HelperCuda.h
in src/esp/gfx/cuda_helpers
838 8
BulletArticulatedObject.cpp
in src/esp/physics/bullet
767 41
BulletPhysicsManager.cpp
in src/esp/physics/bullet
714 25
PTexMeshData.cpp
in src/esp/assets
661 15
simulator.py
in src_python/habitat_sim
562 43
cmake
FindCorrade.cmake
in src/cmake
556 -
PhysicsObjectBindings.cpp
in src/esp/bindings
546 6
AttributesBindings.cpp
in src/esp/bindings
529 1
bindings_js.cpp
in src/esp/bindings_js
522 15
BulletURDFImporter.cpp
in src/esp/physics/bullet
514 7
CubeMap.cpp
in src/esp/gfx
511 17
datasets_download.py
in src_python/habitat_sim/utils
496 9
PhysicsManager.cpp
in src/esp/physics
483 32
PbrShader.cpp
in src/esp/gfx
467 2
Simulator.h
in src/esp/sim
452 56
Renderer.cpp
in src/esp/gfx
428 32
cmake
FindMagnumPlugins.cmake
in src/cmake
421 -
HelperString.h
in src/esp/gfx/cuda_helpers
395 7
PhysicsManager.h
in src/esp/physics
393 41
BulletRigidObject.cpp
in src/esp/physics/bullet
390 20
ResourceManager.h
in src/esp/assets
388 17
setup.py
in root
384 11
AttributesManagersBindings.cpp
in src/esp/bindings
381 2
Configuration.h
in src/esp/core
380 42
Configuration.cpp
in src/esp/core
377 23
SceneDatasetAttributesManager.cpp
in src/esp/metadata/managers
372 6
RenderTarget.cpp
in src/esp/gfx
363 24
ArticulatedObject.h
in src/esp/physics
358 63
Spimpl.h
in src/esp/core
345 17
PrimitiveAssetAttributes.h
in src/esp/metadata/attributes
333 53
Geo.cpp
in src/esp/geo
332 9
mobile_manipulator.py
in src_python/habitat_sim/robots
328 37
frag
pbr.frag
in src/shaders
324 10
cmake
dependencies.cmake
in src/cmake
302 -
StageAttributesManager.cpp
in src/esp/metadata/managers
299 5
SimBindings.cpp
in src/esp/bindings
297 1
ManagedContainer.h
in src/esp/core/managedContainers
294 26
MetadataMediator.cpp
in src/esp/metadata
291 10
run-clang-tidy.py
in tools
290 8
VoxelUtils.cpp
in src/esp/geo
284 7
SceneInstanceAttributes.cpp
in src/esp/metadata/attributes
279 11
URDFImporter.cpp
in src/esp/physics
277 9
ObjectAttributes.h
in src/esp/metadata/attributes
273 89
ManagedFileBasedContainer.h
in src/esp/core/managedContainers
268 16
Files With Most Units (Top 20)
File# lines# units
ObjectAttributes.h
in src/esp/metadata/attributes
273 89
ArticulatedObject.h
in src/esp/physics
358 63
Simulator.h
in src/esp/sim
452 56
PathFinder.cpp
in src/esp/nav
1009 53
PrimitiveAssetAttributes.h
in src/esp/metadata/attributes
333 53
ResourceManager.cpp
in src/esp/assets
2046 50
viewer.cpp
in src/utils/viewer
1684 47
simulator.py
in src_python/habitat_sim
562 43
Configuration.h
in src/esp/core
380 42
SceneInstanceAttributes.h
in src/esp/metadata/attributes
253 42
PhysicsManager.h
in src/esp/physics
393 41
ManagedArticulatedObject.h
in src/esp/physics/objectWrappers
264 41
BulletArticulatedObject.cpp
in src/esp/physics/bullet
767 41
ManagedPhysicsObjectBase.h
in src/esp/physics/objectWrappers
235 40
PhysicsObjectBase.h
in src/esp/physics
212 38
mobile_manipulator.py
in src_python/habitat_sim/robots
328 37
RigidBase.h
in src/esp/physics
146 34
PhysicsManager.cpp
in src/esp/physics
483 32
Renderer.cpp
in src/esp/gfx
428 32
ManagedRigidBase.h
in src/esp/physics/objectWrappers
204 31
Files With Long Lines (Top 20)

There are 22 files with lines longer than 120 characters. In total, there are 89 long lines.

File# lines# units# long lines
cmake
FindMagnum.cmake
in src/cmake
1080 - 23
SimBindings.cpp
in src/esp/bindings
297 1 11
cmake
FindMagnumPlugins.cmake
in src/cmake
421 - 9
PhysicsBindings.cpp
in src/esp/bindings
225 1 8
datasets_download.py
in src_python/habitat_sim/utils
496 9 5
cmake
FindMagnumIntegration.cmake
in src/cmake
262 - 5
cmake
FindCorrade.cmake
in src/cmake
556 - 4
GfxBindings.cpp
in src/esp/bindings
209 1 3
Bindings.cpp
in src/esp/bindings
104 1 3
cmake
dependencies.cmake
in src/cmake
302 - 3
create_basis_compressed_glbs.py
in tools
225 11 2
PhysicsObjectBindings.cpp
in src/esp/bindings
546 6 2
cmake
FindAssimp.cmake
in src/cmake
103 - 2
robot_interface.py
in src_python/habitat_sim/robots
18 6 1
mobile_manipulator.py
in src_python/habitat_sim/robots
328 37 1
viewer.html
in src/esp/bindings_js
36 - 1
SceneBindings.cpp
in src/esp/bindings
169 1 1
GfxReplayBindings.cpp
in src/esp/bindings
76 1 1
MetadataMediatorBindings.cpp
in src/esp/bindings
72 1 1
cmake
FindBullet.cmake
in src/cmake
219 - 1