aws-samples / amazon-sagemaker-r-kernel-access-data-sources
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
  • 22% duplication:
    • 1,210 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 271 duplicated lines
  • 20 duplicates
system22% (271 lines)
Duplication per Extension
yaml22% (271 lines)
Duplication per Component (primary)
cfn-templates22% (271 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 20 duplicates...
Size#FoldersFilesLinesCode
15 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
826:840 (1%)
903:917 (1%)
view
14 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
841:854 (1%)
922:935 (1%)
view
10 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
515:524 (<1%)
1083:1092 (<1%)
view
9 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
749:757 (<1%)
870:878 (<1%)
view
8 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
336:343 (<1%)
530:537 (<1%)
view
8 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
316:323 (<1%)
514:521 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
659:665 (<1%)
695:701 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
349:364 (<1%)
388:403 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
596:602 (<1%)
632:638 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
650:656 (<1%)
686:692 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
317:323 (<1%)
1083:1089 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
713:719 (<1%)
722:728 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
578:584 (<1%)
614:620 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
641:647 (<1%)
677:683 (<1%)
view
7 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
587:593 (<1%)
623:629 (<1%)
view
6 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
257:262 (<1%)
266:271 (<1%)
view
6 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
275:280 (<1%)
284:289 (<1%)
view
6 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
749:754 (<1%)
1081:1086 (<1%)
view
6 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
293:298 (<1%)
302:307 (<1%)
view
6 x 2 cfn-templates
cfn-templates
cft.yaml
cft.yaml
870:875 (<1%)
1081:1086 (<1%)
view