facebookresearch / torch_ucc
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
  • 4% duplication:
    • 1,685 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 74 duplicated lines
  • 5 duplicates
system4% (74 lines)
Duplication per Extension
cpp2% (31 lines)
hpp7% (29 lines)
py24% (14 lines)
Duplication per Component (primary)
src2% (31 lines)
include7% (29 lines)
ROOT24% (14 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
11 x 2 include
include
torch_ucc_comm.hpp
torch_ucc_comm.hpp
46:56 (8%)
69:79 (8%)
view
7 x 2 ROOT
ROOT
setup.py
setup.py
53:59 (12%)
64:70 (12%)
view
7 x 2 include
src
torch_ucc.hpp
torch_ucc.cpp
210:216 (2%)
704:710 (<1%)
view
6 x 2 src
src
torch_ucc.cpp
torch_ucc.cpp
1211:1216 (<1%)
1230:1235 (<1%)
view
6 x 2 src
src
torch_ucc.cpp
torch_ucc.cpp
904:909 (<1%)
1081:1086 (<1%)
view