aws-samples / audio-to-notes-demo-ai
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
  • 23% duplication:
    • 504 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 116 duplicated lines
  • 5 duplicates
system23% (116 lines)
Duplication per Extension
html85% (80 lines)
yaml11% (36 lines)
Duplication per Component (primary)
web_app/templates85% (80 lines)
cloudformation11% (36 lines)
web_app0% (0 lines)
lambda_textract0% (0 lines)
lambda_polly0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
27 x 2 web_app/templates
web_app/templates
audio_files.html
upload_file.html
1:40 (71%)
1:40 (90%)
view
26 x 2 web_app/templates
web_app/templates
index.html
upload_file.html
1:35 (100%)
1:35 (86%)
view
26 x 2 web_app/templates
web_app/templates
audio_files.html
index.html
1:35 (68%)
1:35 (100%)
view
9 x 2 cloudformation
cloudformation
audionotesstack.yaml
audionotesstack.yaml
25:33 (7%)
89:97 (7%)
view
9 x 2 cloudformation
cloudformation
ecsstack.yaml
ecsstack.yaml
40:48 (4%)
67:75 (4%)
view