microsoft / dpu-utils
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
  • 1% duplication:
    • 4,132 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 5 duplicates
system1% (72 lines)
Duplication per Extension
py2% (72 lines)
Duplication per Component (primary)
python/dpu_utils/tf2utils12% (18 lines)
python/dpu_utils/tfutils10% (16 lines)
python/dpu_utils/utils1% (14 lines)
python/dpu_utils/tfmodels3% (12 lines)
python/dpu_utils/codeutils3% (12 lines)
ROOT0% (0 lines)
dotnet/CSharpSourceGraphExtraction/GraphBuilders0% (0 lines)
dotnet/CSharpSourceGraphExtraction0% (0 lines)
dotnet/CSharpSourceGraphExtraction/Utils0% (0 lines)
dotnet/Utils0% (0 lines)
python0% (0 lines)
python/dpu_utils0% (0 lines)
python/dpu_utils/mlutils0% (0 lines)
python/dpu_utils/ptutils0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
9 x 2 python/dpu_utils/tf2utils
python/dpu_utils/tf2utils
unsorted_segment_ops.py
unsorted_segment_ops.py
30:39 (20%)
51:60 (20%)
view
8 x 2 python/dpu_utils/tfutils
python/dpu_utils/tfutils
unsortedsegmentops.py
unsortedsegmentops.py
26:34 (22%)
43:51 (22%)
view
7 x 2 python/dpu_utils/utils
python/dpu_utils/utils
richpath.py
richpath.py
220:226 (1%)
364:370 (1%)
view
6 x 2 python/dpu_utils/tfmodels
python/dpu_utils/tfmodels
asyncgnn.py
sparsegnn.py
64:69 (3%)
92:97 (3%)
view
6 x 2 python/dpu_utils/codeutils/lattice
python/dpu_utils/codeutils/lattice
lattice.py
lattice.py
117:122 (5%)
139:144 (5%)
view