tensorflow / 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
  • 8% duplication:
    • 4,664 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 416 duplicated lines
  • 34 duplicates
system8% (416 lines)
Duplication per Extension
py8% (416 lines)
Duplication per Component (primary)
tensorflow_gan/python/estimator14% (168 lines)
tensorflow_gan/python/losses18% (132 lines)
tensorflow_gan/python/features10% (62 lines)
tensorflow_gan/python/eval6% (54 lines)
tensorflow_gan/python0% (0 lines)
tensorflow_gan/python/tpu0% (0 lines)
tensorflow_gan0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 34 duplicates...
Size#FoldersFilesLinesCode
13 x 2 tensorflow_gan/python/features
tensorflow_gan/python/features
normalization.py
normalization.py
116:128 (6%)
316:328 (6%)
view
12 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
tuple_losses.py
44:55 (2%)
70:81 (7%)
view
12 x 2 tensorflow_gan/python/eval
tensorflow_gan/python/eval
classifier_metrics.py
classifier_metrics.py
447:461 (3%)
951:965 (3%)
view
10 x 2 tensorflow_gan/python/features
tensorflow_gan/python/features
normalization.py
normalization.py
130:139 (5%)
329:339 (5%)
view
10 x 2 tensorflow_gan/python/estimator
tensorflow_gan/python/estimator
gan_estimator.py
stargan_estimator.py
316:325 (5%)
319:328 (5%)
view
9 x 2 tensorflow_gan/python/estimator
tensorflow_gan/python/estimator
tpu_gan_estimator_test_lib.py
tpu_gan_estimator_test_lib.py
371:379 (2%)
382:390 (2%)
view
9 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
1187:1198 (1%)
1233:1244 (1%)
view
9 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
506:514 (1%)
631:639 (1%)
view
8 x 2 tensorflow_gan/python/features
tensorflow_gan/python/features
normalization.py
normalization.py
37:44 (4%)
162:169 (4%)
view
8 x 2 tensorflow_gan/python/eval
tensorflow_gan/python/eval
classifier_metrics.py
classifier_metrics.py
475:522 (2%)
527:552 (2%)
view
8 x 2 tensorflow_gan/python/estimator
tensorflow_gan/python/estimator
gan_estimator.py
tpu_gan_estimator.py
179:187 (4%)
234:242 (2%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
583:589 (1%)
679:685 (1%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
261:304 (1%)
509:546 (1%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
114:142 (1%)
782:818 (1%)
view
7 x 2 tensorflow_gan/python/eval
tensorflow_gan/python/eval
classifier_metrics.py
classifier_metrics.py
557:597 (1%)
614:659 (1%)
view
7 x 2 tensorflow_gan/python/estimator
tensorflow_gan/python/estimator
tpu_gan_estimator_test_lib.py
tpu_gan_estimator_test_lib.py
329:335 (1%)
440:446 (1%)
view
7 x 2 tensorflow_gan/python/estimator
tensorflow_gan/python/estimator
tpu_gan_estimator_test_lib.py
tpu_gan_estimator_test_lib.py
250:256 (1%)
269:275 (1%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
114:142 (1%)
261:304 (1%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
509:546 (1%)
782:818 (1%)
view
7 x 2 tensorflow_gan/python/losses
tensorflow_gan/python/losses
losses_impl.py
losses_impl.py
261:304 (1%)
782:818 (1%)
view