tensorflow / ecosystem
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
  • 11% duplication:
    • 1,790 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 204 duplicated lines
  • 11 duplicates
system11% (204 lines)
Duplication per Extension
jinja33% (134 lines)
py11% (58 lines)
scala1% (12 lines)
Duplication per Component (primary)
distribution_strategy37% (90 lines)
kubernetes57% (52 lines)
swarm42% (20 lines)
data_service14% (16 lines)
marathon23% (14 lines)
spark/spark-tensorflow-connector1% (12 lines)
spark/spark-tensorflow-distributor0% (0 lines)
docker0% (0 lines)
hadoop/src0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G distribution_strategy distribution_strategy kubernetes kubernetes distribution_strategy--kubernetes 64

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
22 x 2 distribution_strategy
distribution_strategy
keras_model_to_estimator.py
keras_model_to_estimator_client.py
26:54 (59%)
71:99 (29%)
view
14 x 2 kubernetes
swarm
template.yaml.jinja
template.yaml.jinja
11:26 (15%)
10:25 (29%)
view
12 x 2 distribution_strategy
kubernetes
template.yaml.jinja
template.yaml.jinja
68:79 (10%)
44:55 (13%)
view
8 x 2 data_service
data_service
data_service.yaml.jinja
data_service.yaml.jinja
19:26 (14%)
44:51 (14%)
view
7 x 2 distribution_strategy
kubernetes
template.yaml.jinja
template.yaml.jinja
59:65 (6%)
35:41 (7%)
view
7 x 2 distribution_strategy
distribution_strategy
keras_model_to_estimator.py
keras_model_to_estimator_client.py
70:78 (18%)
116:124 (9%)
view
7 x 2 marathon
marathon
template.json.jinja
template.json.jinja
35:41 (11%)
51:57 (11%)
view
7 x 2 distribution_strategy
kubernetes
template.yaml.jinja
template.yaml.jinja
97:103 (6%)
63:69 (7%)
view
6 x 2 kubernetes
swarm
template.yaml.jinja
template.yaml.jinja
75:80 (6%)
38:43 (12%)
view
6 x 2 distribution_strategy
kubernetes
template.yaml.jinja
template.yaml.jinja
52:57 (5%)
29:34 (6%)
view
6 x 2 spark/spark-tensorflow-c...k/datasources/tfrecords
spark/spark-tensorflow-c...k/datasources/tfrecords
TensorFlowInferSchema.scala
TensorFlowInferSchema.scala
79:88 (5%)
101:110 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 distribution_strategy
distribution_strategy
keras_model_to_estimator_client.py
keras_model_to_estimator.py
0:0 
0:0 
view