tensorflow / cloud
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
  • 4% duplication:
    • 3,847 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 164 duplicated lines
  • 13 duplicates
system4% (164 lines)
Duplication per Extension
py3% (122 lines)
bzl25% (42 lines)
Duplication per Component (primary)
src/python/tensorflow_cloud/tuner5% (88 lines)
src/cpp/monitoring8% (42 lines)
src/python/tensorflow_cloud/core2% (34 lines)
g3doc0% (0 lines)
api_docs0% (0 lines)
src/python0% (0 lines)
src/python/tensorflow_cloud/core/experimental0% (0 lines)
src/python/tensorflow_cloud0% (0 lines)
src/python/tensorflow_cloud/utils0% (0 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
14 x 2 src/cpp/monitoring
src/cpp/monitoring
build_config.bzl
repository_rules.bzl
1:15 (35%)
1:15 (32%)
view
14 x 2 src/cpp/monitoring
src/cpp/monitoring
build_config.bzl
build_rules.bzl
1:15 (35%)
1:15 (17%)
view
14 x 2 src/cpp/monitoring
src/cpp/monitoring
build_rules.bzl
repository_rules.bzl
1:15 (17%)
1:15 (32%)
view
9 x 2 src/python/tensorflow_cloud/core
src/python/tensorflow_cloud/core
run.py
run.py
91:99 (5%)
324:332 (5%)
view
9 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
tuner.py
tuner.py
488:496 (2%)
586:594 (2%)
view
8 x 2 src/python/tensorflow_cloud/core
src/python/tensorflow_cloud/core
run.py
validate.py
250:257 (5%)
23:30 (6%)
view
7 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
vizier_client.py
vizier_client_interface.py
141:147 (2%)
51:57 (25%)
view
7 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
tuner.py
tuner.py
454:460 (1%)
511:517 (1%)
view
7 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
tuner.py
tuner.py
94:100 (1%)
459:465 (1%)
view
6 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
utils.py
utils.py
278:283 (1%)
293:298 (1%)
view
6 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
vizier_client.py
vizier_client.py
99:104 (2%)
181:186 (2%)
view
6 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
vizier_client.py
vizier_client.py
99:104 (2%)
264:269 (2%)
view
6 x 2 src/python/tensorflow_cloud/tuner
src/python/tensorflow_cloud/tuner
vizier_client.py
vizier_client.py
181:186 (2%)
264:269 (2%)
view