facebookresearch / mvp
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
  • 41% duplication:
    • 7,214 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 3,010 duplicated lines
  • 98 duplicates
system41% (3,010 lines)
Duplication per Extension
h71% (1,722 lines)
py22% (852 lines)
cpp54% (232 lines)
cu34% (204 lines)
Duplication per Component (primary)
extensions/mvpraymarch46% (1,334 lines)
extensions/utils78% (886 lines)
models29% (285 lines)
ROOT42% (251 lines)
models/decoders38% (242 lines)
models/encoders13% (12 lines)
utils0% (0 lines)
models/bg0% (0 lines)
models/colorcals0% (0 lines)
models/raymarchers0% (0 lines)
data0% (0 lines)

Duplication Between Components (50+ lines)

G extensions/mvpraymarch extensions/mvpraymarch extensions/utils extensions/utils extensions/mvpraymarch--extensions/utils 1432

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 98 duplicates...
Size#FoldersFilesLinesCode
691 x 2 extensions/mvpraymarch
extensions/utils
helper_math.h
helper_math.h
28:1450 (100%)
28:1450 (100%)
view
48 x 2 models/decoders
models/decoders
mvp.py
nv.py
473:527 (10%)
225:279 (24%)
view
40 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
251:307 (6%)
514:570 (6%)
view
37 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
147:199 (6%)
416:468 (6%)
view
32 x 2 extensions/mvpraymarch
extensions/mvpraymarch
mvpraymarch_subset_kernel.h
mvpraymarch_subset_kernel.h
15:52 (20%)
112:149 (20%)
view
32 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
426:466 (5%)
528:568 (5%)
view
32 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
157:197 (5%)
265:305 (5%)
view
32 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
157:197 (5%)
528:568 (5%)
view
32 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
265:305 (5%)
426:466 (5%)
view
28 x 2 extensions/mvpraymarch
extensions/mvpraymarch
mvpraymarch.cpp
mvpraymarch.cpp
198:226 (8%)
306:334 (8%)
view
22 x 2 extensions/utils
extensions/utils
cu
utils_kernel.cu
utils_kernel.cu
26:49 (13%)
72:95 (13%)
view
20 x 2 models
models
utils.py
utils.py
438:461 (2%)
666:689 (2%)
view
18 x 2 extensions/mvpraymarch
extensions/mvpraymarch
utils.h
utils.h
210:238 (3%)
473:502 (3%)
view
18 x 2 models
models
utils.py
utils.py
294:313 (2%)
522:541 (2%)
view
18 x 2 models
models
utils.py
utils.py
294:313 (2%)
408:427 (2%)
view
18 x 2 models
models
utils.py
utils.py
440:461 (2%)
554:575 (2%)
view
18 x 2 models
models
utils.py
utils.py
408:427 (2%)
636:655 (2%)
view
18 x 2 extensions/utils
models
utils.py
utils.py
50:70 (12%)
836:856 (2%)
view
18 x 2 models
models
utils.py
utils.py
408:427 (2%)
522:541 (2%)
view
18 x 2 models
models
utils.py
utils.py
326:347 (2%)
668:689 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 3 models
extensions/mvpraymarch
extensions/utils
utils.py
mvpraymarch.py
utils.py
0:0 
0:0 
0:0 
view