microsoft / MTC_ComeSayHi
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,262 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 72 duplicated lines
  • 18 duplicates
system5% (72 lines)
Duplication per Extension
cs3% (38 lines)
xaml12% (34 lines)
Duplication per Component (primary)
src/CognitiveKioskUWP4% (38 lines)
src/CognitiveKioskUWP/Controls10% (34 lines)
ROOT0% (0 lines)
src/CognitiveKioskUWP/Properties0% (0 lines)
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
144:158 (4%)
170:183 (4%)
view
8 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Speech.xaml
Tags.xaml
3:10 (28%)
3:10 (44%)
view
7 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
115:125 (3%)
144:154 (3%)
view
7 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
147:156 (3%)
292:301 (3%)
view
7 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
115:125 (3%)
170:180 (3%)
view
7 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
173:182 (3%)
292:301 (3%)
view
6 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
86:93 (3%)
118:125 (3%)
view
6 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
86:93 (3%)
173:180 (3%)
view
6 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
118:125 (3%)
292:299 (3%)
view
6 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
86:93 (3%)
292:299 (3%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
ObjectBox.xaml
Speech.xaml
3:8 (40%)
3:8 (21%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Faces.xaml
Tags.xaml
6:11 (22%)
5:10 (33%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Captions.xaml
ObjectBox.xaml
3:8 (33%)
3:8 (40%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Captions.xaml
Tags.xaml
3:8 (33%)
3:8 (33%)
view
6 x 2 src/CognitiveKioskUWP
src/CognitiveKioskUWP
SettingsPage.xaml.cs
SettingsPage.xaml.cs
86:93 (3%)
147:154 (3%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Captions.xaml
Speech.xaml
3:8 (33%)
3:8 (21%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
ObjectBox.xaml
Tags.xaml
3:8 (40%)
3:8 (33%)
view
6 x 2 src/CognitiveKioskUWP/Controls
src/CognitiveKioskUWP/Controls
xaml
Faces.xaml
Speech.xaml
6:11 (22%)
5:10 (21%)
view