tensorflow / hub
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
  • 5% duplication:
    • 3,705 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 191 duplicated lines
  • 22 duplicates
system5% (191 lines)
Duplication per Extension
py4% (143 lines)
proto45% (48 lines)
Duplication per Component (primary)
tensorflow_hub7% (191 lines)
tensorflow_hub/pip_package0% (0 lines)
tensorflow_hub/tools/module_search0% (0 lines)
tensorflow_hub/tools/make_image_classifier0% (0 lines)
tensorflow_hub/tools0% (0 lines)
tensorflow_hub/tools/make_nearest_neighbour_index0% (0 lines)
build_docs0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 22 duplicates...
Size#FoldersFilesLinesCode
16 x 2 tensorflow_hub
tensorflow_hub
proto
image_module_info.proto
module_attachment.proto
1:17 (41%)
1:17 (61%)
view
16 x 2 tensorflow_hub
tensorflow_hub
proto
module_attachment.proto
module_def.proto
1:17 (61%)
1:17 (40%)
view
16 x 2 tensorflow_hub
tensorflow_hub
proto
image_module_info.proto
module_def.proto
1:17 (41%)
1:17 (40%)
view
14 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
142:161 (5%)
340:359 (5%)
view
12 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
144:159 (4%)
502:517 (4%)
view
12 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
342:357 (4%)
502:517 (4%)
view
10 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
168:183 (3%)
363:378 (3%)
view
9 x 2 tensorflow_hub
tensorflow_hub
image_util.py
image_util.py
84:92 (18%)
125:133 (18%)
view
9 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
365:378 (3%)
519:532 (3%)
view
9 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
170:183 (3%)
519:532 (3%)
view
8 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
153:166 (2%)
106:119 (11%)
view
8 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
219:227 (2%)
415:423 (2%)
view
7 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
144:153 (2%)
93:102 (9%)
view
7 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
502:511 (2%)
93:102 (9%)
view
7 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
342:351 (2%)
93:102 (9%)
view
7 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
351:359 (2%)
106:114 (9%)
view
6 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
221:227 (2%)
147:153 (8%)
view
6 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column_v2.py
511:517 (2%)
106:112 (8%)
view
6 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
187:195 (2%)
387:395 (2%)
view
6 x 2 tensorflow_hub
tensorflow_hub
feature_column.py
feature_column.py
187:195 (2%)
536:544 (2%)
view