aws-samples / aws-smart-ad-breaks
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:
    • 1,845 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 233 duplicated lines
  • 36 duplicates
system12% (233 lines)
Duplication per Extension
yaml26% (133 lines)
py7% (100 lines)
Duplication per Component (primary)
ROOT26% (133 lines)
video_transcoding_start8% (22 lines)
video_transcoding_check20% (16 lines)
cloudfront39% (16 lines)
mediatailor19% (12 lines)
vmap_generation9% (11 lines)
slot_detection4% (11 lines)
vmap_generation/vast_xml1% (6 lines)
vmap_generation/vmap_xml6% (6 lines)
input0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 36 duplicates...
Size#FoldersFilesLinesCode
16 x 2 video_transcoding_check
video_transcoding_start
app.py
app.py
40:59 (20%)
50:68 (6%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
64:78 (2%)
137:151 (2%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
64:78 (2%)
107:121 (2%)
view
15 x 2 ROOT
ROOT
template.yaml
template.yaml
107:121 (2%)
137:151 (2%)
view
12 x 2 ROOT
ROOT
template.yaml
template.yaml
123:134 (2%)
153:164 (2%)
view
11 x 2 slot_detection
vmap_generation
app.py
app.py
117:127 (10%)
74:84 (9%)
view
11 x 2 ROOT
ROOT
template.yaml
template.yaml
95:105 (2%)
125:135 (2%)
view
10 x 2 ROOT
ROOT
template.yaml
template.yaml
95:104 (1%)
155:164 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
437:444 (1%)
524:531 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
107:114 (1%)
167:174 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
42:49 (1%)
107:114 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
42:49 (1%)
137:144 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
55:62 (1%)
123:130 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
42:49 (1%)
64:71 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
64:71 (1%)
167:174 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
137:144 (1%)
167:174 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
55:62 (1%)
153:160 (1%)
view
8 x 2 ROOT
ROOT
template.yaml
template.yaml
42:49 (1%)
167:174 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
139:145 (1%)
524:530 (1%)
view
7 x 2 ROOT
ROOT
template.yaml
template.yaml
139:145 (1%)
437:443 (1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
10 x 2 vmap_generation
slot_detection
app.py
app.py
0:0 
0:0 
view