facebookresearch / moco
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
  • 48% duplication:
    • 843 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 412 duplicated lines
  • 16 duplicates
system48% (412 lines)
Duplication per Extension
py50% (396 lines)
yaml25% (16 lines)
Duplication per Component (primary)
ROOT64% (396 lines)
detection/configs25% (16 lines)
moco0% (0 lines)
detection0% (0 lines)
Longest Duplicates
The list of 16 longest duplicates.
See data for all 16 duplicates...
Size#FoldersFilesLinesCode
33 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
434:477 (9%)
331:374 (11%)
view
24 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
86:121 (7%)
101:136 (8%)
view
18 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
478:502 (5%)
378:402 (6%)
view
17 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
62:78 (5%)
64:80 (6%)
view
15 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
123:144 (4%)
137:158 (5%)
view
13 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
24:37 (3%)
28:41 (4%)
view
13 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
179:199 (3%)
164:184 (4%)
view
11 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
215:228 (3%)
196:209 (3%)
view
10 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
308:317 (2%)
278:287 (3%)
view
9 x 2 ROOT
ROOT
main_lincls.py
main_lincls.py
333:345 (2%)
376:388 (2%)
view
8 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
233:243 (2%)
210:220 (2%)
view
8 x 2 detection/configs
detection/configs
coco_R_50_C4_2x_moco.yaml
pascal_voc_R_50_C4_24k_moco.yaml
2:9 (88%)
2:9 (88%)
view
8 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
39:46 (2%)
43:50 (2%)
view
7 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
348:357 (2%)
313:322 (2%)
view
6 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
295:300 (1%)
268:273 (2%)
view
6 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
257:263 (1%)
251:257 (2%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
27 x 2 ROOT
ROOT
main_moco.py
main_lincls.py
0:0 
0:0 
view
12 x 2 ROOT
ROOT
main_moco.py
main_lincls.py
0:0 
0:0 
view