aws-samples / amazon-translate-video-subtitles-captions-translation
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:
    • 703 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 89 duplicated lines
  • 8 duplicates
system12% (89 lines)
Duplication per Extension
yaml25% (59 lines)
py6% (30 lines)
Duplication per Component (primary)
ROOT22% (59 lines)
translate_captions7% (30 lines)
deployment0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
18 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
68:85 (7%)
113:130 (7%)
view
9 x 2 translate_captions
translate_captions
captions_helper.py
captions_helper.py
181:189 (5%)
194:202 (5%)
view
7 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
22:28 (3%)
104:110 (3%)
view
7 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
22:28 (3%)
63:69 (3%)
view
7 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
63:69 (3%)
104:110 (3%)
view
6 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
27:32 (2%)
125:130 (2%)
view
6 x 2 translate_captions
translate_captions
helper.py
helper.py
12:17 (5%)
23:29 (5%)
view
6 x 2 ROOT
ROOT
translate-captions-template.yaml
translate-captions-template.yaml
27:32 (2%)
80:85 (2%)
view