facebookresearch / votenet
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
  • 17% duplication:
    • 4,993 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 866 duplicated lines
  • 57 duplicates
system17% (866 lines)
Duplication per Extension
py17% (724 lines)
cu14% (66 lines)
m25% (42 lines)
cpp16% (34 lines)
Duplication per Component (primary)
utils20% (208 lines)
models22% (172 lines)
pointnet222% (166 lines)
pointnet2/_ext_src/src14% (100 lines)
ROOT18% (80 lines)
sunrgbd8% (62 lines)
sunrgbd/matlab25% (42 lines)
scannet8% (36 lines)
pointnet2/_ext_src/include0% (0 lines)

Duplication Between Components (50+ lines)

G scannet scannet sunrgbd sunrgbd scannet--sunrgbd 72

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 57 duplicates...
Size#FoldersFilesLinesCode
21 x 2 models
models
loss_helper.py
loss_helper_boxnet.py
215:237 (17%)
87:109 (39%)
view
20 x 2 utils
utils
eval_det.py
eval_det.py
181:201 (14%)
223:243 (14%)
view
19 x 2 ROOT
ROOT
eval.py
train.py
138:163 (14%)
259:284 (8%)
view
17 x 2 utils
utils
box_util.py
pc_util.py
185:207 (8%)
287:309 (5%)
view
16 x 2 pointnet2
pointnet2
pytorch_utils.py
pytorch_utils.py
133:148 (6%)
167:182 (6%)
view
16 x 2 pointnet2
pointnet2
pytorch_utils.py
pytorch_utils.py
133:148 (6%)
201:216 (6%)
view
16 x 2 pointnet2
pointnet2
pytorch_utils.py
pytorch_utils.py
167:182 (6%)
201:216 (6%)
view
16 x 2 utils
utils
pc_util.py
pc_util.py
405:425 (5%)
444:464 (5%)
view
15 x 2 ROOT
ROOT
eval.py
train.py
97:113 (11%)
148:164 (6%)
view
14 x 2 models
models
boxnet.py
votenet.py
21:54 (29%)
27:60 (23%)
view
14 x 2 pointnet2
pointnet2
pointnet2_modules.py
pointnet2_modules.py
110:124 (4%)
293:307 (4%)
view
13 x 2 utils
utils
nms.py
nms.py
85:99 (9%)
124:138 (9%)
view
13 x 2 pointnet2
pointnet2
pointnet2_modules.py
pointnet2_modules.py
58:73 (4%)
337:351 (4%)
view
12 x 2 utils
utils
nms.py
nms.py
14:26 (8%)
45:57 (8%)
view
11 x 2 pointnet2/_ext_src/src
pointnet2/_ext_src/src
cu
interpolate_gpu.cu
interpolate_gpu.cu
90:101 (8%)
131:142 (8%)
view
11 x 2 models
models
boxnet.py
votenet.py
57:83 (23%)
66:94 (18%)
view
10 x 2 pointnet2/_ext_src/src
pointnet2/_ext_src/src
group_points.cpp
sampling.cpp
43:56 (25%)
47:60 (16%)
view
8 x 2 utils
utils
nms.py
nms.py
52:60 (5%)
87:95 (5%)
view
8 x 2 pointnet2/_ext_src/src
pointnet2/_ext_src/src
cu
ball_query_gpu.cu
interpolate_gpu.cu
1:10 (15%)
1:10 (5%)
view
8 x 2 utils
utils
nms.py
nms.py
101:109 (5%)
142:150 (5%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
14 x 2 utils
utils
pc_util.py
box_util.py
0:0 
0:0 
view
7 x 2 sunrgbd
scannet
model_util_sunrgbd.py
model_util_scannet.py
0:0 
0:0 
view
6 x 3 sunrgbd
utils
utils
sunrgbd_utils.py
pc_util.py
box_util.py
0:0 
0:0 
0:0 
view
6 x 2 sunrgbd
utils
sunrgbd_utils.py
pc_util.py
0:0 
0:0 
view