tensorflow / haskell
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
  • 13% duplication:
    • 7,142 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 975 duplicated lines
  • 504 duplicates
system13% (975 lines)
Duplication per Extension
hs9% (557 lines)
cabal43% (405 lines)
chs11% (13 lines)
Duplication per Component (primary)
tensorflow-ops13% (311 lines)
tensorflow11% (262 lines)
tensorflow-proto87% (191 lines)
tensorflow-records17% (37 lines)
tensorflow-mnist5% (31 lines)
tensorflow-opgen3% (25 lines)
tensorflow-logging10% (25 lines)
tensorflow-records-conduit32% (24 lines)
tensorflow-test43% (24 lines)
tensorflow-mnist-input-data16% (23 lines)
tensorflow-core-ops11% (22 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G tensorflow-ops tensorflow-ops tensorflow tensorflow tensorflow-ops--tensorflow 276 tensorflow-records tensorflow-records tensorflow-ops--tensorflow-records 138 tensorflow-test tensorflow-test tensorflow-ops--tensorflow-test 125 tensorflow-records-conduit tensorflow-records-conduit tensorflow-ops--tensorflow-records-conduit 125 tensorflow-proto tensorflow-proto tensorflow-ops--tensorflow-proto 119 tensorflow-records--tensorflow 200 tensorflow-records--tensorflow-test 61 tensorflow-mnist tensorflow-mnist tensorflow-mnist--tensorflow-ops 142 tensorflow-mnist--tensorflow 189 tensorflow-mnist--tensorflow-records 57 tensorflow-logging tensorflow-logging tensorflow-logging--tensorflow-ops 127 tensorflow-logging--tensorflow 187 tensorflow-logging--tensorflow-records 61 tensorflow-test--tensorflow 187 tensorflow-opgen tensorflow-opgen tensorflow-opgen--tensorflow-ops 125 tensorflow-opgen--tensorflow 187 tensorflow-opgen--tensorflow-records 59 tensorflow-records-conduit--tensorflow 187 tensorflow-records-conduit--tensorflow-records 61 tensorflow-mnist-input-data tensorflow-mnist-input-data tensorflow-mnist-input-data--tensorflow-ops 119 tensorflow-mnist-input-data--tensorflow 183 tensorflow-mnist-input-data--tensorflow-records 53 tensorflow-proto--tensorflow 183 tensorflow-proto--tensorflow-records 53 tensorflow-core-ops tensorflow-core-ops tensorflow-core-ops--tensorflow-ops 117 tensorflow-core-ops--tensorflow 183 tensorflow-core-ops--tensorflow-records 53

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 504 duplicates...
Size#FoldersFilesLinesCode
57 x 2 tensorflow-proto
tensorflow-proto
cabal
tensorflow-proto.cabal
tensorflow-proto.cabal
49:105 (28%)
135:191 (28%)
view
27 x 2 tensorflow-proto
tensorflow-proto
cabal
tensorflow-proto.cabal
tensorflow-proto.cabal
22:48 (13%)
107:133 (13%)
view
19 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
Gradient.hs
Minimize.hs
1:20 (2%)
1:20 (16%)
view
17 x 2 tensorflow/src/TensorFlow
tensorflow/src/TensorFlow
hs
Output.hs
Session.hs
1:18 (16%)
1:18 (8%)
view
16 x 2 tensorflow/src/TensorFlow
tensorflow/src/TensorFlow
hs
Nodes.hs
Tensor.hs
1:17 (13%)
1:17 (9%)
view
16 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
EmbeddingOps.hs
Minimize.hs
1:17 (18%)
1:17 (14%)
view
16 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
EmbeddingOps.hs
Gradient.hs
1:17 (18%)
1:17 (1%)
view
15 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
NN.hs
Tensor.hs
1:16 (17%)
1:16 (9%)
view
15 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
NN.hs
Nodes.hs
1:16 (17%)
1:16 (12%)
view
14 x 2 tensorflow-mnist/app
tensorflow/src/TensorFlow
hs
Main.hs
BuildOp.hs
1:15 (10%)
1:15 (5%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
Minimize.hs
Types.hs
1:15 (12%)
1:15 (2%)
view
14 x 2 tensorflow/src/TensorFlow
tensorflow/src/TensorFlow
hs
Build.hs
Session.hs
1:15 (4%)
1:15 (7%)
view
14 x 2 tensorflow-core-ops
tensorflow-opgen/src/TensorFlow
hs
Setup.hs
OpGen.hs
1:14 (9%)
1:15 (3%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
Convolution.hs
Gradient.hs
2:16 (5%)
2:16 (1%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
Gradient.hs
Types.hs
1:15 (1%)
1:15 (2%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
Convolution.hs
EmbeddingOps.hs
2:16 (5%)
2:16 (16%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow-ops/src/TensorFlow
hs
Convolution.hs
Minimize.hs
2:16 (5%)
2:16 (12%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
EmbeddingOps.hs
Types.hs
1:15 (16%)
1:15 (2%)
view
14 x 2 tensorflow-ops/src/TensorFlow
tensorflow/src/TensorFlow
hs
Queue.hs
Tensor.hs
1:15 (22%)
1:15 (8%)
view
14 x 2 tensorflow/src/TensorFlow
tensorflow/src/TensorFlow
hs
Build.hs
Output.hs
1:15 (4%)
1:15 (13%)
view