aws-samples / amazon-transcribe-live-call-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
  • 12% duplication:
    • 8,297 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,042 duplicated lines
  • 101 duplicates
system12% (1,042 lines)
Duplication per Extension
yaml22% (722 lines)
java18% (166 lines)
jsx4% (54 lines)
js3% (48 lines)
graphql13% (26 lines)
py1% (26 lines)
Duplication per Component (primary)
lca-ai-stack/deployment21% (473 lines)
lca-chimevc-stack/cloudformation-templates19% (173 lines)
lca-ai-stack/source/kvs_transcribe_streaming18% (166 lines)
lca-ai-stack/source/ui4% (102 lines)
ROOT71% (48 lines)
lca-chimevc-stack35% (28 lines)
lca-ai-stack/source/appsync13% (26 lines)
lca-ai-stack/source/lambda_functions1% (26 lines)
lca-ai-stack0% (0 lines)
lca-ai-stack/deployment/manifest-generator0% (0 lines)

Duplication Between Components (50+ lines)

G lca-ai-stack/deployment lca-ai-stack/deployment ROOT ROOT lca-ai-stack/deployment--ROOT 54

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 101 duplicates...
Size#FoldersFilesLinesCode
30 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
376:405 (1%)
431:460 (1%)
view
27 x 2 lca-ai-stack/source/kvs_.../kvstranscribestreaming
lca-ai-stack/source/kvs_.../kvstranscribestreaming
RecordingRequest.java
TranscriptionRequest.java
79:137 (38%)
76:134 (41%)
view
22 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
248:269 (<1%)
306:327 (<1%)
view
19 x 2 lca-ai-stack/source/ui/src/components/call-panel
lca-ai-stack/source/ui/src/components/call-panel
sentiment-charts.jsx
sentiment-charts.jsx
47:67 (16%)
108:128 (16%)
view
18 x 2 lca-ai-stack/deployment
ROOT
ai-powered-speech-analytics-for-amazo...
lca-main.yaml
58:90 (<1%)
72:102 (26%)
view
17 x 2 lca-ai-stack/source/ui/src/graphql/queries
lca-ai-stack/source/ui/src/graphql/queries
getCall.js
onUpdateCall.js
14:38 (65%)
16:40 (60%)
view
16 x 2 lca-chimevc-stack/cloudformation-templates
lca-chimevc-stack/cloudformation-templates
chime-vc-with-asterisk-server.yaml
chime-vc-with-asterisk-server.yaml
251:266 (2%)
268:283 (2%)
view
16 x 2 lca-chimevc-stack/cloudformation-templates
lca-chimevc-stack/cloudformation-templates
chime-vc-with-asterisk-server.yaml
chime-vc-with-asterisk-server.yaml
251:266 (2%)
285:300 (2%)
view
16 x 2 lca-chimevc-stack/cloudformation-templates
lca-chimevc-stack/cloudformation-templates
chime-vc-with-asterisk-server.yaml
chime-vc-with-asterisk-server.yaml
268:283 (2%)
285:300 (2%)
view
14 x 2 lca-chimevc-stack
ROOT
template.yaml
lca-main.yaml
29:43 (17%)
31:47 (20%)
view
14 x 2 lca-ai-stack/source/kvs_...aws/transcribestreaming
lca-ai-stack/source/kvs_...aws/transcribestreaming
FileByteToAudioEventSubscription.java
KVSByteToAudioEventSubscription.java
63:83 (33%)
92:112 (27%)
view
13 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
466:478 (<1%)
2279:2291 (<1%)
view
13 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
431:443 (<1%)
1092:1104 (<1%)
view
13 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
376:388 (<1%)
1092:1104 (<1%)
view
13 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
390:402 (<1%)
1107:1119 (<1%)
view
13 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
445:457 (<1%)
1107:1119 (<1%)
view
12 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
1604:1615 (<1%)
1674:1685 (<1%)
view
12 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
751:762 (<1%)
2345:2356 (<1%)
view
12 x 2 lca-ai-stack/source/kvs_.../kvstranscribestreaming
lca-ai-stack/source/kvs_.../kvstranscribestreaming
RecordingRequest.java
TranscriptionRequest.java
39:66 (16%)
36:63 (18%)
view
9 x 2 lca-ai-stack/deployment
lca-ai-stack/deployment
ai-powered-speech-analytics-for-amazo...
ai-powered-speech-analytics-for-amazo...
614:622 (<1%)
1093:1101 (<1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
10 x 2 lca-ai-stack/source/kvs_.../kvstranscribestreaming
lca-ai-stack/source/kvs_.../kvstranscribestreaming
RecordingRequest.java
TranscriptionRequest.java
159:175 
143:159 
view
6 x 3 lca-ai-stack/source/ui/src/graphql/queries
lca-ai-stack/source/ui/src/graphql/queries
lca-ai-stack/source/ui/src/graphql/queries
listCalls.js
listCallDateShard.js
listCallDateHour.js
7:13 
7:13 
7:13 
view