aws-samples / amazon-redshift-ml-getting-started
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
  • 13% duplication:
    • 1,526 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 200 duplicated lines
  • 18 duplicates
system13% (200 lines)
Duplication per Extension
yaml13% (200 lines)
Duplication per Component (primary)
workshop10% (108 lines)
cloud-formation22% (92 lines)
workshop/raw files0% (0 lines)

Duplication Between Components (50+ lines)

G cloud-formation cloud-formation workshop workshop cloud-formation--workshop 127

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 18 longest duplicates.
See data for all 18 duplicates...
Size#FoldersFilesLinesCode
14 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
90:103 (3%)
536:549 (1%)
view
10 x 2 cloud-formation
cloud-formation
cloud-formation-template.yaml
cloud-formation-template.yaml
119:128 (2%)
254:263 (2%)
view
10 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
308:317 (2%)
678:687 (<1%)
view
9 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
116:124 (2%)
285:293 (<1%)
view
9 x 2 cloud-formation
cloud-formation
cloud-formation-template.yaml
cloud-formation-template.yaml
91:99 (2%)
220:228 (2%)
view
9 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
74:83 (2%)
383:392 (<1%)
view
9 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
129:137 (2%)
294:302 (<1%)
view
9 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
220:228 (2%)
537:545 (<1%)
view
8 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
251:259 (1%)
354:361 (<1%)
view
8 x 2 cloud-formation
cloud-formation
cloud-formation-template.yaml
cloud-formation-template.yaml
152:159 (1%)
283:290 (1%)
view
7 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
586:592 (<1%)
824:830 (<1%)
view
7 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
586:592 (<1%)
599:605 (<1%)
view
7 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
244:250 (<1%)
278:284 (<1%)
view
7 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
205:211 (<1%)
415:421 (<1%)
view
7 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
599:605 (<1%)
824:830 (<1%)
view
6 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
119:124 (1%)
356:361 (<1%)
view
6 x 2 cloud-formation
workshop
cloud-formation-template.yaml
redshift-ml-workshop.yaml
254:259 (1%)
288:293 (<1%)
view
6 x 2 workshop
workshop
redshift-ml-workshop.yaml
redshift-ml-workshop.yaml
288:293 (<1%)
356:361 (<1%)
view