microsoft / WindowsDevicePortalWrapper
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
  • 12% duplication:
    • 5,968 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 741 duplicated lines
  • 52 duplicates
system12% (741 lines)
Duplication per Extension
cs12% (741 lines)
Duplication per Component (primary)
UnitTestProject/Device-VersionTests15% (182 lines)
UnitTestProject/Core24% (76 lines)
UnitTestProject/WDPMockImplementations34% (65 lines)
WindowsDevicePortalWrapper.Shared/Core5% (64 lines)
WindowsDevicePortalWrapper.UniversalWindows/Core48% (64 lines)
WindowsDevicePortalWrapper.Shared/HoloLens8% (54 lines)
WindowsDevicePortalWrapper.UniversalWindows/HttpRest20% (48 lines)
WindowsDevicePortalWrapper.UniversalWindows65% (47 lines)
WindowsDevicePortalWrapper42% (47 lines)
WindowsDevicePortalWrapper/HttpRest19% (42 lines)
WindowsDevicePortalWrapper.Shared/HttpRest11% (29 lines)
MockDataGenerator6% (11 lines)
WindowsDevicePortalWrapper.Shared2% (6 lines)
WindowsDevicePortalWrapper.Shared/Exceptions6% (6 lines)
MockDataGenerator/Properties0% (0 lines)
UnitTestProject0% (0 lines)
UnitTestProject/Properties0% (0 lines)
WindowsDevicePortalWrapper.Shared/Events0% (0 lines)
WindowsDevicePortalWrapper.Shared/Interfaces0% (0 lines)
WindowsDevicePortalWrapper.Shared/IoT0% (0 lines)
WindowsDevicePortalWrapper.Shared/Xbox0% (0 lines)
WindowsDevicePortalWrapper.UniversalWindows/Properties0% (0 lines)
WindowsDevicePortalWrapper/Core0% (0 lines)
WindowsDevicePortalWrapper/Events0% (0 lines)
WindowsDevicePortalWrapper/Properties0% (0 lines)

Duplication Between Components (50+ lines)

G UnitTestProject/Core UnitTestProject/Core UnitTestProject/Device-VersionTests UnitTestProject/Device-VersionTests UnitTestProject/Core--UnitTestProject/Device-VersionTests 152 WindowsDevicePortalWrapper.UniversalWindows WindowsDevicePortalWrapper.UniversalWindows WindowsDevicePortalWrapper WindowsDevicePortalWrapper WindowsDevicePortalWrapper.UniversalWindows--WindowsDevicePortalWrapper 94 WindowsDevicePortalWrapper.Shared/Core WindowsDevicePortalWrapper.Shared/Core WindowsDevicePortalWrapper.UniversalWindows/Core WindowsDevicePortalWrapper.UniversalWindows/Core WindowsDevicePortalWrapper.Shared/Core--WindowsDevicePortalWrapper.UniversalWindows/Core 88

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 52 duplicates...
Size#FoldersFilesLinesCode
29 x 2 WindowsDevicePortalWrapp...rapper.UniversalWindows
WindowsDevicePortalWrapp...dowsDevicePortalWrapper
DefaultDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
94:144 (52%)
149:199 (38%)
view
27 x 2 WindowsDevicePortalWrapp...rtalWrapper.Shared/Core
WindowsDevicePortalWrapp...r.UniversalWindows/Core
AppDeployment.cs
AppDeployment.cs
136:173 (17%)
231:268 (20%)
view
26 x 2 WindowsDevicePortalWrapper/UnitTestProject/Core
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
PerformanceDataTests.cs
XboxOne_rs1_xbox_rel_1608.cs
181:211 (21%)
722:752 (5%)
view
18 x 2 WindowsDevicePortalWrapper/UnitTestProject/Core
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
PerformanceDataTests.cs
XboxOne_rs1_xbox_rel_1608.cs
45:72 (14%)
282:309 (3%)
view
18 x 2 WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
XboxOne_rs1_xbox_rel_1608.cs
XboxOne_rs1_xbox_rel_1608.cs
105:135 (3%)
508:538 (3%)
view
17 x 2 WindowsDevicePortalWrapper/UnitTestProject/Core
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
PerformanceDataTests.cs
XboxOne_rs1_xbox_rel_1608.cs
140:156 (13%)
677:693 (3%)
view
17 x 2 WindowsDevicePortalWrapp...rtalWrapper.Shared/Core
WindowsDevicePortalWrapp...r.UniversalWindows/Core
AppDeployment.cs
AppDeployment.cs
97:121 (11%)
146:170 (12%)
view
15 x 2 WindowsDevicePortalWrapper/UnitTestProject/Core
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
PerformanceDataTests.cs
XboxOne_rs1_xbox_rel_1608.cs
103:126 (12%)
343:366 (3%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
164:177 (4%)
259:272 (4%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
136:149 (4%)
164:177 (4%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
108:121 (4%)
259:272 (4%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
136:149 (4%)
259:272 (4%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
108:121 (4%)
164:177 (4%)
view
12 x 2 WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
WindowsDevicePortalWrapp...Wrapper.Shared/HoloLens
MixedRealityCapture.cs
MixedRealityCapture.cs
108:121 (4%)
136:149 (4%)
view
11 x 2 WindowsDevicePortalWrapper/MockDataGenerator
WindowsDevicePortalWrapp...Wrapper.Shared/HttpRest
Program.cs
RequestHelpers.cs
244:260 (8%)
24:40 (84%)
view
10 x 2 WindowsDevicePortalWrapp.../WDPMockImplementations
WindowsDevicePortalWrapp...rapper.UniversalWindows
MockDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
54:82 (40%)
66:94 (18%)
view
10 x 2 WindowsDevicePortalWrapp...e-VersionTests/HoloLens
WindowsDevicePortalWrapp...Device-VersionTests/IoT
HoloLens_rs1_release.cs
IoT_rs1_release.cs
59:72 (7%)
61:74 (1%)
view
9 x 2 WindowsDevicePortalWrapp.../WDPMockImplementations
WindowsDevicePortalWrapp...dowsDevicePortalWrapper
MockDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
54:75 (36%)
103:124 (12%)
view
9 x 2 WindowsDevicePortalWrapp...rapper.UniversalWindows
WindowsDevicePortalWrapp...dowsDevicePortalWrapper
DefaultDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
66:87 (16%)
103:124 (12%)
view
9 x 2 WindowsDevicePortalWrapp.../WDPMockImplementations
WindowsDevicePortalWrapp.../WDPMockImplementations
RestPost.cs
RestPut.cs
69:91 (27%)
48:70 (39%)
view
Duplicated Units
The list of top 8 duplicated units.
See data for all 8 unit duplicates...
Size#FoldersFilesLinesCode
34 x 2 WindowsDevicePortalWrapp...rapper.UniversalWindows
WindowsDevicePortalWrapp...dowsDevicePortalWrapper
DefaultDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
109:147 
164:202 
view
27 x 2 WindowsDevicePortalWrapper/UnitTestProject/Core
WindowsDevicePortalWrapp...ce-VersionTests/XboxOne
PerformanceDataTests.cs
XboxOne_rs1_xbox_rel_1608.cs
181:212 
722:753 
view
15 x 2 WindowsDevicePortalWrapper/MockDataGenerator
WindowsDevicePortalWrapp...Wrapper.Shared/HttpRest
Program.cs
RequestHelpers.cs
244:262 
24:42 
view
11 x 2 WindowsDevicePortalWrapp...e-VersionTests/HoloLens
WindowsDevicePortalWrapp...Device-VersionTests/IoT
HoloLens_rs1_release.cs
IoT_rs1_release.cs
83:98 
85:100 
view
7 x 2 WindowsDevicePortalWrapp...rapper.UniversalWindows
WindowsDevicePortalWrapp...dowsDevicePortalWrapper
DefaultDevicePortalConnection.cs
DefaultDevicePortalConnection.cs
94:101 
149:156 
view
6 x 2 WindowsDevicePortalWrapp.../WDPMockImplementations
WindowsDevicePortalWrapp...ePortalWrapper/HttpRest
WebSocket.cs
WebSocket.cs
50:56 
57:63 
view
6 x 2 WindowsDevicePortalWrapp...iversalWindows/HttpRest
WindowsDevicePortalWrapp...ePortalWrapper/HttpRest
HttpMultipartFileContent.cs
HttpMultipartFileContent.cs
63:69 
55:61 
view
6 x 2 WindowsDevicePortalWrapp...iversalWindows/HttpRest
WindowsDevicePortalWrapp...ePortalWrapper/HttpRest
HttpMultipartFileContent.cs
HttpMultipartFileContent.cs
75:81 
67:73 
view