microsoft / onnxconverter-common
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
  • 2% duplication:
    • 5,850 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 124 duplicated lines
  • 10 duplicates
system2% (124 lines)
Duplication per Extension
py2% (124 lines)
Duplication per Component (primary)
onnxconverter_common2% (124 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
9 x 2 onnxconverter_common
onnxconverter_common
optimizer.py
optimizer.py
662:672 (<1%)
691:701 (<1%)
view
9 x 2 onnxconverter_common
onnxconverter_common
tree_ensemble.py
tree_ensemble.py
16:24 (10%)
36:44 (10%)
view
8 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
89:96 (<1%)
103:110 (<1%)
view
7 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
590:596 (<1%)
870:876 (<1%)
view
7 x 2 onnxconverter_common
onnxconverter_common
optimizer.py
optimizer.py
1174:1180 (<1%)
1195:1201 (<1%)
view
7 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
689:696 (<1%)
918:927 (<1%)
view
6 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
405:410 (<1%)
574:579 (<1%)
view
6 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
405:410 (<1%)
466:471 (<1%)
view
6 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
777:782 (<1%)
1042:1047 (<1%)
view
6 x 2 onnxconverter_common
onnxconverter_common
onnx_ops.py
onnx_ops.py
466:471 (<1%)
574:579 (<1%)
view