aws-samples / amazon-sagemaker-tensorflow-serving-grpc
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
  • 25% duplication:
    • 1,012 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 256 duplicated lines
  • 12 duplicates
system25% (256 lines)
Duplication per Extension
py25% (256 lines)
Duplication per Component (primary)
object-detection/code85% (86 lines)
image-classification/code86% (86 lines)
object-detection10% (84 lines)

Duplication Between Components (50+ lines)

G image-classification/code image-classification/code object-detection/code object-detection/code image-classification/code--object-detection/code 172

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 12 longest duplicates.
See data for all 12 duplicates...
Size#FoldersFilesLinesCode
25 x 2 image-classification/code
object-detection/code
inference.py
inference.py
79:107 (25%)
75:105 (24%)
view
25 x 2 image-classification/code
object-detection/code
inference.py
inference.py
42:74 (25%)
39:71 (24%)
view
13 x 2 image-classification/code
object-detection/code
inference.py
inference.py
137:153 (13%)
136:152 (12%)
view
9 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
829:837 (1%)
873:881 (1%)
view
9 x 2 image-classification/code
object-detection/code
inference.py
inference.py
109:119 (9%)
109:119 (8%)
view
8 x 2 image-classification/code
object-detection/code
inference.py
inference.py
28:36 (8%)
25:33 (7%)
view
8 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
123:130 (<1%)
156:163 (<1%)
view
7 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
948:954 (<1%)
978:984 (<1%)
view
7 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
698:704 (<1%)
730:736 (<1%)
view
6 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
1273:1278 (<1%)
1414:1419 (<1%)
view
6 x 2 object-detection
object-detection
visualization_utils.py
visualization_utils.py
678:683 (<1%)
703:708 (<1%)
view
6 x 2 image-classification/code
object-detection/code
inference.py
inference.py
122:127 (6%)
122:127 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
12 x 2 object-detection/code
image-classification/code
inference.py
inference.py
0:0 
0:0 
view