tensorflow / serving
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
  • 3% duplication:
    • 17,367 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 534 duplicated lines
  • 53 duplicates
system3% (534 lines)
Duplication per Extension
cc3% (368 lines)
h1% (62 lines)
proto5% (54 lines)
py5% (50 lines)
Duplication per Component (primary)
tensorflow_serving/servables4% (135 lines)
tensorflow_serving/util2% (116 lines)
tensorflow_serving/batching5% (73 lines)
tensorflow_serving/core1% (66 lines)
tensorflow_serving/apis5% (44 lines)
tensorflow_serving/experimental8% (36 lines)
tensorflow_serving/model_servers1% (32 lines)
tensorflow_serving/resources3% (18 lines)
tensorflow_serving/example2% (14 lines)
tensorflow_serving0% (0 lines)
tensorflow_serving/g3doc0% (0 lines)
tensorflow_serving/sources0% (0 lines)
tensorflow_serving/tools0% (0 lines)
tensorflow_serving/session_bundle0% (0 lines)
tensorflow_serving/config0% (0 lines)

Duplication Between Components (50+ lines)

G tensorflow_serving/batching tensorflow_serving/batching tensorflow_serving/servables tensorflow_serving/servables tensorflow_serving/batching--tensorflow_serving/servables 98 tensorflow_serving/core tensorflow_serving/core tensorflow_serving/util tensorflow_serving/util tensorflow_serving/core--tensorflow_serving/util 72

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 53 duplicates...
Size#FoldersFilesLinesCode
36 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
275:313 (17%)
239:277 (28%)
view
28 x 2 tensorflow_serving/util/net_http/server/internal
tensorflow_serving/util/net_http/socket/testing
evhttp_request.cc
ev_print_req_server.cc
59:86 (12%)
40:67 (18%)
view
18 x 2 tensorflow_serving/exper...mote_predict/python/ops
tensorflow_serving/exper...mote_predict/python/ops
remote_predict_ops.py
remote_predict_ops.py
37:74 (35%)
83:120 (35%)
view
16 x 2 tensorflow_serving/batching
tensorflow_serving/servables/tensorflow
batching_session.cc
tflite_session.h
178:215 (2%)
156:174 (14%)
view
11 x 2 tensorflow_serving/apis
tensorflow_serving/apis
proto
input.proto
input.proto
35:45 (14%)
47:57 (14%)
view
10 x 2 tensorflow_serving/apis/internal
tensorflow_serving/servables/tensorflow
proto
serialized_input.proto
thread_pool_factory_config.proto
3:14 (28%)
3:14 (50%)
view
10 x 2 tensorflow_serving/servables/tensorflow
tensorflow_serving/servables/tensorflow
classifier.cc
regressor.cc
151:161 (4%)
146:156 (5%)
view
9 x 2 tensorflow_serving/resources
tensorflow_serving/resources
resource_util.cc
resource_util.cc
377:386 (2%)
427:436 (2%)
view
8 x 2 tensorflow_serving/servables/tensorflow
tensorflow_serving/servables/tensorflow
classifier.cc
regressor.cc
50:57 (3%)
49:56 (4%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
296:303 (3%)
240:247 (6%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
276:283 (3%)
250:257 (6%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
296:303 (3%)
250:257 (6%)
view
8 x 2 tensorflow_serving/util
tensorflow_serving/util
fast_read_dynamic_ptr_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
250:257 (6%)
270:277 (6%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/core
aspired_versions_manager_benchmark.cc
aspired_versions_manager_benchmark.cc
286:293 (3%)
306:313 (3%)
view
8 x 2 tensorflow_serving/util
tensorflow_serving/util
fast_read_dynamic_ptr_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
250:257 (6%)
260:267 (6%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/core
aspired_versions_manager_benchmark.cc
aspired_versions_manager_benchmark.cc
286:293 (3%)
296:303 (3%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
286:293 (3%)
270:277 (6%)
view
8 x 2 tensorflow_serving/util
tensorflow_serving/util
fast_read_dynamic_ptr_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
240:247 (6%)
260:267 (6%)
view
8 x 2 tensorflow_serving/core
tensorflow_serving/util
aspired_versions_manager_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
286:293 (3%)
240:247 (6%)
view
8 x 2 tensorflow_serving/util
tensorflow_serving/util
fast_read_dynamic_ptr_benchmark.cc
fast_read_dynamic_ptr_benchmark.cc
240:247 (6%)
270:277 (6%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 tensorflow_serving/batching
tensorflow_serving/batching
batching_util.h
batching_util.h
134:145 
148:159 
view
8 x 2 tensorflow_serving/servables/tensorflow
tensorflow_serving/servables/tensorflow
classifier.cc
regressor.cc
49:57 
48:56 
view