aws-samples / amazon-connect-callback-helper
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
  • 33% duplication:
    • 784 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 263 duplicated lines
  • 54 duplicates
system33% (263 lines)
Duplication per Extension
py33% (149 lines)
yaml34% (114 lines)
Duplication per Component (primary)
ROOT34% (114 lines)
CBHelper-evaluateCallBack28% (45 lines)
CBHelper-dial45% (32 lines)
CBHelper-notify39% (27 lines)
CBHelper-getAvailableAgents48% (26 lines)
CBHelper-removeFromQueue60% (12 lines)
CBHelper-scheduleCall13% (7 lines)
CBHelper-startScheduledCalls0% (0 lines)

Duplication Between Components (50+ lines)

G CBHelper-dial CBHelper-dial CBHelper-evaluateCallBack CBHelper-evaluateCallBack CBHelper-dial--CBHelper-evaluateCallBack 64 CBHelper-notify CBHelper-notify CBHelper-dial--CBHelper-notify 54 CBHelper-getAvailableAgents CBHelper-getAvailableAgents CBHelper-dial--CBHelper-getAvailableAgents 52 CBHelper-evaluateCallBack--CBHelper-notify 52 CBHelper-evaluateCallBack--CBHelper-getAvailableAgents 52 CBHelper-getAvailableAgents--CBHelper-notify 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 54 duplicates...
Size#FoldersFilesLinesCode
27 x 2 CBHelper-dial
CBHelper-notify
lambda_function.py
lambda_function.py
62:107 (38%)
56:101 (39%)
view
26 x 2 CBHelper-evaluateCallBack
CBHelper-notify
lambda_function.py
lambda_function.py
126:169 (16%)
58:101 (38%)
view
26 x 2 CBHelper-getAvailableAgents
CBHelper-notify
lambda_function.py
lambda_function.py
41:84 (48%)
58:101 (38%)
view
26 x 2 CBHelper-dial
CBHelper-evaluateCallBack
lambda_function.py
lambda_function.py
64:107 (36%)
126:169 (16%)
view
26 x 2 CBHelper-dial
CBHelper-getAvailableAgents
lambda_function.py
lambda_function.py
64:107 (36%)
41:84 (48%)
view
26 x 2 CBHelper-evaluateCallBack
CBHelper-getAvailableAgents
lambda_function.py
lambda_function.py
126:169 (16%)
41:84 (48%)
view
14 x 2 ROOT
ROOT
template.yaml
template.yaml
77:90 (4%)
134:147 (4%)
view
9 x 2 ROOT
ROOT
template.yaml
template.yaml
47:55 (2%)
104:112 (2%)
view
7 x 2 CBHelper-evaluateCallBack
CBHelper-scheduleCall
lambda_function.py
lambda_function.py
216:222 (4%)
65:71 (13%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
248:254 (2%)
270:276 (2%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
162:167 (1%)
173:178 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
121:126 (1%)
202:207 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
248:253 (1%)
305:310 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
62:67 (1%)
186:191 (1%)
view
6 x 2 CBHelper-evaluateCallBack
CBHelper-removeFromQueue
lambda_function.py
lambda_function.py
171:177 (3%)
22:28 (30%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
186:191 (1%)
202:207 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
248:253 (1%)
317:322 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
134:139 (1%)
202:207 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
62:67 (1%)
173:178 (1%)
view
6 x 2 ROOT
ROOT
template.yaml
template.yaml
77:82 (1%)
121:126 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
41 x 4 CBHelper-getAvailableAgents
CBHelper-notify
CBHelper-evaluateCallBack
CBHelper-dial
lambda_function.py
lambda_function.py
lambda_function.py
lambda_function.py
0:0 
0:0 
0:0 
0:0 
view