facebookresearch / Large-Scale-VRD
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
  • 11% duplication:
    • 7,982 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 924 duplicated lines
  • 37 duplicates
system11% (924 lines)
Duplication per Extension
py11% (799 lines)
yaml71% (125 lines)
Duplication per Component (primary)
lib/roi_data44% (426 lines)
lib/utils4% (158 lines)
lib/datasets16% (138 lines)
configs/vg87% (86 lines)
lib/core14% (63 lines)
configs/vrd50% (39 lines)
lib45% (14 lines)
tools0% (0 lines)
lib/cmake0% (0 lines)
lib/modeling0% (0 lines)
lib/ops0% (0 lines)

Duplication Between Components (50+ lines)

G lib/core lib/core lib/roi_data lib/roi_data lib/core--lib/roi_data 126 configs/vg configs/vg configs/vrd configs/vrd configs/vg--configs/vrd 80

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 37 duplicates...
Size#FoldersFilesLinesCode
49 x 2 lib/roi_data
lib/roi_data
fast_rcnn_rel.py
fast_rcnn_rel.py
401:465 (7%)
624:688 (7%)
view
43 x 2 configs/vg
configs/vg
VG_wiki_and_relco_VGG16_softmaxed_tri...
VG_wiki_and_relco_VGG16_softmaxed_tri...
7:50 (87%)
7:50 (87%)
view
37 x 2 lib/datasets
lib/datasets
roidb_rel.py
roidb_rel.py
38:96 (17%)
140:198 (17%)
view
33 x 2 lib/utils
lib/utils
evaluator_rel.py
evaluator_rel.py
40:75 (7%)
109:144 (7%)
view
25 x 2 lib/core
lib/roi_data
get_gt_perturbed_proposals.py
fast_rcnn_rel.py
22:50 (21%)
241:269 (3%)
view
24 x 2 lib/roi_data
lib/roi_data
fast_rcnn_rel.py
fast_rcnn_rel.py
373:403 (3%)
583:613 (3%)
view
19 x 2 lib/core
lib/roi_data
get_gt_perturbed_proposals.py
fast_rcnn_rel.py
100:122 (16%)
122:144 (2%)
view
19 x 2 lib/core
lib/roi_data
get_gt_perturbed_proposals.py
fast_rcnn_rel.py
130:151 (16%)
152:173 (2%)
view
18 x 2 lib/roi_data
lib/roi_data
fast_rcnn_rel.py
fast_rcnn_rel.py
500:518 (2%)
707:725 (2%)
view
15 x 2 configs/vrd
configs/vrd
VRD_wiki_and_node2vec_VGG16_softmaxed...
VRD_wiki_and_node2vec_VGG16_softmaxed...
7:21 (57%)
7:21 (28%)
view
14 x 2 lib/utils
lib/utils
helpers_rel.py
helpers_rel.py
62:75 (4%)
87:100 (4%)
view
13 x 2 lib/roi_data
lib/roi_data
fast_rcnn_rel.py
fast_rcnn_rel.py
315:329 (1%)
544:557 (1%)
view
12 x 2 configs/vg
configs/vrd
VG_wiki_and_relco_VGG16_softmaxed_tri...
VRD_wiki_and_node2vec_VGG16_softmaxed...
19:30 (24%)
19:30 (23%)
view
12 x 2 lib/utils
lib/utils
vis.py
vis.py
147:158 (4%)
351:362 (4%)
view
12 x 2 configs/vg
configs/vrd
VG_wiki_and_relco_VGG16_softmaxed_tri...
VRD_wiki_and_node2vec_VGG16_softmaxed...
19:30 (24%)
19:30 (23%)
view
12 x 2 lib/roi_data
lib/roi_data
fast_rcnn_rel.py
fast_rcnn_rel.py
754:765 (1%)
778:791 (1%)
view
11 x 2 configs/vg
configs/vrd
VG_wiki_and_relco_VGG16_softmaxed_tri...
VRD_wiki_and_node2vec_VGG16_softmaxed...
7:17 (22%)
7:17 (21%)
view
11 x 2 configs/vg
configs/vrd
VG_wiki_and_relco_VGG16_softmaxed_tri...
VRD_wiki_and_node2vec_VGG16_softmaxed...
7:17 (22%)
7:17 (42%)
view
11 x 2 configs/vg
configs/vrd
VG_wiki_and_relco_VGG16_softmaxed_tri...
VRD_wiki_and_node2vec_VGG16_softmaxed...
7:17 (22%)
7:17 (42%)
view
11 x 2 lib/utils
lib/utils
evaluator_rel.py
evaluator_rel.py
92:103 (2%)
150:161 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
24 x 2 lib/core
lib/roi_data
get_gt_perturbed_proposals.py
fast_rcnn_rel.py
0:0 
0:0 
view