aws-samples / aws-lex-net-chatbot
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
  • 4% duplication:
    • 10,940 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 473 duplicated lines
  • 34 duplicates
system4% (473 lines)
Duplication per Extension
less4% (216 lines)
cshtml44% (145 lines)
css2% (70 lines)
yml23% (30 lines)
js<1% (12 lines)
Duplication per Component (primary)
Code/dotnetLexChatBot/wwwroot2% (298 lines)
Code/dotnetLexChatBot/Views44% (145 lines)
Linux Deployment35% (15 lines)
Windows Deployment45% (15 lines)
CloudFormation Template0% (0 lines)
Code/dotnetLexChatBot/Extensions0% (0 lines)
Code/dotnetLexChatBot0% (0 lines)
Code/dotnetLexChatBot/Controllers0% (0 lines)
Code/dotnetLexChatBot/Models0% (0 lines)
Code/dotnetLexChatBot/Data0% (0 lines)
Windows Deployment/scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 34 duplicates...
Size#FoldersFilesLinesCode
50 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
TestChat.cshtml
14:71 (52%)
20:77 (34%)
view
29 x 2 Code/dotnetLexChatBot/wwwroot/css/chatbot
Code/dotnetLexChatBot/wwwroot/css/chatbot
landing-page.css
landing-page.css
792:820 (1%)
1300:1329 (1%)
view
25 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
navbar.less
navbar.less
547:572 (5%)
611:635 (5%)
view
25 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
navbar.less
navbar.less
413:438 (5%)
471:495 (5%)
view
15 x 2 Linux Deployment
Windows Deployment
buildspec.yml
buildspec.yml
1:15 (100%)
1:15 (100%)
view
15 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
panels.less
tables.less
176:190 (7%)
201:217 (9%)
view
12 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
TestChat.cshtml
96:107 (12%)
117:128 (8%)
view
11 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
TestChat.cshtml
71:82 (11%)
82:93 (7%)
view
7 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
TestChat.cshtml
TestChat.cshtml
68:74 (4%)
85:91 (4%)
view
7 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
TestChat.cshtml
62:68 (7%)
85:91 (4%)
view
7 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
badges.less
labels.less
22:30 (14%)
28:36 (15%)
view
7 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
TestChat.cshtml
74:80 (7%)
68:74 (4%)
view
7 x 2 Code/dotnetLexChatBot/Views/HelloChatBot
Code/dotnetLexChatBot/Views/HelloChatBot
cshtml
Index.cshtml
Index.cshtml
62:68 (7%)
74:80 (7%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
navbar.less
navbar.less
493:504 (1%)
633:639 (1%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
navbar.less
navbar.less
428:433 (1%)
562:567 (1%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
tables.less
tables.less
90:95 (3%)
187:192 (3%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/js
tooltip.js
tooltip.js
111:119 (1%)
148:156 (1%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
navbar.less
navbar.less
485:490 (1%)
625:630 (1%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
tables.less
tables.less
71:76 (3%)
187:192 (3%)
view
6 x 2 Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
Code/dotnetLexChatBot/wwwroot/lib/bootstrap/less
tables.less
tables.less
27:32 (3%)
90:95 (3%)
view