facebookresearch / meshrcnn
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
  • 15% duplication:
    • 4,451 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 704 duplicated lines
  • 46 duplicates
system15% (704 lines)
Duplication per Extension
py10% (445 lines)
yaml73% (259 lines)
Duplication per Component (primary)
configs/pix3d75% (202 lines)
meshrcnn/modeling14% (89 lines)
shapenet/modeling18% (61 lines)
configs/shapenet67% (57 lines)
shapenet/evaluation36% (56 lines)
meshrcnn/utils8% (56 lines)
shapenet/utils9% (50 lines)
meshrcnn/data16% (49 lines)
meshrcnn/structures24% (42 lines)
meshrcnn/evaluation4% (14 lines)
tools2% (14 lines)
shapenet/data5% (14 lines)
meshrcnn/config0% (0 lines)
ROOT0% (0 lines)
shapenet/config0% (0 lines)
shapenet/solver0% (0 lines)

Duplication Between Components (50+ lines)

G meshrcnn/modeling meshrcnn/modeling shapenet/modeling shapenet/modeling meshrcnn/modeling--shapenet/modeling 66

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 46 duplicates...
Size#FoldersFilesLinesCode
33 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
voxelrcnn_R50_FPN.yaml
7:39 (54%)
6:38 (68%)
view
31 x 2 configs/pix3d
configs/pix3d
pixel2mesh_R50_FPN.yaml
sphereinit_R50_FPN.yaml
1:31 (58%)
1:31 (58%)
view
25 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
sphereinit_R50_FPN.yaml
6:30 (40%)
6:30 (47%)
view
25 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
pixel2mesh_R50_FPN.yaml
6:30 (40%)
6:30 (47%)
view
24 x 2 configs/pix3d
configs/pix3d
pixel2mesh_R50_FPN.yaml
voxelrcnn_R50_FPN.yaml
7:30 (45%)
6:29 (50%)
view
24 x 2 configs/pix3d
configs/pix3d
sphereinit_R50_FPN.yaml
voxelrcnn_R50_FPN.yaml
7:30 (45%)
6:29 (50%)
view
19 x 2 shapenet/evaluation
shapenet/evaluation
eval.py
eval.py
26:46 (12%)
97:117 (12%)
view
14 x 2 meshrcnn/data
meshrcnn/evaluation
meshrcnn_transforms.py
pix3d_evaluation.py
299:314 (7%)
482:497 (4%)
view
14 x 2 meshrcnn/modeling/roi_heads
meshrcnn/modeling/roi_heads
mesh_head.py
mesh_head.py
211:226 (8%)
252:267 (8%)
view
14 x 2 meshrcnn/data
meshrcnn/data
meshrcnn_transforms.py
meshrcnn_transforms.py
256:274 (7%)
281:295 (7%)
view
14 x 2 shapenet/data
tools
mesh_vox.py
preprocess_shapenet.py
152:187 (7%)
285:308 (6%)
view
14 x 2 shapenet/modeling
shapenet/modeling
mesh_arch.py
mesh_arch.py
101:122 (13%)
133:154 (13%)
view
13 x 2 meshrcnn/structures
meshrcnn/structures
mesh.py
voxel.py
59:72 (26%)
59:72 (11%)
view
12 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
sphereinit_R50_FPN.yaml
40:51 (19%)
31:42 (22%)
view
11 x 2 meshrcnn/utils
meshrcnn/utils
vis.py
vis.py
275:285 (4%)
331:341 (4%)
view
10 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
voxelrcnn_R50_FPN.yaml
52:61 (16%)
39:48 (20%)
view
10 x 2 meshrcnn/modeling/roi_heads
shapenet/modeling/heads
mesh_head.py
mesh_head.py
156:167 (6%)
72:83 (14%)
view
10 x 2 configs/shapenet
configs/shapenet
sphereinit_R50.yaml
voxmesh_R50.yaml
17:26 (38%)
24:33 (30%)
view
10 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
pixel2mesh_R50_FPN.yaml
52:61 (16%)
44:53 (18%)
view
10 x 2 configs/pix3d
configs/pix3d
meshrcnn_R50_FPN.yaml
sphereinit_R50_FPN.yaml
52:61 (16%)
44:53 (18%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
15 x 2 meshrcnn/evaluation
meshrcnn/data
pix3d_evaluation.py
meshrcnn_transforms.py
0:0 
0:0 
view