aws-samples / amazon-connect-twitter-listener
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
  • 26% duplication:
    • 492 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 132 duplicated lines
  • 23 duplicates
system26% (132 lines)
Duplication per Extension
yaml26% (80 lines)
py27% (52 lines)
Duplication per Component (primary)
ROOT26% (80 lines)
Twitter-Replier47% (26 lines)
Stream-Processor38% (26 lines)
ListenerScript0% (0 lines)

Duplication Between Components (50+ lines)

G Stream-Processor Stream-Processor Twitter-Replier Twitter-Replier Stream-Processor--Twitter-Replier 52

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 23 duplicates...
Size#FoldersFilesLinesCode
26 x 2 Stream-Processor
Twitter-Replier
lambda_function.py
lambda_function.py
59:97 (38%)
43:81 (47%)
view
12 x 2 ROOT
ROOT
template.yaml
template.yaml
73:84 (3%)
113:124 (3%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
86:95 (3%)
126:135 (3%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
32:40 (2%)
98:106 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
115:120 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
60:65 (1%)
75:80 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
60:65 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
48:53 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
48:53 (1%)
75:80 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
75:80 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
115:120 (1%)
126:131 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
60:65 (1%)
126:131 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
48:53 (1%)
86:91 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
48:53 (1%)
126:131 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
86:91 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
48:53 (1%)
60:65 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
126:131 (1%)
138:143 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
86:91 (1%)
115:120 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
60:65 (1%)
115:120 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
60:65 (1%)
86:91 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
37 x 2 Twitter-Replier
Stream-Processor
lambda_function.py
lambda_function.py
0:0 
0:0 
view