facebookresearch / gan_of_gan
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
  • 14% duplication:
    • 1,035 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 155 duplicated lines
  • 29 duplicates
system14% (155 lines)
Duplication per Extension
py14% (155 lines)
Duplication per Component (primary)
ROOT16% (155 lines)
face_align0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 29 duplicates...
Size#FoldersFilesLinesCode
12 x 2 ROOT
ROOT
models_all.py
models_all.py
542:553 (2%)
564:575 (2%)
view
11 x 2 ROOT
ROOT
models_all.py
models_all.py
385:395 (2%)
398:408 (2%)
view
11 x 2 ROOT
ROOT
models_all.py
models_all.py
456:466 (2%)
471:481 (2%)
view
11 x 2 ROOT
ROOT
models_all.py
models_all.py
363:373 (2%)
430:441 (2%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
386:395 (1%)
457:466 (1%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
321:330 (1%)
431:441 (1%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
321:330 (1%)
364:373 (1%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
399:408 (1%)
457:466 (1%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
399:408 (1%)
472:481 (1%)
view
10 x 2 ROOT
ROOT
models_all.py
models_all.py
386:395 (1%)
472:481 (1%)
view
9 x 2 ROOT
ROOT
models_all.py
models_all.py
320:328 (1%)
457:465 (1%)
view
9 x 2 ROOT
ROOT
one_shot_domain_adaptation.py
one_shot_domain_adaptation.py
90:98 (2%)
167:175 (2%)
view
9 x 2 ROOT
ROOT
models_all.py
models_all.py
320:328 (1%)
399:407 (1%)
view
9 x 2 ROOT
ROOT
models_all.py
models_all.py
320:328 (1%)
472:480 (1%)
view
9 x 2 ROOT
ROOT
models_all.py
models_all.py
320:328 (1%)
386:394 (1%)
view
8 x 2 ROOT
ROOT
models_all.py
models_all.py
361:368 (1%)
540:547 (1%)
view
8 x 2 ROOT
ROOT
models_all.py
models_all.py
428:435 (1%)
562:569 (1%)
view
8 x 2 ROOT
ROOT
models_all.py
models_all.py
364:371 (1%)
400:407 (1%)
view
8 x 2 ROOT
ROOT
models_all.py
models_all.py
364:371 (1%)
458:465 (1%)
view
8 x 2 ROOT
ROOT
models_all.py
models_all.py
400:407 (1%)
431:438 (1%)
view