microsoft / ntttcp-for-linux
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:
    • 3,026 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 179 duplicated lines
  • 14 duplicates
system5% (179 lines)
Duplication per Extension
c6% (179 lines)
Duplication per Component (primary)
src5% (179 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 14 longest duplicates.
See data for all 14 duplicates...
Size#FoldersFilesLinesCode
11 x 2 src
src
tcpstream.c
udpstream.c
337:349 (2%)
217:229 (6%)
view
10 x 2 src
src
tcpstream.c
tcpstream.c
488:503 (2%)
620:634 (2%)
view
9 x 2 src
src
util.c
util.c
355:364 (1%)
465:474 (1%)
view
9 x 2 src
src
tcpstream.c
tcpstream.c
389:399 (1%)
548:558 (1%)
view
8 x 2 src
src
endpointsync.c
endpointsync.c
129:138 (2%)
184:193 (2%)
view
8 x 2 src
src
tcpstream.c
tcpstream.c
464:471 (1%)
605:612 (1%)
view
8 x 2 src
src
endpointsync.c
tcpstream.c
349:360 (2%)
599:610 (1%)
view
7 x 2 src
src
util.c
util.c
323:331 (1%)
342:350 (1%)
view
7 x 2 src
src
tcpstream.c
udpstream.c
232:240 (1%)
112:120 (4%)
view
7 x 2 src
src
endpointsync.c
endpointsync.c
130:138 (2%)
157:165 (2%)
view
7 x 2 src
src
endpointsync.c
endpointsync.c
157:165 (2%)
185:193 (2%)
view
6 x 2 src
src
oscounter.c
oscounter.c
176:193 (3%)
247:260 (3%)
view
6 x 2 src
src
endpointsync.c
tcpstream.c
355:360 (1%)
464:469 (1%)
view
6 x 2 src
src
tcpstream.c
udpstream.c
288:293 (1%)
175:181 (3%)
view