openai / shap-e
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 68 files with 9,962 lines of code.
    • 0 very long files (0 lines of code)
    • 3 long files (2,038 lines of code)
    • 14 medium size files (4,162 lines of code)
    • 18 small files (2,664 lines of code)
    • 33 very small files (1,098 lines of code)
0% | 20% | 41% | 26% | 11%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: grouped by folders | grouped by size | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 20% | 41% | 26% | 11%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
shap_e0% | 20% | 41% | 26% | 11%
Longest Files (Top 50)
File# lines# units
channels_encoder.py
in shap_e/models/transmitter
776 36
gaussian_diffusion.py
in shap_e/diffusion
755 44
blender_script.py
in shap_e/rendering/blender
507 31
_mc_table.py
in shap_e/rendering
450 -
renderer.py
in shap_e/models/stf
421 14
encoding.py
in shap_e/models/nn
398 15
transformer.py
in shap_e/models/generation
398 26
pc_encoder.py
in shap_e/models/transmitter
339 16
ops.py
in shap_e/models/nn
315 32
renderer.py
in shap_e/models/nerf
264 4
k_diffusion.py
in shap_e/diffusion
242 22
renderer.py
in shap_e/models/nerstf
238 6
ray.py
in shap_e/models/nerf
233 15
pointnet2_utils.py
in shap_e/models/nn
222 14
data_util.py
in shap_e/util
222 7
perceiver.py
in shap_e/models/generation
212 10
pytorch3d_util.py
in shap_e/rendering
208 10
pretrained_clip.py
in shap_e/models/generation
194 19
model.py
in shap_e/models/nerf
193 7
mc.py
in shap_e/rendering
181 3
params_proj.py
in shap_e/models/transmitter
174 13
multiview_encoder.py
in shap_e/models/transmitter
168 5
mlp.py
in shap_e/models/stf
160 8
configs.py
in shap_e/models
153 1
base.py
in shap_e/models/transmitter
151 19
mlp.py
in shap_e/models/nerstf
151 7
point_cloud.py
in shap_e/rendering
141 12
volume.py
in shap_e/models
137 11
renderer.py
in shap_e/models
136 9
meta.py
in shap_e/models/nn
130 16
camera.py
in shap_e/models/nn
129 13
render.py
in shap_e/rendering/blender
127 4
download.py
in shap_e/models
119 7
image_util.py
in shap_e/util
116 11
cast.py
in shap_e/rendering/raycast
104 4
view_data.py
in shap_e/rendering
100 19
bottleneck.py
in shap_e/models/transmitter
97 17
collections.py
in shap_e/util
94 11
checkpoint.py
in shap_e/models/nn
90 5
mesh.py
in shap_e/rendering
78 5
sample.py
in shap_e/diffusion
78 3
notebooks.py
in shap_e/util
76 4
view_data.py
in shap_e/rendering/blender
66 5
types.py
in shap_e/rendering/raycast
66 5
pooled_mlp.py
in shap_e/models/generation
63 5
ply_util.py
in shap_e/rendering
45 1
render.py
in shap_e/rendering/raycast
45 1
base.py
in shap_e/models/stf
39 2
io.py
in shap_e/util
28 2
latent_diffusion.py
in shap_e/models/generation
27 2
Files With Most Units (Top 50)
File# lines# units
gaussian_diffusion.py
in shap_e/diffusion
755 44
channels_encoder.py
in shap_e/models/transmitter
776 36
ops.py
in shap_e/models/nn
315 32
blender_script.py
in shap_e/rendering/blender
507 31
transformer.py
in shap_e/models/generation
398 26
k_diffusion.py
in shap_e/diffusion
242 22
base.py
in shap_e/models/transmitter
151 19
pretrained_clip.py
in shap_e/models/generation
194 19
view_data.py
in shap_e/rendering
100 19
bottleneck.py
in shap_e/models/transmitter
97 17
meta.py
in shap_e/models/nn
130 16
pc_encoder.py
in shap_e/models/transmitter
339 16
encoding.py
in shap_e/models/nn
398 15
ray.py
in shap_e/models/nerf
233 15
pointnet2_utils.py
in shap_e/models/nn
222 14
renderer.py
in shap_e/models/stf
421 14
camera.py
in shap_e/models/nn
129 13
params_proj.py
in shap_e/models/transmitter
174 13
point_cloud.py
in shap_e/rendering
141 12
volume.py
in shap_e/models
137 11
image_util.py
in shap_e/util
116 11
collections.py
in shap_e/util
94 11
perceiver.py
in shap_e/models/generation
212 10
pytorch3d_util.py
in shap_e/rendering
208 10
renderer.py
in shap_e/models
136 9
mlp.py
in shap_e/models/stf
160 8
download.py
in shap_e/models
119 7
mlp.py
in shap_e/models/nerstf
151 7
model.py
in shap_e/models/nerf
193 7
data_util.py
in shap_e/util
222 7
renderer.py
in shap_e/models/nerstf
238 6
checkpoint.py
in shap_e/models/nn
90 5
multiview_encoder.py
in shap_e/models/transmitter
168 5
pooled_mlp.py
in shap_e/models/generation
63 5
view_data.py
in shap_e/rendering/blender
66 5
mesh.py
in shap_e/rendering
78 5
types.py
in shap_e/rendering/raycast
66 5
renderer.py
in shap_e/models/nerf
264 4
render.py
in shap_e/rendering/blender
127 4
cast.py
in shap_e/rendering/raycast
104 4
notebooks.py
in shap_e/util
76 4
utils.py
in shap_e/models/nn
16 3
mc.py
in shap_e/rendering
181 3
sample.py
in shap_e/diffusion
78 3
query.py
in shap_e/models
23 2
base.py
in shap_e/models/stf
39 2
latent_diffusion.py
in shap_e/models/generation
27 2
_utils.py
in shap_e/rendering/raycast
12 2
io.py
in shap_e/util
28 2
configs.py
in shap_e/models
153 1
Files With Long Lines (Top 1)

There is only one file with lines longer than 120 characters. In total, there are 9 long lines.

File# lines# units# long lines
download.py
in shap_e/models
119 7 9
Correlations

File Size vs. Commits (all time): 7 points

shap_e/rendering/blender/blender_script.py x: 1 commits (all time) y: 507 lines of code shap_e/util/collections.py x: 1 commits (all time) y: 94 lines of code shap_e/rendering/mesh.py x: 2 commits (all time) y: 78 lines of code shap_e/models/stf/renderer.py x: 1 commits (all time) y: 421 lines of code shap_e/util/notebooks.py x: 1 commits (all time) y: 76 lines of code shap_e/models/download.py x: 1 commits (all time) y: 119 lines of code shap_e/rendering/blender/render.py x: 1 commits (all time) y: 127 lines of code
507.0
lines of code
  min: 76.0
  average: 203.14
  25th percentile: 78.0
  median: 119.0
  75th percentile: 421.0
  max: 507.0
0 2.0
commits (all time)
min: 1.0 | average: 1.14 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Contributors (all time): 7 points

shap_e/rendering/blender/blender_script.py x: 1 contributors (all time) y: 507 lines of code shap_e/util/collections.py x: 1 contributors (all time) y: 94 lines of code shap_e/rendering/mesh.py x: 2 contributors (all time) y: 78 lines of code shap_e/models/stf/renderer.py x: 1 contributors (all time) y: 421 lines of code shap_e/util/notebooks.py x: 1 contributors (all time) y: 76 lines of code shap_e/models/download.py x: 1 contributors (all time) y: 119 lines of code shap_e/rendering/blender/render.py x: 1 contributors (all time) y: 127 lines of code
507.0
lines of code
  min: 76.0
  average: 203.14
  25th percentile: 78.0
  median: 119.0
  75th percentile: 421.0
  max: 507.0
0 2.0
contributors (all time)
min: 1.0 | average: 1.14 | 25th percentile: 1.0 | median: 1.0 | 75th percentile: 1.0 | max: 2.0

File Size vs. Commits (30 days): 0 points

No data for "commits (30d)" vs. "lines of code".

File Size vs. Contributors (30 days): 0 points

No data for "contributors (30d)" vs. "lines of code".


File Size vs. Commits (90 days): 0 points

No data for "commits (90d)" vs. "lines of code".

File Size vs. Contributors (90 days): 0 points

No data for "contributors (90d)" vs. "lines of code".