awslabs / aws-clustered-video-streams
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
  • 19% duplication:
    • 2,367 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 460 duplicated lines
  • 27 duplicates
system19% (460 lines)
Duplication per Extension
yaml25% (332 lines)
py17% (70 lines)
js9% (58 lines)
Duplication per Component (primary)
deployment25% (332 lines)
source/stale-playlist-detector9% (40 lines)
source/cfn-init-clustered-video-stream31% (36 lines)
source/cfn-add-edge-lambda27% (28 lines)
source/dashboard7% (18 lines)
source/cfn-s3copyobjects13% (6 lines)
source/cfn-global-table0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
33 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream.yaml
197:229 (9%)
218:250 (10%)
view
22 x 2 deployment
deployment
clustered-video-stream-instance.yaml
cvs-instance.yaml
367:388 (6%)
45:66 (40%)
view
18 x 2 deployment
deployment
clustered-video-stream-instance.yaml
cvs-instance.yaml
21:44 (5%)
18:41 (33%)
view
17 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream.yaml
82:98 (4%)
142:158 (5%)
view
15 x 2 deployment
deployment
clustered-video-stream.yaml
copilot.yaml
218:232 (4%)
45:59 (12%)
view
15 x 2 deployment
deployment
clustered-video-stream-instance.yaml
copilot.yaml
116:130 (4%)
45:59 (12%)
view
15 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream.yaml
116:130 (4%)
218:232 (4%)
view
15 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream-instance.yaml
116:130 (4%)
197:211 (4%)
view
15 x 2 source/cfn-init-clustered-video-stream
source/cfn-init-clustered-video-stream
cfn-init-clustered-video-stream.py
cfn-init-clustered-video-stream.py
40:59 (13%)
136:155 (13%)
view
15 x 2 deployment
deployment
clustered-video-stream-instance.yaml
copilot.yaml
197:211 (4%)
45:59 (12%)
view
14 x 2 source/cfn-add-edge-lambda
source/cfn-add-edge-lambda
cfn-add-edge-lambda.py
cfn-add-edge-lambda.py
80:95 (13%)
125:142 (13%)
view
14 x 2 deployment
deployment
clustered-video-stream-instance.yaml
cvs-instance.yaml
1:17 (3%)
1:17 (25%)
view
11 x 2 source/stale-playlist-detector
source/stale-playlist-detector
detector.js
playlist.js
178:191 (7%)
184:198 (7%)
view
10 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream.yaml
238:248 (2%)
254:264 (3%)
view
10 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream-instance.yaml
142:151 (2%)
238:248 (2%)
view
10 x 2 deployment
deployment
clustered-video-stream-instance.yaml
copilot.yaml
142:151 (2%)
62:73 (8%)
view
10 x 2 deployment
deployment
clustered-video-stream.yaml
copilot.yaml
254:264 (3%)
62:73 (8%)
view
10 x 2 deployment
deployment
stale-playlist-detector.yaml
stale-playlist-detector.yaml
339:348 (2%)
405:414 (2%)
view
10 x 2 deployment
deployment
clustered-video-stream-instance.yaml
copilot.yaml
238:248 (2%)
62:73 (8%)
view
10 x 2 deployment
deployment
clustered-video-stream-instance.yaml
clustered-video-stream.yaml
142:151 (2%)
254:264 (3%)
view