aws-samples / aws-iot-edukit-tutorials
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
  • 16% duplication:
    • 8,281 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,350 duplicated lines
  • 99 duplicates
system16% (1,350 lines)
Duplication per Extension
css22% (1,238 lines)
js3% (72 lines)
html7% (40 lines)
Duplication per Component (primary)
workshop/themes/learn/static/css23% (604 lines)
workshop/themes/learn/static/mermaid62% (537 lines)
workshop/static/en/api-reference5% (97 lines)
workshop/static/en/api-reference/search3% (72 lines)
workshop/themes/learn/layouts/shortcodes15% (28 lines)
workshop/themes/learn/layouts/partials2% (6 lines)
workshop/themes/learn/layouts13% (6 lines)
workshop0% (0 lines)
workshop/layouts/_default/_markup0% (0 lines)
workshop/themes/learn0% (0 lines)
workshop/themes/learn/layouts/_default0% (0 lines)
workshop/themes/learn/i18n0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 99 duplicates...
Size#FoldersFilesLinesCode
82 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-blue.css
theme-red.css
30:128 (79%)
30:128 (79%)
view
82 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-green.css
theme-red.css
30:128 (79%)
30:128 (79%)
view
82 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-blue.css
theme-green.css
30:128 (79%)
30:128 (79%)
view
63 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
101:168 (24%)
103:170 (18%)
view
34 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
187:222 (13%)
189:224 (10%)
view
34 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
hugo-theme.css
theme-aws.css
83:121 (16%)
229:267 (14%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-blue.css
114:148 (13%)
59:93 (32%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-red.css
114:148 (13%)
59:93 (32%)
view
33 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-green.css
114:148 (13%)
59:93 (32%)
view
31 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
33:63 (11%)
35:65 (9%)
view
29 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
224:252 (11%)
226:254 (8%)
view
21 x 2 workshop/static/en/api-reference/search
workshop/static/en/api-reference/search
all_3.js
enumvalues_1.js
1:21 (35%)
1:21 (91%)
view
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
252:270 (5%)
336:350 (4%)
view
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.dark.css
mermaid.forest.css
254:272 (5%)
336:350 (4%)
view
15 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.dark.css
252:270 (5%)
254:272 (5%)
view
14 x 2 workshop/themes/learn/layouts/shortcodes
workshop/themes/learn/layouts/shortcodes
ref.html
relref.html
1:14 (100%)
1:14 (100%)
view
13 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-green.css
68:84 (5%)
43:59 (12%)
view
13 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.dark.css
mermaid.forest.css
83:96 (4%)
85:98 (3%)
view
13 x 2 workshop/themes/learn/static/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.forest.css
171:184 (5%)
173:186 (3%)
view
13 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-aws.css
theme-blue.css
68:84 (5%)
43:59 (12%)
view