aws-samples / amazon-textract-comprehend-a2i
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
  • 59% duplication:
    • 1,951 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,154 duplicated lines
  • 138 duplicates
system59% (1,154 lines)
Duplication per Extension
yaml73% (1,102 lines)
html100% (52 lines)
Duplication per Component (primary)
source73% (551 lines)
ml-summit-2021/code73% (551 lines)
ui100% (26 lines)
ml-summit-2021/ui100% (26 lines)
source/lambda_handlers0% (0 lines)

Duplication Between Components (50+ lines)

G ml-summit-2021/code ml-summit-2021/code source source ml-summit-2021/code--source 999 ml-summit-2021/ui ml-summit-2021/ui ui ui ml-summit-2021/ui--ui 52

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 138 duplicates...
Size#FoldersFilesLinesCode
67 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
477:543 (8%)
612:678 (8%)
view
64 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
517:580 (8%)
637:700 (8%)
view
41 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
382:422 (5%)
612:652 (5%)
view
41 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
434:474 (5%)
517:557 (5%)
view
41 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
382:422 (5%)
477:517 (5%)
view
41 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
434:474 (5%)
637:677 (5%)
view
39 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
72:112 (5%)
74:114 (5%)
view
36 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
771:809 (4%)
771:809 (4%)
view
33 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
674:707 (4%)
696:729 (4%)
view
32 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
88:119 (4%)
517:548 (4%)
view
32 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
86:117 (4%)
477:508 (4%)
view
32 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
88:119 (4%)
434:465 (4%)
view
32 x 2 source
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
88:119 (4%)
637:668 (4%)
view
32 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
86:117 (4%)
382:413 (4%)
view
32 x 2 ml-summit-2021/code
ml-summit-2021/code
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
86:117 (4%)
612:643 (4%)
view
32 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
281:312 (4%)
360:391 (4%)
view
29 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
539:568 (3%)
576:605 (3%)
view
28 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
611:638 (3%)
636:663 (3%)
view
28 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
476:503 (3%)
516:543 (3%)
view
28 x 2 ml-summit-2021/code
source
Textract-Comprehend-A2I.yaml
Textract-Comprehend-A2I.yaml
381:408 (3%)
433:460 (3%)
view