aws-samples / amazon-textract-comprehend-OCRimage-search-and-analyze
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:
    • 584 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 71 duplicated lines
  • 7 duplicates
system12% (71 lines)
Duplication per Extension
yml15% (71 lines)
Duplication per Component (primary)
template15% (71 lines)
ROOT0% (0 lines)
lambda0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
15 x 2 template
template
template-export-textract.yml
template-export-textract.yml
187:201 (3%)
222:236 (3%)
view
14 x 2 template
template
template-export-textract.yml
template-export-textract.yml
205:218 (3%)
240:253 (3%)
view
7 x 2 template
template
template-export-textract.yml
template-export-textract.yml
79:85 (1%)
222:228 (1%)
view
7 x 2 template
template
template-export-textract.yml
template-export-textract.yml
79:85 (1%)
187:193 (1%)
view
6 x 2 template
template
template-export-textract.yml
template-export-textract.yml
223:228 (1%)
360:365 (1%)
view
6 x 2 template
template
template-export-textract.yml
template-export-textract.yml
188:193 (1%)
360:365 (1%)
view
6 x 2 template
template
template-export-textract.yml
template-export-textract.yml
80:85 (1%)
360:365 (1%)
view