aws-samples / amazon-transcribe-comprehend-podcast
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
  • 13% duplication:
    • 1,600 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 211 duplicated lines
  • 27 duplicates
system13% (211 lines)
Duplication per Extension
yaml19% (124 lines)
py8% (87 lines)
Duplication per Component (primary)
ROOT19% (124 lines)
src9% (87 lines)
cfn-custom-resource/es-cognito0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
31 x 2 src
src
elasticsearch_createindex.py
upload_to_elasticsearch.py
13:56 (42%)
14:57 (32%)
view
12 x 2 ROOT
ROOT
template.yaml
template.yaml
522:533 (1%)
535:546 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
68:75 (1%)
104:111 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
417:424 (1%)
432:439 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
117:124 (1%)
143:150 (1%)
view
7 x 2 src
src
process_transcription_full_text.py
upload_to_elasticsearch.py
18:25 (3%)
14:22 (7%)
view
7 x 2 src
src
elasticsearch_createindex.py
process_transcription_full_text.py
13:21 (9%)
18:25 (3%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
522:528 (1%)
571:577 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
171:177 (1%)
522:528 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
171:177 (1%)
571:577 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
535:541 (1%)
571:577 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
171:177 (1%)
535:541 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
181:187 (1%)
589:595 (1%)
view
6 x 2 src
src
podcast_transcribe.py
upload_to_elasticsearch.py
12:17 (8%)
14:19 (6%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
82:87 (<1%)
94:99 (<1%)
view
6 x 2 src
src
download_podcast.py
process_transcription_full_text.py
10:15 (13%)
18:23 (2%)
view
6 x 2 src
src
podcast_transcribe.py
process_podcast_rss.py
12:17 (8%)
15:20 (6%)
view
6 x 2 src
src
download_podcast.py
elasticsearch_createindex.py
10:15 (13%)
13:18 (8%)
view
6 x 2 src
src
elasticsearch_createindex.py
podcast_transcribe.py
13:18 (8%)
12:17 (8%)
view
6 x 2 src
src
process_podcast_rss.py
process_transcription_full_text.py
15:20 (6%)
18:23 (2%)
view