facebookresearch / pifuhd
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 22% duplication:
    • 3,410 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 777 duplicated lines
  • 130 duplicates
system22% (777 lines)
Duplication per Extension
py23% (777 lines)
Duplication per Component (primary)
lib/render/gl33% (188 lines)
lib/data52% (150 lines)
lib13% (137 lines)
lib/model18% (133 lines)
lib/render22% (123 lines)
apps17% (46 lines)
lib/render/gl/data0% (0 lines)

Duplication Between Components (50+ lines)

G lib lib lib/render/gl lib/render/gl lib--lib/render/gl 209 lib/render lib/render lib--lib/render 152 lib/render--lib/render/gl 171 lib/model lib/model lib/model--lib 138 lib/model--lib/render/gl 133 lib/model--lib/render 76

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 130 duplicates...
Size#FoldersFilesLinesCode
31 x 2 lib/data
lib/data
EvalDataset.py
EvalWPoseDataset.py
93:131 (36%)
244:282 (15%)
view
23 x 2 apps
apps
recon.py
recon.py
34:60 (15%)
85:111 (15%)
view
21 x 2 lib/render
lib/render
mesh.py
mesh.py
89:110 (8%)
203:224 (8%)
view
19 x 2 lib/render/gl
lib/render/gl
__init__.py
normal_render.py
1:23 (100%)
1:23 (40%)
view
19 x 2 lib/render/gl
lib/render/gl
color_render.py
geo_render.py
1:23 (25%)
1:23 (25%)
view
19 x 2 lib
lib/render/gl
colab_util.py
__init__.py
1:23 (21%)
1:23 (100%)
view
19 x 2 lib
lib/render/gl
geometry.py
normal_render.py
1:23 (27%)
1:23 (40%)
view
19 x 2 lib/render/gl
lib/render/gl
__init__.py
color_render.py
1:23 (100%)
1:23 (25%)
view
19 x 2 lib
lib/render
net_util.py
glm.py
1:23 (14%)
1:23 (18%)
view
19 x 2 lib
lib
mesh_util.py
sdf.py
1:23 (20%)
1:23 (16%)
view
19 x 2 lib/render/gl
lib/render/gl
geo_render.py
normal_render.py
1:23 (25%)
1:23 (40%)
view
19 x 2 lib
lib/render/gl
colab_util.py
render.py
1:23 (21%)
1:23 (7%)
view
19 x 2 lib
lib/render/gl
mesh_util.py
geo_render.py
1:23 (20%)
1:23 (25%)
view
19 x 2 lib/render/gl
lib/render/gl
__init__.py
render.py
1:23 (100%)
1:23 (7%)
view
19 x 2 lib
lib/render/gl
net_util.py
render.py
1:23 (14%)
1:23 (7%)
view
19 x 2 lib/render
lib/render/gl
camera.py
render.py
1:23 (10%)
1:23 (7%)
view
19 x 2 lib
lib/render/gl
mesh_util.py
render.py
1:23 (20%)
1:23 (7%)
view
19 x 2 lib
lib/render/gl
geometry.py
color_render.py
1:23 (27%)
1:23 (25%)
view
19 x 2 lib/render
lib/render
camera.py
glm.py
1:23 (10%)
1:23 (18%)
view
19 x 2 lib
lib/render
geometry.py
camera.py
1:23 (27%)
1:23 (10%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 lib/data
lib/data
EvalWPoseDataset.py
EvalDataset.py
0:0 
0:0 
view
6 x 2 lib/model
lib/model
HGPIFuNetwNML.py
HGPIFuMRNet.py
0:0 
0:0 
view