aws-samples / amazon-sagemaker-groundtruth-conversion-kit
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:
    • 329 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 40 duplicated lines
  • 4 duplicates
system12% (40 lines)
Duplication per Extension
py12% (40 lines)
Duplication per Component (primary)
gt_converter13% (40 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
9 x 2 gt_converter
gt_converter
convert_coco.py
convert_coco.py
195:205 (3%)
247:257 (3%)
view
8 x 2 gt_converter
gt_converter
convert_coco.py
convert_coco.py
186:193 (3%)
223:230 (3%)
view
6 x 2 gt_converter
gt_converter
convert_coco.py
convert_coco.py
197:202 (2%)
329:334 (2%)
view
6 x 2 gt_converter
gt_converter
convert_coco.py
convert_coco.py
249:254 (2%)
329:334 (2%)
view