tensorflow / custom-op
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
  • 27% duplication:
    • 5,178 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,400 duplicated lines
  • 115 duplicates
system27% (1,400 lines)
Duplication per Extension
tpl38% (1,302 lines)
bzl7% (98 lines)
Duplication per Component (primary)
gpu/crosstool38% (1,164 lines)
gpu/cuda38% (138 lines)
gpu4% (68 lines)
tf14% (30 lines)
ROOT0% (0 lines)
tensorflow_zero_out/python0% (0 lines)
tensorflow_zero_out0% (0 lines)
tensorflow_zero_out/cc0% (0 lines)
tensorflow_time_two/python0% (0 lines)
tensorflow_time_two0% (0 lines)
tensorflow_time_two/cc0% (0 lines)

Duplication Between Components (50+ lines)

G gpu gpu tf tf gpu--tf 60

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 115 duplicates...
Size#FoldersFilesLinesCode
35 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
62:98 (2%)
323:359 (2%)
view
30 x 2 gpu/cuda
gpu/cuda
tpl
BUILD.tpl
BUILD.windows.tpl
4:39 (19%)
3:38 (21%)
view
27 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
110:139 (2%)
363:392 (2%)
view
25 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
164:192 (1%)
402:430 (1%)
view
23 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
204:230 (1%)
454:480 (1%)
view
21 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
237:261 (1%)
479:503 (1%)
view
19 x 2 gpu/cuda
gpu/cuda
tpl
BUILD.tpl
BUILD.windows.tpl
129:149 (12%)
123:143 (13%)
view
18 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
34:52 (1%)
307:325 (1%)
view
17 x 2 gpu
tf
cuda_configure.bzl
tf_configure.bzl
945:962 (1%)
61:78 (8%)
view
16 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
16:32 (1%)
289:305 (1%)
view
16 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
1043:1058 (1%)
1071:1086 (1%)
view
16 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
127:142 (1%)
146:161 (1%)
view
16 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
419:434 (1%)
448:463 (1%)
view
14 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
715:729 (1%)
732:746 (1%)
view
14 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
263:279 (1%)
505:521 (1%)
view
14 x 2 gpu/crosstool
gpu/crosstool
tpl
CROSSTOOL.tpl
CROSSTOOL.tpl
1215:1228 (1%)
1238:1251 (1%)
view
13 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
372:384 (<1%)
484:496 (<1%)
view
13 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
283:295 (<1%)
973:985 (<1%)
view
12 x 2 gpu/cuda
gpu/cuda
tpl
BUILD.tpl
BUILD.windows.tpl
41:52 (7%)
42:53 (8%)
view
12 x 2 gpu/crosstool
gpu/crosstool
tpl
cc_toolchain_config.bzl.tpl
cc_toolchain_config.bzl.tpl
201:212 (<1%)
216:227 (<1%)
view