aws-samples / amazon-translate-json-document-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
  • 14% duplication:
    • 505 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 71 duplicated lines
  • 7 duplicates
system14% (71 lines)
Duplication per Extension
yaml25% (59 lines)
py4% (12 lines)
Duplication per Component (primary)
ROOT25% (59 lines)
translate_json4% (12 lines)
deployment0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
18 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
71:88 (7%)
116:133 (7%)
view
7 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
66:72 (3%)
107:113 (3%)
view
7 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
25:31 (3%)
66:72 (3%)
view
7 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
25:31 (3%)
107:113 (3%)
view
6 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
30:35 (2%)
128:133 (2%)
view
6 x 2 ROOT
ROOT
translate-json-template.yaml
translate-json-template.yaml
30:35 (2%)
83:88 (2%)
view
6 x 2 translate_json
translate_json
helper.py
helper.py
12:17 (5%)
23:29 (5%)
view