facebookresearch / Replica-Dataset
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
  • 7% duplication:
    • 1,627 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 114 duplicated lines
  • 8 duplicates
system7% (114 lines)
Duplication per Extension
glsl32% (58 lines)
cpp5% (56 lines)
Duplication per Component (primary)
ReplicaSDK/shaders19% (58 lines)
ReplicaSDK/src20% (56 lines)
cmake0% (0 lines)
ReplicaSDK/include0% (0 lines)
ReplicaSDK/ptex0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
29 x 2 ReplicaSDK/shaders
ReplicaSDK/shaders
glsl
atlas.glsl
atlas.glsl
64:94 (16%)
103:133 (16%)
view
11 x 2 ReplicaSDK/src
ReplicaSDK/src
render.cpp
viewer.cpp
72:88 (10%)
78:94 (11%)
view
9 x 2 ReplicaSDK/src
ReplicaSDK/src
render.cpp
viewer.cpp
53:61 (8%)
59:67 (9%)
view
8 x 2 ReplicaSDK/src
ReplicaSDK/src
render.cpp
viewer.cpp
13:21 (7%)
14:22 (8%)
view
6 x 2 ReplicaSDK/shaders
ReplicaSDK/shaders
glsl
atlas.glsl
atlas.glsl
109:114 (3%)
121:126 (3%)
view
6 x 2 ReplicaSDK/shaders
ReplicaSDK/shaders
glsl
atlas.glsl
atlas.glsl
70:75 (3%)
121:126 (3%)
view
6 x 2 ReplicaSDK/shaders
ReplicaSDK/shaders
glsl
atlas.glsl
atlas.glsl
70:75 (3%)
82:87 (3%)
view
6 x 2 ReplicaSDK/shaders
ReplicaSDK/shaders
glsl
atlas.glsl
atlas.glsl
82:87 (3%)
109:114 (3%)
view