microsoft / AcademicContent
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
  • 17% duplication:
    • 9,666 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,679 duplicated lines
  • 62 duplicates
system17% (1,679 lines)
Duplication per Extension
js15% (1,064 lines)
ps138% (214 lines)
jsx75% (166 lines)
html21% (129 lines)
css10% (86 lines)
desktop100% (20 lines)
Duplication per Component (primary)
Educator Resources/Complimentary Course Content/Module248% (736 lines)
Events and Hacks/Azure University Tour/WebAppHOL30% (340 lines)
Events and Hacks/Tech Talks/ARM Templates58% (214 lines)
Events and Hacks/Tech Talks/ContainerDemo2% (125 lines)
Labs/Azure Services/Azure Blockchain Service18% (95 lines)
Events and Hacks/Tech Talks/busbot23% (79 lines)
Events and Hacks/Azure Machine Learning Challenge/Client16% (22 lines)
Labs/AI and Machine Learning/Video Indexer12% (22 lines)
Events and Hacks/Azure University Tour/MachineLearningHOL100% (20 lines)
Events and Hacks/Tech Talks/_layouts100% (13 lines)
_layouts100% (13 lines)
Educator Resources/Complimentary Course Content/Module70% (0 lines)
Educator Resources/Scripts/Bulk-Add-Users-PowerShell0% (0 lines)
Educator Resources/Scripts/Bulk-Sandbox-Deployment-Automation-Bash0% (0 lines)
Educator Resources/Scripts/Create-Assign-Resource-Groups-PowerShell0% (0 lines)
Educator Resources/Scripts/List-Azure-Subs-PowerShell0% (0 lines)
Events and Hacks/AI Hackathon/Code and Data0% (0 lines)
Labs/Azure Services/VM Scaling0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 62 duplicates...
Size#FoldersFilesLinesCode
107 x 2 Events and Hac...ent/CreateBaseResources
Events and Hac...ironment/CreateOOBImage
Build.ps1
CreateVM.ps1
13:145 (90%)
14:145 (89%)
view
83 x 2 Educator Resources/.../lesson7/lab/components
Educator Resources/.../lesson8/Lab/components
app.jsx
app.jsx
1:92 (100%)
1:92 (100%)
view
81 x 2 Educator Resources/...odule2/code/lesson7/lab
Educator Resources/...odule2/code/lesson8/Lab
app.js
app.js
1:107 (93%)
1:107 (93%)
view
51 x 2 Educator Resources/...odule2/code/lesson6/Lab
Educator Resources/...odule2/code/lesson8/Lab
app.js
app.js
23:89 (59%)
24:90 (58%)
view
51 x 2 Educator Resources/...odule2/code/lesson6/Lab
Educator Resources/...odule2/code/lesson7/lab
app.js
app.js
23:89 (59%)
24:90 (58%)
view
38 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
114:177 (15%)
73:136 (23%)
view
31 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
326:386 (12%)
169:229 (19%)
view
30 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
1:57 (12%)
1:57 (18%)
view
25 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
507:540 (10%)
313:346 (15%)
view
19 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
468:504 (7%)
274:310 (11%)
view
19 x 2 Labs/Azure Services...ervice/Resources/public
Labs/Azure Services...ervice/Resources/public
index.html
ratings.html
54:74 (16%)
107:127 (9%)
view
18 x 2 Educator Resources/...odule2/code/lesson6/Lab
Educator Resources/...odule2/code/lesson7/lab
app.js
app.js
92:120 (20%)
93:119 (20%)
view
18 x 2 Educator Resources/...odule2/code/lesson2/Lab
Educator Resources/...nt/Module2/code/lesson2
escape.js
escape.js
1:34 (100%)
1:34 (100%)
view
17 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
385:409 (5%)
307:331 (6%)
view
16 x 2 Educator Resources/...odule2/code/lesson6/Lab
Educator Resources/...odule2/code/lesson7/lab
app.js
app.js
1:22 (18%)
1:22 (18%)
view
16 x 2 Educator Resources/...odule2/code/lesson6/Lab
Educator Resources/...odule2/code/lesson8/Lab
app.js
app.js
1:22 (18%)
1:22 (18%)
view
14 x 2 Events and Hacks/Tech Talks/busbot
Events and Hacks/Tech Talks/busbot
app.js
app.js
160:178 (4%)
442:461 (4%)
view
14 x 2 Events and Hac...esult/views/stylesheets
Events and Hac...vote/static/stylesheets
style.css
style.css
99:112 (13%)
115:129 (12%)
view
13 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
80:97 (4%)
48:65 (5%)
view
13 x 2 Events and Hac...ech Talks/_layouts
_layouts
default.html
default.html
1:16 (100%)
1:16 (100%)
view
Duplicated Units
The list of top 14 duplicated units.
See data for all 14 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
80:93 
48:61 
view
11 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
343:354 
266:277 
view
11 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
326:337 
169:180 
view
9 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
34:45 
34:45 
view
15 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
114:129 
73:88 
view
8 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
45:53 
31:39 
view
8 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
400:413 
243:256 
view
8 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
468:477 
274:283 
view
7 x 2 Educator Resources/...odule2/code/lesson2/Lab
Educator Resources/...nt/Module2/code/lesson2
escape.js
escape.js
9:16 
9:16 
view
7 x 2 Educator Resources/...odule2/code/lesson2/Lab
Educator Resources/...nt/Module2/code/lesson2
escape.js
escape.js
25:32 
25:32 
view
7 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
387:394 
309:316 
view
7 x 2 Events and Hac... Tour/WebAppHOL/js
Events and Hac... Tour/WebAppHOL/js
index(completed).js
index.js
510:517 
316:323 
view
19 x 2 Educator Resources/...odule2/code/lesson2/Lab
Educator Resources/...nt/Module2/code/lesson2
escape.js
escape.js
1:34 
1:34 
view
9 x 2 Educator Resources/...e/lesson7/lab/public/js
Educator Resources/...e/lesson8/Lab/public/js
fetch.js
fetch.polyfill.js
156:165 
110:119 
view