aws-samples / bring-your-own-data-labs
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
  • 82% duplication:
    • 8,551 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 7,020 duplicated lines
  • 292 duplicates
system82% (7,020 lines)
Duplication per Extension
css100% (6,860 lines)
html17% (114 lines)
py32% (46 lines)
Duplication per Component (primary)
workshop/themes/learn83% (3,482 lines)
workshop/Server/css100% (2,568 lines)
workshop/Server/mermaid100% (862 lines)
workshop25% (46 lines)
workshop/Server/en81% (31 lines)
workshop/Server/fr81% (31 lines)
workshop/Server/js0% (0 lines)
workshop/Server0% (0 lines)
workshop/layouts/_default0% (0 lines)
workshop/layouts/partials0% (0 lines)
workshop/layouts/shortcodes0% (0 lines)

Duplication Between Components (50+ lines)

G workshop/Server/css workshop/Server/css workshop/themes/learn workshop/themes/learn workshop/Server/css--workshop/themes/learn 5136 workshop/Server/mermaid workshop/Server/mermaid workshop/Server/mermaid--workshop/themes/learn 1724 workshop/Server/en workshop/Server/en workshop/Server/fr workshop/Server/fr workshop/Server/en--workshop/Server/fr 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 292 duplicates...
Size#FoldersFilesLinesCode
1104 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme.css
theme.css
1:1132 (100%)
1:1132 (100%)
view
522 x 2 workshop/Server/css
workshop/themes/learn/static/css
nucleus.css
nucleus.css
1:615 (100%)
1:615 (100%)
view
340 x 2 workshop/Server/mermaid
workshop/themes/learn/static/mermaid
mermaid.forest.css
mermaid.forest.css
4:356 (100%)
4:356 (100%)
view
262 x 2 workshop/Server/mermaid
workshop/themes/learn/static/mermaid
mermaid.dark.css
mermaid.dark.css
4:278 (100%)
4:278 (100%)
view
260 x 2 workshop/Server/mermaid
workshop/themes/learn/static/mermaid
mermaid.css
mermaid.css
4:276 (100%)
4:276 (100%)
view
236 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-aws.css
theme-aws.css
2:281 (100%)
2:281 (100%)
view
212 x 2 workshop/Server/css
workshop/themes/learn/static/css
hugo-theme.css
hugo-theme.css
6:254 (100%)
6:254 (100%)
view
90 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-red.css
theme-red.css
2:111 (100%)
2:111 (100%)
view
90 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-green.css
theme-green.css
2:111 (100%)
2:111 (100%)
view
90 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-blue.css
theme-blue.css
2:111 (100%)
2:111 (100%)
view
72 x 2 workshop/Server/css
workshop/themes/learn/static/css
hybrid.css
hybrid.css
8:102 (100%)
8:102 (100%)
view
71 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-red.css
theme-blue.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/themes/learn/static/css
workshop/themes/learn/static/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/Server/css
theme-green.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-green.css
theme-blue.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/Server/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/Server/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-blue.css
theme-red.css
27:111 (78%)
27:111 (78%)
view
71 x 2 workshop/Server/css
workshop/themes/learn/static/css
theme-blue.css
theme-green.css
27:111 (78%)
27:111 (78%)
view