aws-samples / voice-enabled-patient-diary
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
  • 3% duplication:
    • 1,313 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 48 duplicated lines
  • 8 duplicates
system3% (48 lines)
Duplication per Extension
py4% (48 lines)
Duplication per Component (primary)
lambda/src/common14% (24 lines)
lambda/src2% (12 lines)
lambda/src/data_access3% (12 lines)
lib0% (0 lines)
lib/defaults0% (0 lines)
ROOT0% (0 lines)
lambda0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
6 x 2 lambda/src/data_access
lambda/src/data_access
ddb_util.py
ddb_util.py
64:69 (4%)
86:91 (4%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
40:45 (5%)
53:58 (5%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
40:45 (5%)
84:89 (5%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
40:45 (5%)
68:73 (5%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
53:58 (5%)
68:73 (5%)
view
6 x 2 lambda/src
lambda/src
initiate_outbound_call.py
notify_provider.py
40:46 (20%)
40:46 (26%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
53:58 (5%)
84:89 (5%)
view
6 x 2 lambda/src/common
lambda/src/common
lex_helper.py
lex_helper.py
68:73 (5%)
84:89 (5%)
view