amazon-research / siam-mot
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
  • 3% duplication:
    • 3,325 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 131 duplicated lines
  • 10 duplicates
system3% (131 lines)
Duplication per Extension
py2% (94 lines)
yaml27% (37 lines)
Duplication per Component (primary)
siammot/modelling/backbone10% (38 lines)
configs/dla27% (37 lines)
siammot/data9% (32 lines)
siammot/data/adapters4% (24 lines)
tools0% (0 lines)
siammot/eval0% (0 lines)
siammot/operator_patch0% (0 lines)
siammot/configs0% (0 lines)
siammot/utils0% (0 lines)
siammot/engine0% (0 lines)
siammot/data/ingestion0% (0 lines)
siammot/modelling0% (0 lines)
siammot/modelling/box_head0% (0 lines)
siammot/modelling/track_head0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
16 x 2 siammot/data
siammot/data
image_dataset.py
video_dataset.py
215:232 (9%)
178:195 (14%)
view
8 x 2 configs/dla
configs/dla
DLA_34_FPN_EMM_AOT.yaml
DLA_34_FPN_EMM_MOT17.yaml
65:75 (11%)
33:43 (21%)
view
8 x 2 siammot/modelling/backbone
siammot/modelling/backbone
dla.py
dla.py
43:52 (2%)
87:96 (2%)
view
8 x 2 siammot/modelling/backbone
siammot/modelling/backbone
dla.py
dla.py
84:93 (2%)
140:149 (2%)
view
6 x 2 configs/dla
configs/dla
DLA_34_FPN_EMM.yaml
DLA_34_FPN_EMM_MOT17.yaml
19:27 (20%)
27:36 (16%)
view
6 x 2 siammot/data/adapters/handler
siammot/data/adapters/handler
data_filtering.py
data_filtering.py
69:74 (7%)
100:105 (7%)
view
6 x 2 siammot/modelling/backbone
siammot/modelling/backbone
dla.py
dla.py
43:49 (1%)
143:149 (1%)
view
6 x 2 configs/dla
configs/dla
DLA_34_FPN_EMM.yaml
DLA_34_FPN_EMM_MOT17.yaml
12:17 (20%)
12:17 (16%)
view
6 x 2 siammot/data/adapters/augmentation
siammot/data/adapters/augmentation
video_augmentation.py
video_augmentation.py
124:132 (4%)
150:156 (4%)
view
6 x 2 siammot/modelling/backbone
siammot/modelling/backbone
dla.py
dla.py
359:364 (1%)
369:374 (1%)
view