aws / aws-ofi-nccl
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
  • 5% duplication:
    • 1,470 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 74 duplicated lines
  • 5 duplicates
system5% (74 lines)
Duplication per Extension
c5% (74 lines)
Duplication per Component (primary)
src5% (74 lines)
include0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
10 x 2 src
src
nccl_ofi_net.c
nccl_ofi_net.c
1391:1404 (<1%)
1694:1708 (<1%)
view
8 x 2 src
src
nccl_ofi_net.c
nccl_ofi_net.c
1235:1244 (<1%)
1328:1337 (<1%)
view
7 x 2 src
src
nccl_ofi_net.c
nccl_ofi_net.c
1746:1754 (<1%)
1820:1828 (<1%)
view
6 x 2 src
src
nccl_ofi_net.c
nccl_ofi_net.c
764:769 (<1%)
825:830 (<1%)
view
6 x 2 src
src
nccl_ofi_net.c
nccl_ofi_net.c
1270:1275 (<1%)
1409:1414 (<1%)
view