aws-samples / healthlake-samples
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
  • 52% duplication:
    • 156 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 82 duplicated lines
  • 11 duplicates
system52% (82 lines)
Duplication per Extension
py64% (82 lines)
Duplication per Component (primary)
hl-CRUD-operations/python82% (82 lines)
hl-MGMT-operations/java/src/main/java/com/example/healthlake0% (0 lines)
hl-BATCH-operations/python0% (0 lines)
Longest Duplicates
The list of 11 longest duplicates.
See data for all 11 duplicates...
Size#FoldersFilesLinesCode
19 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_delete.py
hl_boto_get.py
20:46 (90%)
19:45 (90%)
view
14 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_post.py
hl_boto_put.py
34:57 (48%)
34:57 (48%)
view
9 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_delete.py
hl_boto_put.py
20:28 (42%)
21:29 (31%)
view
9 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_get.py
hl_boto_put.py
19:27 (42%)
21:29 (31%)
view
7 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_get.py
hl_boto_post.py
19:25 (33%)
21:27 (24%)
view
7 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_delete.py
hl_boto_post.py
20:26 (33%)
21:27 (24%)
view
7 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_post.py
hl_boto_put.py
21:27 (24%)
21:27 (24%)
view
6 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_get.py
hl_boto_post.py
27:35 (28%)
34:42 (20%)
view
6 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_delete.py
hl_boto_post.py
28:36 (28%)
34:42 (20%)
view
6 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_delete.py
hl_boto_put.py
28:36 (28%)
34:42 (20%)
view
6 x 2 hl-CRUD-operations/python
hl-CRUD-operations/python
hl_boto_get.py
hl_boto_put.py
27:35 (28%)
34:42 (20%)
view