facebookresearch / ContrastiveSceneContexts
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
  • 72% duplication:
    • 23,154 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 16,812 duplicated lines
  • 1,837 duplicates
system72% (16,812 lines)
Duplication per Extension
py71% (15,194 lines)
cu92% (904 lines)
cpp85% (414 lines)
yaml58% (240 lines)
h71% (60 lines)
Duplication per Component (primary)
downstream/votenet/models75% (3,085 lines)
downstream/insseg/datasets91% (2,210 lines)
downstream/semseg/datasets89% (2,202 lines)
pretrain/contrastive_scene_contexts/model96% (2,061 lines)
downstream/semseg/models99% (1,288 lines)
downstream/insseg/models99% (1,287 lines)
downstream/semseg/lib80% (1,124 lines)
downstream/insseg/lib70% (1,059 lines)
pretrain/contrastive_scene_contexts/lib58% (1,016 lines)
downstream/votenet/lib41% (734 lines)
downstream/votenet/datasets26% (447 lines)
downstream/semseg/config90% (117 lines)
downstream/insseg/config92% (117 lines)
downstream/insseg85% (18 lines)
downstream/semseg75% (15 lines)
downstream/votenet63% (14 lines)
downstream/votenet/config8% (6 lines)
pretrain/scannet_pair<1% (6 lines)
pretrain/contrastive_scene_contexts13% (6 lines)
pretrain/contrastive_scene_contexts/config0% (0 lines)

Duplication Between Components (50+ lines)

G downstream/insseg/datasets downstream/insseg/datasets downstream/semseg/datasets downstream/semseg/datasets downstream/insseg/datasets--downstream/semseg/datasets 4410 downstream/votenet/models downstream/votenet/models downstream/insseg/datasets--downstream/votenet/models 206 pretrain/contrastive_scene_contexts/lib pretrain/contrastive_scene_contexts/lib downstream/insseg/datasets--pretrain/contrastive_scene_contexts/lib 1893 downstream/votenet/datasets downstream/votenet/datasets downstream/insseg/datasets--downstream/votenet/datasets 493 downstream/semseg/datasets--downstream/votenet/models 242 downstream/semseg/datasets--pretrain/contrastive_scene_contexts/lib 1890 downstream/semseg/datasets--downstream/votenet/datasets 493 pretrain/contrastive_scene_contexts/model pretrain/contrastive_scene_contexts/model downstream/votenet/models--pretrain/contrastive_scene_contexts/model 4335 downstream/insseg/models downstream/insseg/models downstream/insseg/models--downstream/votenet/models 2427 downstream/insseg/models--pretrain/contrastive_scene_contexts/model 1345 downstream/semseg/models downstream/semseg/models downstream/insseg/models--downstream/semseg/models 2574 downstream/semseg/models--downstream/votenet/models 2429 downstream/semseg/models--pretrain/contrastive_scene_contexts/model 1347 downstream/insseg/lib downstream/insseg/lib downstream/insseg/lib--downstream/votenet/models 80 downstream/semseg/lib downstream/semseg/lib downstream/insseg/lib--downstream/semseg/lib 2117 downstream/insseg/lib--pretrain/contrastive_scene_contexts/lib 390 downstream/insseg/lib--downstream/votenet/datasets 84 downstream/votenet/lib downstream/votenet/lib downstream/insseg/lib--downstream/votenet/lib 370 downstream/semseg/lib--downstream/votenet/models 80 downstream/semseg/lib--pretrain/contrastive_scene_contexts/lib 390 downstream/semseg/lib--downstream/votenet/datasets 84 downstream/semseg/lib--downstream/votenet/lib 370 downstream/votenet/datasets--pretrain/contrastive_scene_contexts/lib 418 downstream/votenet/datasets--downstream/votenet/lib 387 downstream/votenet/lib--pretrain/contrastive_scene_contexts/lib 318 downstream/insseg/config downstream/insseg/config downstream/semseg/config downstream/semseg/config downstream/insseg/config--downstream/semseg/config 234

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 1,837 duplicates...
Size#FoldersFilesLinesCode
411 x 2 downstream/semseg/models
downstream/votenet/model...econv/models_sparseconv
resunet.py
resunet.py
18:543 (100%)
18:543 (100%)
view
411 x 2 downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
resunet.py
resunet.py
12:537 (100%)
18:543 (100%)
view
411 x 2 downstream/insseg/models
downstream/semseg/models
resunet.py
resunet.py
12:537 (100%)
18:543 (100%)
view
316 x 2 downstream/votenet/models/backbone/pointnet2
pretrain/contrastive_sce...ontexts/model/pointnet2
pointnet2_modules.py
pointnet2_modules.py
6:518 (100%)
6:518 (100%)
view
301 x 2 downstream/insseg/datase...benchmark_utils/scripts
downstream/semseg/datase...benchmark_utils/scripts
evaluate_semantic_instance.py
evaluate_semantic_instance.py
43:443 (100%)
43:443 (100%)
view
301 x 2 downstream/insseg/datase...benchmark_utils/scripts
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
43:443 (100%)
43:443 (100%)
view
301 x 2 downstream/semseg/datase...benchmark_utils/scripts
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
43:443 (100%)
43:443 (100%)
view
243 x 2 downstream/insseg/datasets/evaluation
downstream/semseg/datasets/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
43:369 (79%)
43:369 (78%)
view
234 x 2 downstream/votenet/models/backbone/pointnet2
pretrain/contrastive_sce...ontexts/model/pointnet2
pytorch_utils.py
pytorch_utils.py
6:296 (100%)
6:296 (100%)
view
233 x 2 downstream/insseg/datasets/evaluation
downstream/insseg/datase...benchmark_utils/scripts
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (76%)
61:369 (77%)
view
233 x 2 downstream/insseg/datasets/evaluation
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (76%)
61:369 (77%)
view
233 x 2 downstream/insseg/datase...benchmark_utils/scripts
downstream/semseg/datasets/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (77%)
61:369 (74%)
view
233 x 2 downstream/insseg/datasets/evaluation
downstream/semseg/datase...benchmark_utils/scripts
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (76%)
61:369 (77%)
view
233 x 2 downstream/semseg/datasets/evaluation
downstream/semseg/datase...benchmark_utils/scripts
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (74%)
61:369 (77%)
view
233 x 2 downstream/semseg/datasets/evaluation
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
61:369 (74%)
61:369 (77%)
view
232 x 2 downstream/insseg/lib
downstream/semseg/lib
pc_utils.py
pc_utils.py
13:344 (100%)
13:344 (100%)
view
208 x 2 downstream/votenet/model.../pointnet2/_ext_src/src
pretrain/contrastive_sce.../pointnet2/_ext_src/src
cu
sampling_gpu.cu
sampling_gpu.cu
1:229 (100%)
1:229 (100%)
view
188 x 2 downstream/insseg/lib
downstream/semseg/lib
utils.py
utils.py
67:345 (84%)
63:341 (85%)
view
183 x 2 downstream/semseg/models
downstream/votenet/model...econv/models_sparseconv
res16unet.py
res16unet.py
48:259 (67%)
47:257 (67%)
view
180 x 2 downstream/insseg/datasets
downstream/semseg/datasets
dataset.py
dataset.py
62:306 (45%)
60:304 (59%)
view
Duplicated Units
The list of top 20 duplicated units.
See data for all 175 unit duplicates...
Size#FoldersFilesLinesCode
134 x 3 downstream/semseg/models
downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
resunet.py
resunet.py
resunet.py
0:0 
0:0 
0:0 
view
130 x 3 downstream/semseg/models
downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
resunet.py
resunet.py
resunet.py
0:0 
0:0 
0:0 
view
134 x 5 downstream/semseg/datasets/evaluation
downstream/semseg/datase...benchmark_utils/scripts
downstream/insseg/datasets/evaluation
downstream/insseg/datase...benchmark_utils/scripts
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
0:0 
0:0 
0:0 
0:0 
0:0 
view
79 x 2 downstream/semseg/lib
downstream/insseg/lib
pc_utils.py
pc_utils.py
0:0 
0:0 
view
62 x 2 downstream/semseg/datasets
downstream/insseg/datasets
dataset.py
dataset.py
0:0 
0:0 
view
43 x 4 downstream/semseg/lib
downstream/insseg/lib
downstream/votenet/lib/utils
pretrain/contrastive_scene_contexts/lib
io3d.py
io3d.py
io3d.py
io3d.py
0:0 
0:0 
0:0 
0:0 
view
50 x 5 downstream/semseg/datasets/evaluation
downstream/semseg/datase...benchmark_utils/scripts
downstream/insseg/datasets/evaluation
downstream/insseg/datase...benchmark_utils/scripts
pretrain/contrastive_scene_contexts/lib/evaluation
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
evaluate_semantic_instance.py
0:0 
0:0 
0:0 
0:0 
0:0 
view
42 x 3 downstream/semseg/models
downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
resnet.py
resnet.py
resnet.py
0:0 
0:0 
0:0 
view
43 x 2 downstream/semseg/datasets
downstream/insseg/datasets
dataset.py
dataset.py
0:0 
0:0 
view
40 x 4 downstream/semseg/models
downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
pretrain/contrastive_scene_contexts/model
resnet.py
resnet.py
resnet.py
resnet.py
0:0 
0:0 
0:0 
0:0 
view
48 x 2 downstream/semseg/lib
downstream/insseg/lib
pc_utils.py
pc_utils.py
0:0 
0:0 
view
53 x 2 downstream/votenet/models/backbone/pointnet2
pretrain/contrastive_sce...ontexts/model/pointnet2
pointnet2_utils.py
pointnet2_utils.py
0:0 
0:0 
view
57 x 2 downstream/votenet/models/backbone/pointnet2
pretrain/contrastive_sce...ontexts/model/pointnet2
pointnet2_modules.py
pointnet2_modules.py
0:0 
0:0 
view
43 x 2 downstream/semseg/datasets
downstream/insseg/datasets
stanford.py
stanford.py
0:0 
0:0 
view
46 x 2 downstream/semseg/datasets
downstream/insseg/datasets
voxelizer.py
voxelizer.py
0:0 
0:0 
view
36 x 2 downstream/semseg/datasets
downstream/insseg/datasets
stanford.py
stanford.py
0:0 
0:0 
view
42 x 4 downstream/semseg/models/modules
downstream/insseg/models/modules
downstream/votenet/model...dels_sparseconv/modules
pretrain/contrastive_scene_contexts/model/modules
common.py
common.py
common.py
common.py
0:0 
0:0 
0:0 
0:0 
view
38 x 2 downstream/semseg/datasets
downstream/insseg/datasets
stanford.py
stanford.py
0:0 
0:0 
view
47 x 2 downstream/semseg/lib
downstream/insseg/lib
utils.py
utils.py
0:0 
0:0 
view
34 x 3 downstream/semseg/models
downstream/insseg/models
downstream/votenet/model...econv/models_sparseconv
resunet.py
resunet.py
resunet.py
0:0 
0:0 
0:0 
view