microsoft / PowerBI-Developer-Samples
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
  • 29% duplication:
    • 4,389 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,310 duplicated lines
  • 92 duplicates
system29% (1,310 lines)
Duplication per Extension
ps123% (248 lines)
css80% (234 lines)
jsp32% (228 lines)
html70% (177 lines)
py20% (170 lines)
java20% (162 lines)
js26% (84 lines)
tsx3% (7 lines)
Duplication per Component (primary)
Java/EncryptCredentials/src/main26% (299 lines)
PowerShell Scripts23% (248 lines)
Java/Embed for your customers/AppOwnsData/src43% (192 lines)
Python/Encrypt credentials/Encryption sample/templates86% (139 lines)
NodeJS/Embed for your customers/AppOwnsData/src33% (84 lines)
Python/Encrypt credentials/Encryption sample/static92% (70 lines)
Python/Encrypt credentials/Encryption sample31% (59 lines)
Python/Embed for your customers/AppOwnsData/services36% (53 lines)
Python/Embed for your customers/AppOwnsData/static100% (32 lines)
NodeJS/Embed for your customers/AppOwnsData/public37% (31 lines)
Python/Encrypt credentials/Encryption sample/helper16% (25 lines)
Python/Encrypt credentials/Encryption sample/services9% (20 lines)
NodeJS/Embed for your customers/AppOwnsData/views50% (19 lines)
Python/Embed for your customers/AppOwnsData/templates47% (19 lines)
Python/Embed for your customers/AppOwnsData20% (13 lines)
React-TS/Embed for your organization/UserOwnsData/src3% (7 lines)
NodeJS/Embed for your customers/AppOwnsData/models0% (0 lines)
Python/Embed for your customers/AppOwnsData/models0% (0 lines)
Python/Encrypt credentials/Encryption sample/models0% (0 lines)
React-TS/Embed for your organization/UserOwnsData/public0% (0 lines)

Duplication Between Components (50+ lines)

G Java/EncryptCredentials/src/main Java/EncryptCredentials/src/main Python/Encrypt credentials/Encryption sample/templates Python/Encrypt credentials/Encryption sample/templates Java/EncryptCredentials/src/main--Python/Encrypt credentials/Encryption sample/templates 266 Python/Encrypt credentials/Encryption sample/static Python/Encrypt credentials/Encryption sample/static Java/EncryptCredentials/src/main--Python/Encrypt credentials/Encryption sample/static 140 Java/Embed for your customers/AppOwnsData/src Java/Embed for your customers/AppOwnsData/src Java/Embed for your customers/AppOwnsData/src--Java/EncryptCredentials/src/main 78 NodeJS/Embed for your customers/AppOwnsData/public NodeJS/Embed for your customers/AppOwnsData/public Python/Embed for your customers/AppOwnsData/static Python/Embed for your customers/AppOwnsData/static NodeJS/Embed for your customers/AppOwnsData/public--Python/Embed for your customers/AppOwnsData/static 62

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 92 duplicates...
Size#FoldersFilesLinesCode
41 x 2 Java/EncryptCredentials/...in/webapp/resources/css
Python/Encrypt cred... sample/static/css
style.css
index.css
4:54 (53%)
4:54 (53%)
view
38 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
152:202 (6%)
152:205 (23%)
view
29 x 2 Java/EncryptCredentials/...in/webapp/resources/css
Python/Encrypt cred... sample/static/css
style.css
index.css
63:98 (38%)
63:98 (38%)
view
24 x 2 Java/Embed for ...le/appownsdata/services
Java/Embed for ...le/appownsdata/services
PowerBIService.java
PowerBIService.java
162:209 (13%)
251:298 (13%)
view
21 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
22:45 (3%)
18:41 (13%)
view
19 x 2 NodeJS/Embed for&nb.../AppOwnsData/public/css
Python/Embed for&nb.../AppOwnsData/static/css
index.css
index.css
4:26 (59%)
6:28 (59%)
view
18 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
61:82 (2%)
58:79 (11%)
view
18 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Home.jsp
Home.jsp
419:437 (2%)
464:482 (2%)
view
17 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
106:128 (2%)
104:127 (10%)
view
16 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
132:150 (2%)
132:150 (10%)
view
16 x 2 Java/Embed for ...in/webapp/resources/css
Python/Embed for&nb.../AppOwnsData/static/css
style.css
index.css
23:42 (50%)
25:44 (50%)
view
16 x 2 NodeJS/Embed for&nb...stomers/AppOwnsData/src
NodeJS/Embed for&nb...stomers/AppOwnsData/src
embedConfigService.js
embedConfigService.js
160:183 (10%)
208:231 (10%)
view
15 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Python/Encrypt cred...n sample/templates
Home.jsp
index.html
85:104 (2%)
83:102 (9%)
view
15 x 2 Java/Embed for ...le/appownsdata/services
Java/Embed for ...le/appownsdata/services
PowerBIService.java
PowerBIService.java
363:395 (8%)
445:477 (8%)
view
14 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Home.jsp
Home.jsp
468:482 (2%)
519:533 (2%)
view
14 x 2 PowerShell Scripts
PowerShell Scripts
DeploymentPipelines-DeployAll.ps1
DeploymentPipelines-SelectiveDeploy.ps1
45:61 (30%)
80:96 (19%)
view
14 x 2 Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Java/EncryptCredentials/...in/webapp/WEB-INF/pages
Home.jsp
Home.jsp
423:437 (2%)
519:533 (2%)
view
13 x 2 NodeJS/Embed for&nb...stomers/AppOwnsData/src
NodeJS/Embed for&nb...stomers/AppOwnsData/src
embedConfigService.js
embedConfigService.js
214:231 (8%)
265:283 (8%)
view
13 x 2 Java/Embed for ...le/appownsdata/services
Java/Embed for ...le/appownsdata/services
PowerBIService.java
PowerBIService.java
64:85 (7%)
165:186 (7%)
view
13 x 2 NodeJS/Embed for&nb...stomers/AppOwnsData/src
NodeJS/Embed for&nb...stomers/AppOwnsData/src
embedConfigService.js
embedConfigService.js
166:183 (8%)
265:283 (8%)
view