facebookresearch / DONERF
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
  • 11% duplication:
    • 4,049 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 454 duplicated lines
  • 26 duplicates
system11% (454 lines)
Duplication per Extension
py8% (320 lines)
cu55% (134 lines)
Duplication per Component (primary)
src10% (320 lines)
src/native50% (134 lines)
src/util0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 26 duplicates...
Size#FoldersFilesLinesCode
33 x 2 src
src
models.py
models.py
96:137 (12%)
272:313 (12%)
view
18 x 2 src
src
features.py
features.py
274:294 (3%)
459:479 (3%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
202:216 (6%)
250:264 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
202:216 (6%)
226:240 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
41:55 (6%)
135:149 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
41:55 (6%)
88:102 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
226:240 (6%)
250:264 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
88:102 (6%)
135:149 (6%)
view
15 x 2 src/native
src/native
cu
disc_depth_multiclass_cuda.cu
disc_depth_multiclass_cuda.cu
116:132 (6%)
165:181 (6%)
view
15 x 2 src
src
features.py
features.py
313:332 (2%)
686:705 (2%)
view
12 x 2 src
src
features.py
features.py
281:294 (2%)
570:583 (2%)
view
12 x 2 src
src
features.py
features.py
466:479 (2%)
570:583 (2%)
view
11 x 2 src
src
features.py
features.py
421:436 (2%)
539:554 (2%)
view
11 x 2 src
src
models.py
models.py
142:152 (4%)
319:329 (4%)
view
8 x 2 src
src
nerf_raymarch_common.py
nerf_raymarch_common.py
239:246 (3%)
295:302 (3%)
view
8 x 2 src
src
datasets.py
datasets.py
466:477 (2%)
508:519 (2%)
view
7 x 2 src
src
camera.py
camera.py
22:28 (9%)
38:45 (9%)
view
7 x 2 src
src
plots.py
plots.py
138:144 (3%)
244:250 (3%)
view
7 x 2 src
src
features.py
features.py
395:404 (1%)
522:531 (1%)
view
7 x 2 src
src
datasets.py
datasets.py
370:378 (1%)
465:473 (1%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 src
src
models.py
models.py
0:0 
0:0 
view
10 x 2 src
src
features.py
features.py
0:0 
0:0 
view
9 x 2 src
src
features.py
features.py
0:0 
0:0 
view
7 x 2 src
src
models.py
models.py
0:0 
0:0 
view