aws-samples / amazon-sagemaker-tensorflow-object-detection-api
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
  • 9% duplication:
    • 912 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 6 duplicates
system9% (84 lines)
Duplication per Extension
py9% (84 lines)
Duplication per Component (primary)
3_predict10% (84 lines)
1_prepare_data/docker/code/utils0% (0 lines)
1_prepare_data/docker/code0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
9 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
867:875 (1%)
912:920 (1%)
view
8 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
130:137 (<1%)
165:172 (<1%)
view
7 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
990:996 (<1%)
1022:1028 (<1%)
view
7 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
733:739 (<1%)
765:771 (<1%)
view
6 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
713:718 (<1%)
738:743 (<1%)
view
6 x 2 3_predict
3_predict
visualization_utils.py
visualization_utils.py
1327:1332 (<1%)
1474:1479 (<1%)
view