microsoft / MTC_WindowsSmartInk
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
  • 9% duplication:
    • 3,626 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 337 duplicated lines
  • 28 duplicates
system9% (337 lines)
Duplication per Extension
cs7% (205 lines)
xaml15% (132 lines)
Duplication per Component (primary)
SmartInkLaboratory23% (115 lines)
SmartInkLaboratory/Views13% (80 lines)
EBC_InkDemo/Views23% (59 lines)
EBC_InkDemo68% (20 lines)
SmartInkLaboratory/ViewModels1% (14 lines)
Microsoft.MTC.SmartInk/Extensions14% (13 lines)
SmartInkLaboratory/Extensions100% (9 lines)
EBC_InkDemo/Extensions100% (9 lines)
EBC_InkDemo/Properties50% (6 lines)
Microsoft.MTC.SmartInk/Properties50% (6 lines)
SmartInkLaboratory/Properties50% (6 lines)
EBC_InkDemo/Converters0% (0 lines)
EBC_InkDemo/ViewModels0% (0 lines)
Microsoft.MTC.SmartInk0% (0 lines)
SmartInkLaboratory/AI0% (0 lines)
SmartInkLaboratory/Models0% (0 lines)
SmartInkLaboratory/Services0% (0 lines)
SmartInkLaboratory/Themes0% (0 lines)

Duplication Between Components (50+ lines)

G EBC_InkDemo/Views EBC_InkDemo/Views SmartInkLaboratory SmartInkLaboratory EBC_InkDemo/Views--SmartInkLaboratory 102

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 28 duplicates...
Size#FoldersFilesLinesCode
20 x 2 WindowsSmartInk/EBC_InkDemo
WindowsSmartInk/SmartInkLaboratory
App.xaml.cs
App.xaml.cs
24:98 (95%)
23:97 (95%)
view
19 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
138:161 (13%)
151:174 (14%)
view
11 x 2 WindowsSmartInk/SmartInk...tory/Views/UserControls
WindowsSmartInk/SmartInk...tory/Views/UserControls
xaml
PackageView.xaml
TestView.xaml
15:29 (42%)
51:65 (12%)
view
9 x 2 WindowsSmartInk/EBC_InkDemo/Extensions
WindowsSmartInk/SmartInkLaboratory/Extensions
RectExtensions.cs
RectExtensions.cs
1:39 (100%)
1:39 (100%)
view
9 x 2 WindowsSmartInk/SmartInk...tory/Views/UserControls
WindowsSmartInk/SmartInk...tory/Views/UserControls
xaml
PackageView.xaml
TrainingView.xaml
3:11 (34%)
3:11 (13%)
view
9 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
206:221 (6%)
180:195 (7%)
view
8 x 2 WindowsSmartInk/SmartInkLaboratory
WindowsSmartInk/SmartInkLaboratory
xaml
App.xaml
App.xaml
148:157 (3%)
193:202 (3%)
view
8 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory/Views/Dialogs
xaml
MainPage.xaml
ManageProjectsDialog.xaml
105:114 (7%)
17:26 (27%)
view
8 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
167:177 (5%)
204:214 (6%)
view
8 x 2 WindowsSmartInk/SmartInk...tory/Views/UserControls
WindowsSmartInk/SmartInk...tory/Views/UserControls
xaml
IconMapper.xaml
TrainingView.xaml
3:10 (12%)
3:10 (11%)
view
8 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
27:41 (5%)
58:72 (6%)
view
8 x 2 WindowsSmartInk/SmartInk...tory/Views/UserControls
WindowsSmartInk/SmartInk...tory/Views/UserControls
xaml
IconMapper.xaml
PackageView.xaml
3:10 (12%)
3:10 (30%)
view
8 x 2 WindowsSmartInk/SmartInkLaboratory
WindowsSmartInk/SmartInkLaboratory
xaml
App.xaml
App.xaml
133:142 (3%)
179:188 (3%)
view
7 x 2 WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions
WindowsSmartInk/SmartInkLaboratory/Extensions
RectExtenstion.cs
RectExtensions.cs
31:39 (77%)
31:39 (77%)
view
7 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
68:77 (4%)
88:97 (5%)
view
7 x 2 WindowsSmartInk/EBC_InkDemo/Extensions
WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions
RectExtensions.cs
RectExtenstion.cs
31:39 (77%)
31:39 (77%)
view
7 x 2 WindowsSmartInk/SmartInkLaboratory/ViewModels
WindowsSmartInk/SmartInkLaboratory/ViewModels
IconMapViewModel.cs
NewPackageViewModel.cs
81:89 (7%)
87:95 (10%)
view
6 x 2 WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions
WindowsSmartInk/SmartInkLaboratory
InkStrokeCollectionExtensions.cs
MainPage.xaml.cs
45:51 (7%)
206:212 (4%)
view
6 x 2 WindowsSmartInk/SmartInkLaboratory/Views/Dialogs
WindowsSmartInk/SmartInkLaboratory/Views/Dialogs
xaml
ManageProjectsDialog.xaml
OpenPackageDialog.xaml
17:24 (20%)
23:30 (17%)
view
6 x 2 WindowsSmartInk/SmartInkLaboratory/Views/Dialogs
WindowsSmartInk/SmartInkLaboratory/Views/Dialogs
xaml
ManageProjectsDialog.xaml
ResourceListDialog.xaml
3:8 (20%)
3:8 (37%)
view
Duplicated Units
The list of top 4 duplicated units.
See data for all 4 unit duplicates...
Size#FoldersFilesLinesCode
20 x 2 WindowsSmartInk/EBC_InkDemo
WindowsSmartInk/SmartInkLaboratory
App.xaml.cs
App.xaml.cs
41:75 
40:74 
view
11 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
167:178 
204:215 
view
8 x 3 WindowsSmartInk/EBC_InkDemo/Extensions
WindowsSmartInk/Microsoft.MTC.SmartInk/Extensions
WindowsSmartInk/SmartInkLaboratory/Extensions
RectExtensions.cs
RectExtenstion.cs
RectExtensions.cs
31:40 
31:40 
31:40 
view
7 x 2 WindowsSmartInk/EBC_InkDemo/Views
WindowsSmartInk/SmartInkLaboratory
MainPage.xaml.cs
MainPage.xaml.cs
211:218 
184:191 
view