facebookresearch / pytorch3d
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 281 files with 36,604 lines of code.
    • 1 very long files (1,541 lines of code)
    • 13 long files (8,870 lines of code)
    • 40 medium size files (12,330 lines of codeclsfd_ftr_w_mp_ins)
    • 46 small files (6,981 lines of code)
    • 181 very small files (6,882 lines of code)
4% | 24% | 33% | 19% | 18%
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
cpp39% | 0% | 18% | 17% | 23%
py0% | 29% | 30% | 21% | 18%
cu0% | 36% | 42% | 17% | 3%
cuh0% | 54% | 24% | 11% | 9%
h0% | 10% | 43% | 19% | 26%
css0% | 0% | 100% | 0% | 0%
bash0% | 0% | 100% | 0% | 0%
js0% | 0% | 0% | 32% | 67%
yaml0% | 0% | 0% | 0% | 100%
cfg0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
pytorch3d/csrc8% | 21% | 35% | 17% | 17%
pytorch3d/renderer0% | 29% | 37% | 15% | 16%
pytorch3d/structures0% | 78% | 15% | 5% | <1%
pytorch3d/io0% | 35% | 48% | 7% | 8%
pytorch3d/ops0% | 19% | 13% | 29% | 37%
pytorch3d/vis0% | 91% | 0% | 0% | 8%
pytorch3d/transforms0% | 0% | 69% | 13% | 16%
pytorch3d/datasets0% | 0% | 62% | 22% | 15%
website/static0% | 0% | 100% | 0% | 0%
packaging0% | 0% | 100% | 0% | 0%
projects/nerf0% | 0% | 16% | 61% | 22%
pytorch3d/loss0% | 0% | 0% | 71% | 28%
website/pages0% | 0% | 0% | 58% | 41%
pytorch3d/common0% | 0% | 0% | 74% | 25%
ROOT0% | 0% | 0% | 93% | 6%
website/core0% | 0% | 0% | 0% | 100%
pytorch3d/utils0% | 0% | 0% | 0% | 100%
packaging/vs20190% | 0% | 0% | 0% | 100%
packaging/vs20170% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
packaging/pytorch3d0% | 0% | 0% | 0% | 100%
website0% | 0% | 0% | 0% | 100%
packaging/linux_wheels0% | 0% | 0% | 0% | 100%
packaging/cub_conda0% | 0% | 0% | 0% | 100%
pytorch3d0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
renderer.cpp
in pytorch3d/csrc/pulsar/pytorch
1541 4
textures.py
in pytorch3d/renderer/mesh
878 58
ply_io.py
in pytorch3d/io
822 34
meshes.py
in pytorch3d/structures
791 55
cameras.py
in pytorch3d/renderer
765 52
renderer.draw.device.h
in pytorch3d/csrc/pulsar/include
724 1
cu
rasterize_meshes.cu
in pytorch3d/csrc/rasterize_meshes
722 -
cuh
geometry_utils.cuh
in pytorch3d/csrc/utils
713 -
pointclouds.py
in pytorch3d/structures
671 40
cu
point_mesh_cuda.cu
in pytorch3d/csrc/point_mesh
665 -
cuh
iou_utils.cuh
in pytorch3d/csrc/iou_box3d
560 -
marching_cubes_data.py
in pytorch3d/ops
530 -
cu
knn.cu
in pytorch3d/csrc/knn
517 -
plotly_vis.py
in pytorch3d/vis
512 12
obj_io.py
in pytorch3d/io
487 12
geometry_utils.h
in pytorch3d/csrc/utils
470 13
renderer.py
in pytorch3d/renderer/points/pulsar
463 8
commands.h
in pytorch3d/csrc/pulsar/cuda
441 3
unified.py
in pytorch3d/renderer/points/pulsar
421 7
cu
rasterize_points.cu
in pytorch3d/csrc/rasterize_points
413 -
rasterize_meshes_cpu.cpp
in pytorch3d/csrc/rasterize_meshes
392 7
points_to_volumes.py
in pytorch3d/ops
382 8
rasterize_meshes.py
in pytorch3d/renderer/mesh
368 11
point_mesh_cuda.h
in pytorch3d/csrc/point_mesh
359 12
experimental_gltf_io.py
in pytorch3d/io
357 15
cu
rasterize_coarse.cu
in pytorch3d/csrc/rasterize_coarse
350 -
cuh
dispatch.cuh
in pytorch3d/csrc/utils
346 -
point_mesh_cpu.cpp
in pytorch3d/csrc/point_mesh
338 27
renderer.render.device.h
in pytorch3d/csrc/pulsar/include
332 1
cu
points_to_volumes.cu
in pytorch3d/csrc/points_to_volumes
321 -
commands.h
in pytorch3d/csrc/pulsar/host
319 17
transform3d.py
in pytorch3d/transforms
301 30
raysampling.py
in pytorch3d/renderer/implicit
300 10
volumes.py
in pytorch3d/structures
292 29
off_io.py
in pytorch3d/io
284 11
renderer.forward.device.h
in pytorch3d/csrc/pulsar/include
282 1
clip.py
in pytorch3d/renderer/mesh
274 6
rasterize_meshes.h
in pytorch3d/csrc/rasterize_meshes
271 2
renderer.h
in pytorch3d/csrc/pulsar/include
270 1
custom.css
in website/static/css
266 -
shader.py
in pytorch3d/renderer/mesh
262 18
iou_utils.h
in pytorch3d/csrc/iou_box3d
260 15
r2n2.py
in pytorch3d/datasets/r2n2
257 4
cu
face_areas_normals.cu
in pytorch3d/csrc/face_areas_normals
256 -
pkg_helpers.bash
in packaging
253 -
rotation_conversions.py
in pytorch3d/transforms
228 23
cu
sample_farthest_points.cu
in pytorch3d/csrc/sample_farthest_points
223 -
cuh
index_utils.cuh
in pytorch3d/csrc/utils
222 -
utils.py
in pytorch3d/datasets/r2n2
219 11
nerf_renderer.py
in projects/nerf/nerf
217 5
Files With Most Units (Top 20)
File# lines# units
textures.py
in pytorch3d/renderer/mesh
878 58
meshes.py
in pytorch3d/structures
791 55
cameras.py
in pytorch3d/renderer
765 52
pointclouds.py
in pytorch3d/structures
671 40
ply_io.py
in pytorch3d/io
822 34
transform3d.py
in pytorch3d/transforms
301 30
volumes.py
in pytorch3d/structures
292 29
point_mesh_cpu.cpp
in pytorch3d/csrc/point_mesh
338 27
rotation_conversions.py
in pytorch3d/transforms
228 23
shader.py
in pytorch3d/renderer/mesh
262 18
commands.h
in pytorch3d/csrc/pulsar/host
319 17
lighting.py
in pytorch3d/renderer
146 16
perspective_n_points.py
in pytorch3d/ops
148 16
iou_utils.h
in pytorch3d/csrc/iou_box3d
260 15
experimental_gltf_io.py
in pytorch3d/io
357 15
utils.py
in pytorch3d/renderer
153 14
geometry_utils.h
in pytorch3d/csrc/utils
470 13
stats.py
in projects/nerf/nerf
199 12
point_mesh_cuda.h
in pytorch3d/csrc/point_mesh
359 12
obj_io.py
in pytorch3d/io
487 12
Files With Long Lines (Top 3)

There are 3 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
pkg_helpers.bash
in packaging
253 - 9
Tutorial.js
in website/core
64 1 2
index.js
in website/pages/en
190 1 1