aws-samples / serverless-audio-indexing
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:
    • 721 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 167 duplicated lines
  • 19 duplicates
system23% (167 lines)
Duplication per Extension
yaml31% (151 lines)
py6% (16 lines)
Duplication per Component (primary)
ROOT31% (151 lines)
functions/start_comprehend_job23% (16 lines)
functions/get_comprehend_files0% (0 lines)
functions/get_comprehend_job_status0% (0 lines)
functions/load_es0% (0 lines)
functions/get_transcribe_transcript0% (0 lines)
functions/start_stateMachine0% (0 lines)
functions/start_transcribe_job0% (0 lines)
functions/get_transcribe_job_status0% (0 lines)
Longest Duplicates
The list of 19 longest duplicates.
See data for all 19 duplicates...
Size#FoldersFilesLinesCode
16 x 2 ROOT
ROOT
template.yaml
template.yaml
319:334 (3%)
414:429 (3%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
324:334 (2%)
468:478 (2%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
419:429 (2%)
468:478 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
377:386 (2%)
469:478 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
325:334 (2%)
377:386 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
377:386 (2%)
420:429 (2%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
116:124 (1%)
452:460 (1%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
286:294 (1%)
470:478 (1%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
286:294 (1%)
378:386 (1%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
286:294 (1%)
421:429 (1%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
286:294 (1%)
326:334 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
206:213 (1%)
216:223 (1%)
view
8 x 2 functions/start_comprehend_job
functions/start_comprehend_job
app.py
app.py
69:76 (11%)
88:95 (11%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
302:308 (1%)
394:400 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
26:31 (1%)
34:39 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
26:31 (1%)
186:191 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
278:283 (1%)
349:354 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
111:116 (1%)
363:368 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
34:39 (1%)
186:191 (1%)
view