aws-quickstart / quickstart-quantiphi-realtime-analytics
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
  • 31% duplication:
    • 4,148 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,322 duplicated lines
  • 115 duplicates
system31% (1,322 lines)
Duplication per Extension
yaml44% (1,242 lines)
py9% (48 lines)
java3% (32 lines)
Duplication per Component (primary)
templates44% (1,242 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/lambda17% (32 lines)
functions/source/publish-call-metadata11% (30 lines)
functions/source/websocket-connection12% (18 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/streaming0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/publisher0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/transcribe0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/handler0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/constants0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/utils0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/kvstranscribestreaming/docker0% (0 lines)
functions/source/amazon-chime-recordandtranscribe/src/main/java/com/amazonaws/streamingeventmodel0% (0 lines)
functions/source/keyword-extraction0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 115 duplicates...
Size#FoldersFilesLinesCode
123 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
305:431 (21%)
179:306 (25%)
view
42 x 2 templates
templates
web-app.yaml
web-app.yaml
120:161 (7%)
181:222 (7%)
view
38 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
153:190 (6%)
137:174 (7%)
view
33 x 2 templates
templates
function.yaml
function.yaml
510:542 (3%)
594:626 (3%)
view
33 x 2 templates
templates
function.yaml
function.yaml
294:326 (3%)
510:542 (3%)
view
33 x 2 templates
templates
function.yaml
function.yaml
294:326 (3%)
594:626 (3%)
view
30 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
433:463 (5%)
308:338 (6%)
view
24 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
101:125 (4%)
69:93 (4%)
view
23 x 2 templates
templates
function.yaml
function.yaml
481:503 (2%)
567:589 (2%)
view
23 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
126:148 (4%)
98:120 (4%)
view
22 x 2 templates
templates
function.yaml
function.yaml
382:403 (2%)
649:670 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
294:315 (2%)
407:428 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
567:588 (2%)
649:670 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
407:428 (2%)
510:531 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
382:403 (2%)
567:588 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
407:428 (2%)
594:615 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
481:502 (2%)
649:670 (2%)
view
22 x 2 templates
templates
function.yaml
function.yaml
382:403 (2%)
481:502 (2%)
view
21 x 2 templates
templates
function.yaml
function.yaml
437:457 (2%)
532:552 (2%)
view
18 x 2 templates
templates
analytics-main.template.yaml
analytics.template.yaml
7:24 (3%)
9:26 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
17 x 2 functions/source/publish-call-metadata
functions/source/websocket-connection
lambda_function.py
lambda_function.py
0:0 
0:0 
view