microsoft / HashCalculator
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
  • 37% duplication:
    • 1,925 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 731 duplicated lines
  • 74 duplicates
system37% (731 lines)
Duplication per Extension
xaml64% (593 lines)
cs13% (138 lines)
Duplication per Component (primary)
HashCalculator44% (376 lines)
HashCalculator/Views49% (355 lines)
HashCalculator/Controls0% (0 lines)
HashCalculator/Properties0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 74 duplicates...
Size#FoldersFilesLinesCode
125 x 2 HashCalculator
HashCalculator
xaml
App.xaml
AppShell.xaml
129:285 (58%)
36:192 (36%)
view
60 x 2 HashCalculator
HashCalculator
xaml
App.xaml
AppShell.xaml
33:110 (28%)
199:276 (17%)
view
28 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHMACHash.xaml
PermutateHash.xaml
3:42 (45%)
3:42 (43%)
view
28 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHash.xaml
PermutateHash.xaml
3:42 (46%)
3:42 (43%)
view
28 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHMACHash.xaml
CalculateHash.xaml
3:42 (45%)
3:42 (46%)
view
21 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHMACHash.xaml
Settings.xaml
10:42 (33%)
9:41 (46%)
view
21 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHash.xaml
Settings.xaml
10:42 (35%)
9:41 (46%)
view
21 x 2 HashCalculator/Views
HashCalculator/Views
xaml
PermutateHash.xaml
Settings.xaml
10:42 (32%)
9:41 (46%)
view
14 x 2 HashCalculator/Views
HashCalculator/Views
CalculateHMACHash.xaml.cs
CalculateHash.xaml.cs
85:125 (22%)
79:119 (23%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHash.xaml
TpmPcrs.xaml
21:42 (20%)
21:42 (21%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
CalculateHMACHash.xaml.cs
CalculateHash.xaml.cs
127:162 (19%)
120:155 (20%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
CalculateHMACHash.xaml.cs
CalculateHash.xaml.cs
43:77 (19%)
42:76 (20%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
Settings.xaml
TpmPcrs.xaml
20:41 (26%)
21:42 (21%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHMACHash.xaml
CalculateHash.xaml
55:69 (19%)
54:68 (20%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
PermutateHash.xaml
TpmPcrs.xaml
21:42 (18%)
21:42 (21%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
CalculateHMACHash.xaml
TpmPcrs.xaml
21:42 (19%)
21:42 (21%)
view
12 x 2 HashCalculator/Views
HashCalculator/Views
xaml
PermutateHash.xaml
TpmPcrs.xaml
47:58 (18%)
47:58 (21%)
view
10 x 2 HashCalculator
HashCalculator
xaml
App.xaml
App.xaml
173:182 (4%)
195:204 (4%)
view
10 x 2 HashCalculator
HashCalculator
xaml
App.xaml
AppShell.xaml
217:226 (4%)
102:111 (2%)
view
10 x 2 HashCalculator/Views
HashCalculator/Views
PermutateHash.xaml.cs
TpmPcrs.xaml.cs
31:45 (7%)
30:44 (12%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 HashCalculator/Views
HashCalculator/Views
CalculateHMACHash.xaml.cs
CalculateHash.xaml.cs
50:58 
49:57 
view
6 x 2 HashCalculator/Views
HashCalculator/Views
CalculateHMACHash.xaml.cs
CalculateHash.xaml.cs
26:32 
25:31 
view