facebookresearch / DeepSDF
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
  • 18% duplication:
    • 2,338 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 435 duplicated lines
  • 19 duplicates
system18% (435 lines)
Duplication per Extension
cpp36% (309 lines)
py8% (126 lines)
Duplication per Component (primary)
src35% (309 lines)
ROOT10% (114 lines)
deep_sdf4% (12 lines)
deep_sdf/metrics0% (0 lines)
networks0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
34 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
323:382 (8%)
158:217 (16%)
view
33 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
453:493 (8%)
254:294 (16%)
view
24 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
40:78 (6%)
80:118 (11%)
view
24 x 2 src
src
Utils.cpp
Utils.cpp
111:148 (15%)
173:210 (15%)
view
18 x 2 ROOT
ROOT
generate_training_meshes.py
reconstruct.py
109:126 (19%)
96:113 (8%)
view
13 x 2 ROOT
ROOT
evaluate.py
reconstruct.py
107:119 (13%)
112:124 (6%)
view
11 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
389:399 (2%)
221:231 (5%)
view
10 x 2 ROOT
ROOT
generate_training_meshes.py
reconstruct.py
18:33 (10%)
155:170 (4%)
view
8 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
27:37 (2%)
67:77 (3%)
view
8 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
514:525 (2%)
297:308 (3%)
view
7 x 2 ROOT
ROOT
reconstruct.py
train_deep_sdf.py
145:151 (3%)
307:313 (1%)
view
7 x 2 ROOT
ROOT
train_deep_sdf.py
train_deep_sdf.py
176:182 (1%)
543:549 (1%)
view
6 x 2 ROOT
ROOT
evaluate.py
reconstruct.py
100:105 (6%)
104:109 (2%)
view
6 x 2 src
src
PreprocessMesh.cpp
PreprocessMesh.cpp
33:39 (1%)
354:360 (1%)
view
6 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
443:448 (1%)
244:249 (2%)
view
6 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
255:260 (1%)
29:34 (2%)
view
6 x 2 ROOT
ROOT
evaluate.py
generate_training_meshes.py
100:105 (6%)
117:122 (6%)
view
6 x 2 src
src
PreprocessMesh.cpp
SampleVisibleMeshSurface.cpp
33:39 (1%)
189:195 (2%)
view
6 x 2 deep_sdf
deep_sdf
workspace.py
workspace.py
120:126 (4%)
135:141 (4%)
view