facebookresearch / moco-v3
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
  • 29% duplication:
    • 997 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 290 duplicated lines
  • 11 duplicates
system29% (290 lines)
Duplication per Extension
py29% (290 lines)
Duplication per Component (primary)
ROOT38% (290 lines)
transfer0% (0 lines)
moco0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
31 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
458:496 (8%)
379:417 (10%)
view
24 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
96:131 (6%)
121:156 (7%)
view
17 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
71:87 (4%)
76:92 (5%)
view
15 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
137:156 (4%)
161:180 (4%)
view
12 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
204:220 (3%)
200:216 (3%)
view
10 x 2 ROOT
ROOT
main_lincls.py
main_lincls.py
355:368 (2%)
399:412 (2%)
view
9 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
241:250 (2%)
236:245 (2%)
view
9 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
40:48 (2%)
47:55 (2%)
view
6 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
279:285 (1%)
292:298 (1%)
view
6 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
317:322 (1%)
308:313 (1%)
view
6 x 2 ROOT
ROOT
main_lincls.py
main_moco.py
257:265 (1%)
249:257 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
27 x 2 ROOT
ROOT
main_moco.py
main_lincls.py
0:0 
0:0 
view