facebookresearch / deit
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
  • 20% duplication:
    • 1,734 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 355 duplicated lines
  • 89 duplicates
system20% (355 lines)
Duplication per Extension
py20% (355 lines)
Duplication per Component (primary)
ROOT20% (355 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 89 duplicates...
Size#FoldersFilesLinesCode
23 x 2 ROOT
ROOT
cait_models.py
patchconvnet_models.py
24:54 (6%)
41:75 (7%)
view
15 x 2 ROOT
ROOT
cait_models.py
patchconvnet_models.py
62:83 (4%)
119:135 (4%)
view
11 x 2 ROOT
ROOT
cait_models.py
cait_models.py
61:71 (3%)
134:144 (3%)
view
10 x 2 ROOT
ROOT
main.py
main.py
385:394 (2%)
404:413 (2%)
view
10 x 2 ROOT
ROOT
patchconvnet_models.py
patchconvnet_models.py
41:52 (3%)
79:89 (3%)
view
10 x 2 ROOT
ROOT
cait_models.py
patchconvnet_models.py
135:144 (2%)
119:129 (3%)
view
10 x 2 ROOT
ROOT
cait_models.py
patchconvnet_models.py
24:34 (2%)
79:89 (3%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
309:319 (2%)
331:341 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
288:297 (2%)
378:388 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
331:341 (2%)
400:410 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
400:410 (2%)
422:436 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
288:297 (2%)
353:366 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
378:388 (2%)
448:459 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
400:410 (2%)
448:459 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
266:276 (2%)
288:297 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
266:276 (2%)
378:388 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
353:366 (2%)
400:410 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
331:341 (2%)
353:366 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
309:319 (2%)
400:410 (2%)
view
8 x 2 ROOT
ROOT
cait_models.py
cait_models.py
288:297 (2%)
400:410 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
patchconvnet_models.py
cait_models.py
0:0 
0:0 
view