aws-samples / aws-lex-web-ui
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
  • 26% duplication:
    • 10,109 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 2,653 duplicated lines
  • 440 duplicates
system26% (2,653 lines)
Duplication per Extension
yaml64% (1,977 lines)
vue11% (255 lines)
html46% (218 lines)
js3% (105 lines)
py9% (86 lines)
css13% (12 lines)
Duplication per Component (primary)
templates64% (1,977 lines)
lex-web-ui/src7% (360 lines)
src/website47% (218 lines)
templates/custom-resources9% (86 lines)
src/lex-web-ui-loader4% (12 lines)
ROOT0% (0 lines)
build0% (0 lines)
config0% (0 lines)
config/utils0% (0 lines)
src/initiate-chat-lambda0% (0 lines)
lex-web-ui0% (0 lines)
lex-web-ui/public0% (0 lines)
lex-web-ui/current0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 440 duplicates...
Size#FoldersFilesLinesCode
88 x 2 templates
templates
master-pipeline.yaml
master.yaml
18:112 (19%)
14:108 (20%)
view
61 x 2 templates
templates
master-pipeline.yaml
pipeline.yaml
114:184 (13%)
199:269 (12%)
view
55 x 2 templates
templates
master-pipeline.yaml
master.yaml
218:277 (12%)
158:217 (12%)
view
44 x 2 src/website
src/website
iframeparent.html
parent.html
156:201 (26%)
241:288 (18%)
view
40 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
519:558 (7%)
461:500 (8%)
view
34 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
454:487 (5%)
373:406 (6%)
view
32 x 2 src/website
src/website
iframeparent.html
parent.html
110:141 (19%)
198:233 (13%)
view
31 x 2 templates
templates
codebuild-deploy.yaml
master.yaml
85:117 (5%)
231:263 (7%)
view
31 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
196:229 (5%)
74:107 (6%)
view
30 x 2 templates
templates
codebuild-deploy.yaml
master.yaml
279:312 (5%)
294:327 (6%)
view
25 x 2 templates
templates
cognitouserpoolconfig.yaml
lexbot.yaml
316:340 (6%)
63:87 (17%)
view
25 x 2 templates
templates
cognitouserpoolconfig.yaml
lexbot.yaml
146:170 (6%)
63:87 (17%)
view
25 x 2 templates
templates
cognitouserpoolconfig.yaml
cognitouserpoolconfig.yaml
146:170 (6%)
316:340 (6%)
view
24 x 2 templates
templates
cognito.yaml
cognito.yaml
191:214 (9%)
243:266 (9%)
view
23 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
169:194 (4%)
238:263 (4%)
view
23 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
410:434 (4%)
316:340 (4%)
view
23 x 2 templates
templates
codebuild-deploy.yaml
master-pipeline.yaml
169:194 (4%)
153:178 (5%)
view
23 x 2 templates
templates
codebuild-deploy.yaml
pipeline.yaml
240:263 (4%)
117:140 (4%)
view
22 x 2 templates
templates
codebuild-deploy.yaml
coderepo.yaml
196:219 (3%)
79:102 (14%)
view
22 x 2 templates
templates
coderepo.yaml
pipeline.yaml
79:102 (14%)
74:97 (4%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 lex-web-ui/src/store
lex-web-ui/src/store
mutations.js
mutations.js
453:459 
463:469 
view
6 x 2 lex-web-ui/src/store
lex-web-ui/src/store
actions.js
actions.js
1043:1049 
1050:1056 
view