aws-samples / aws-augmentability
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
  • 38% duplication:
    • 2,250 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 874 duplicated lines
  • 53 duplicates
system38% (874 lines)
Duplication per Extension
html75% (631 lines)
js20% (195 lines)
css10% (48 lines)
Duplication per Component (primary)
ROOT75% (631 lines)
lib20% (195 lines)
style10% (48 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 53 duplicates...
Size#FoldersFilesLinesCode
130 x 2 ROOT
ROOT
f-see-document.html
f-see-text.html
1:143 (92%)
1:143 (92%)
view
37 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-see-document.html
94:130 (22%)
73:109 (26%)
view
37 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-see-text.html
94:130 (22%)
73:109 (26%)
view
35 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-see-text.html
58:92 (20%)
37:71 (24%)
view
35 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-see-document.html
58:92 (20%)
37:71 (24%)
view
24 x 2 lib
lib
main.js
main.js
806:832 (3%)
867:893 (3%)
view
24 x 2 style
style
styles.css
webcam-demo.css
130:156 (17%)
323:349 (7%)
view
19 x 2 ROOT
ROOT
f-see-document-nav.html
f-see-text-nav.html
1:25 (45%)
1:25 (45%)
view
17 x 2 ROOT
ROOT
f-see-document.html
f-see-objects.html
119:143 (12%)
30:54 (31%)
view
17 x 2 ROOT
ROOT
f-see-objects.html
f-see-text.html
30:54 (31%)
119:143 (12%)
view
16 x 2 lib
lib
main.js
main.js
338:359 (2%)
383:404 (2%)
view
16 x 2 ROOT
ROOT
f-see-objects.html
f-see-text.html
10:27 (29%)
11:28 (11%)
view
16 x 2 ROOT
ROOT
f-see-document.html
f-see-objects.html
11:28 (11%)
10:27 (29%)
view
14 x 2 ROOT
ROOT
f-conversation.html
f-hear-speak-translate.html
70:84 (15%)
33:47 (8%)
view
14 x 2 ROOT
ROOT
f-conversation.html
f-see-document-nav.html
6:25 (15%)
6:25 (33%)
view
14 x 2 ROOT
ROOT
f-conversation.html
f-hear-speak.html
35:49 (15%)
32:46 (18%)
view
14 x 2 ROOT
ROOT
f-conversation.html
f-see-text-nav.html
6:25 (15%)
6:25 (33%)
view
13 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-hear-speak.html
6:23 (7%)
6:23 (17%)
view
12 x 2 lib
lib
main.js
main.js
132:144 (1%)
152:164 (1%)
view
12 x 2 ROOT
ROOT
f-hear-speak-translate.html
f-hear-speak.html
206:223 (7%)
97:114 (16%)
view