facebookresearch / Detic
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
  • 10% duplication:
    • 7,122 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 723 duplicated lines
  • 78 duplicates
system10% (723 lines)
Duplication per Extension
yaml60% (390 lines)
py5% (333 lines)
Duplication per Component (primary)
configs60% (390 lines)
tools20% (184 lines)
detic/modeling/roi_heads5% (48 lines)
detic/data6% (36 lines)
detic/modeling/backbone5% (33 lines)
detic/evaluation3% (20 lines)
detic/data/transforms11% (12 lines)
detic0% (0 lines)
detic/modeling0% (0 lines)
detic/modeling/meta_arch0% (0 lines)
detic/modeling/text0% (0 lines)
detic/data/datasets0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 78 duplicates...
Size#FoldersFilesLinesCode
82 x 2 tools
tools
get_cc_tags.py
merge_lvis_coco.py
8:90 (48%)
22:104 (46%)
view
24 x 2 configs
configs
Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_...
Detic_LI21k_CLIP_SwinB_896b32_4x_ft4x...
4:27 (55%)
4:27 (55%)
view
22 x 2 configs
configs
Detic_OVCOCO_CLIP_R50_1x_caption.yaml
Detic_OVCOCO_CLIP_R50_1x_max-size_cap...
9:30 (66%)
11:32 (64%)
view
22 x 2 configs
configs
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
6:27 (81%)
6:27 (81%)
view
21 x 2 configs
configs
Detic_LbaseCCcapimg_CLIP_R5021k_640b6...
Detic_LbaseCCimg_CLIP_R5021k_640b64_4...
7:27 (70%)
4:24 (77%)
view
21 x 2 configs
configs
Detic_OVCOCO_CLIP_R50_1x_caption.yaml
Detic_OVCOCO_CLIP_R50_1x_max-size.yaml
10:30 (63%)
7:27 (70%)
view
21 x 2 configs
configs
Detic_OVCOCO_CLIP_R50_1x_max-size.yaml
Detic_OVCOCO_CLIP_R50_1x_max-size_cap...
7:27 (70%)
12:32 (61%)
view
18 x 2 configs
configs
BoxSup-C2_LCOCO_CLIP_SwinB_896b32_4x....
BoxSup-C2_Lbase_CLIP_SwinB_896b32_4x....
1:18 (94%)
1:18 (94%)
view
17 x 2 configs
configs
BoxSup-C2_LCOCO_CLIP_SwinB_896b32_4x....
BoxSup-C2_L_CLIP_SwinB_896b32_4x.yaml
1:17 (89%)
1:17 (100%)
view
17 x 2 configs
configs
BoxSup-C2_L_CLIP_SwinB_896b32_4x.yaml
BoxSup-C2_Lbase_CLIP_SwinB_896b32_4x....
1:17 (100%)
1:17 (89%)
view
15 x 2 configs
configs
Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_...
Detic_LI21k_CLIP_SwinB_896b32_4x_ft4x...
29:43 (34%)
29:43 (34%)
view
13 x 2 configs
configs
Detic_LbaseCCimg_CLIP_R5021k_640b64_4...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
1:13 (48%)
1:13 (48%)
view
13 x 2 configs
configs
Detic_LbaseCCimg_CLIP_R5021k_640b64_4...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
15:27 (48%)
15:27 (48%)
view
13 x 2 configs
configs
Detic_LI_CLIP_R5021k_640b64_4x_ft4x_m...
Detic_LbaseCCimg_CLIP_R5021k_640b64_4...
15:27 (48%)
15:27 (48%)
view
13 x 2 configs
configs
Detic_LI_CLIP_SwinB_896b32_4x_ft4x_ma...
Detic_LbaseI_CLIP_SwinB_896b32_4x_ft4...
21:33 (39%)
21:33 (39%)
view
13 x 2 configs
configs
Detic_LI_CLIP_R5021k_640b64_4x_ft4x_m...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
15:27 (48%)
15:27 (48%)
view
13 x 2 configs
configs
Detic_LI_CLIP_R5021k_640b64_4x_ft4x_m...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
15:27 (48%)
15:27 (48%)
view
13 x 2 configs
configs
Detic_LbaseCCimg_CLIP_R5021k_640b64_4...
Detic_LbaseI_CLIP_R5021k_640b64_4x_ft...
15:27 (48%)
15:27 (48%)
view
12 x 2 detic/modeling/backbone
detic/modeling/backbone
swintransformer.py
timm.py
721:734 (2%)
172:184 (8%)
view
11 x 2 configs
configs
Detic_LI_CLIP_SwinB_896b32_4x_ft4x_ma...
Detic_LbaseI_CLIP_SwinB_896b32_4x_ft4...
1:11 (33%)
1:11 (33%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
8 x 2 detic/modeling/roi_heads
detic/modeling/roi_heads
detic_roi_heads.py
res5_roi_heads.py
0:0 
0:0 
view