microsoft / MPI.NET
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
  • 18% duplication:
    • 6,873 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,278 duplicated lines
  • 118 duplicates
system18% (1,278 lines)
Duplication per Extension
cs21% (1,229 lines)
c10% (49 lines)
Duplication per Component (primary)
MPI9% (501 lines)
Benchmarks/netpipe_cs_generic89% (155 lines)
Benchmarks/netpipe_cs_hare89% (154 lines)
Benchmarks/netpipe_cs_tortoise88% (154 lines)
Benchmarks/Netcoll_cs54% (134 lines)
Benchmarks/Netpipe_cs75% (131 lines)
Benchmarks/NetPipe9% (49 lines)
MPI/Properties0% (0 lines)
TestCommons0% (0 lines)
TestCommons/Properties0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G Benchmarks/netpipe_cs_hare Benchmarks/netpipe_cs_hare Benchmarks/netpipe_cs_tortoise Benchmarks/netpipe_cs_tortoise Benchmarks/netpipe_cs_hare--Benchmarks/netpipe_cs_tortoise 308 Benchmarks/Netpipe_cs Benchmarks/Netpipe_cs Benchmarks/netpipe_cs_generic Benchmarks/netpipe_cs_generic Benchmarks/Netpipe_cs--Benchmarks/netpipe_cs_generic 260 Benchmarks/Netpipe_cs--Benchmarks/netpipe_cs_tortoise 188 Benchmarks/Netpipe_cs--Benchmarks/netpipe_cs_hare 188 Benchmarks/netpipe_cs_generic--Benchmarks/netpipe_cs_tortoise 251 Benchmarks/netpipe_cs_generic--Benchmarks/netpipe_cs_hare 251 Benchmarks/Netcoll_cs Benchmarks/Netcoll_cs Benchmarks/Netcoll_cs--Benchmarks/Netpipe_cs 108 Benchmarks/Netcoll_cs--Benchmarks/netpipe_cs_generic 102 Benchmarks/Netcoll_cs--Benchmarks/netpipe_cs_tortoise 84 Benchmarks/Netcoll_cs--Benchmarks/netpipe_cs_hare 84

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 118 duplicates...
Size#FoldersFilesLinesCode
69 x 2 Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
152:259 (43%)
155:262 (42%)
view
65 x 2 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
173:270 (40%)
165:262 (40%)
view
65 x 2 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Netpipe_cs.cs
Netpipe_cs.cs
173:270 (40%)
162:259 (40%)
view
37 x 2 Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
59:112 (23%)
59:112 (22%)
view
34 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_generic
Netpipe_cs.cs
Netpipe_cs.cs
32:86 (21%)
32:86 (21%)
view
27 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_generic
Netpipe_cs.cs
Netpipe_cs.cs
88:126 (16%)
88:126 (16%)
view
26 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
195:228 (16%)
187:220 (16%)
view
26 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_hare
Netpipe_cs.cs
Netpipe_cs.cs
195:228 (16%)
184:217 (16%)
view
26 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_generic
Netpipe_cs.cs
Netpipe_cs.cs
195:228 (16%)
195:228 (16%)
view
24 x 2 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
73:104 (15%)
81:112 (14%)
view
24 x 2 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Netpipe_cs.cs
Netpipe_cs.cs
73:104 (15%)
81:112 (15%)
view
22 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_generic
Netpipe_cs.cs
Netpipe_cs.cs
234:266 (13%)
234:266 (13%)
view
22 x 2 Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
115:150 (13%)
119:153 (13%)
view
22 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
234:266 (13%)
226:258 (13%)
view
22 x 2 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_hare
Netpipe_cs.cs
Netpipe_cs.cs
234:266 (13%)
223:255 (13%)
view
18 x 2 MPI
MPI
Intercommunicator.cs
Intracommunicator.cs
510:578 (2%)
310:382 (2%)
view
18 x 2 MPI
MPI
Request.cs
Request.cs
609:644 (3%)
778:814 (3%)
view
18 x 2 MPI
MPI
Intercommunicator.cs
Intracommunicator.cs
462:501 (2%)
240:303 (2%)
view
16 x 2 Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
32:57 (10%)
32:57 (9%)
view
16 x 2 Benchmarks/Netcoll_cs
Benchmarks/Netpipe_cs
netcoll_cs.cs
Netpipe_cs.cs
126:145 (6%)
85:104 (10%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
27 x 3 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
Netpipe_cs.cs
240:271 
229:260 
232:263 
view
26 x 3 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
Netpipe_cs.cs
211:238 
200:227 
203:230 
view
16 x 2 MPI
MPI
Request.cs
Request.cs
612:633 
782:803 
view
15 x 3 Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
Netpipe_cs.cs
178:193 
167:182 
170:185 
view
13 x 4 Benchmarks/Netpipe_cs
Benchmarks/netpipe_cs_generic
Benchmarks/netpipe_cs_hare
Benchmarks/netpipe_cs_tortoise
Netpipe_cs.cs
Netpipe_cs.cs
Netpipe_cs.cs
Netpipe_cs.cs
195:209 
195:209 
184:198 
187:201 
view
8 x 2 MPI
MPI
Request.cs
Request.cs
216:228 
808:817 
view
6 x 2 MPI
MPI
Intercommunicator.cs
Intracommunicator.cs
385:391 
201:207 
view
6 x 2 MPI
MPI
Intercommunicator.cs
Intracommunicator.cs
1796:1802 
1929:1935 
view