aws-samples / easy-amazon-sagemaker-deployments
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
  • 10% duplication:
    • 998 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 100 duplicated lines
  • 2 duplicates
system10% (100 lines)
Duplication per Extension
py10% (100 lines)
Duplication per Component (primary)
notebooks/src98% (50 lines)
ezsmdeploy/data28% (31 lines)
notebooks10% (19 lines)
ROOT0% (0 lines)
ezsmdeploy0% (0 lines)

Duplication Between Components (50+ lines)

G ezsmdeploy/data ezsmdeploy/data notebooks/src notebooks/src ezsmdeploy/data--notebooks/src 62

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
31 x 2 ezsmdeploy/data
notebooks/src
predictor.py
predictor.py
16:75 (100%)
16:75 (100%)
view
19 x 2 notebooks
notebooks/src
modelscript_ensemble_sklearn.py
transformscript.py
7:35 (100%)
7:35 (100%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
11 x 2 notebooks
notebooks/src
modelscript_ensemble_sklearn.py
transformscript.py
0:0 
0:0 
view
9 x 2 ezsmdeploy/data
notebooks/src
predictor.py
predictor.py
0:0 
0:0 
view
10 x 2 notebooks
notebooks/src
modelscript_ensemble_sklearn.py
transformscript.py
0:0 
0:0 
view
7 x 2 ezsmdeploy/data
notebooks/src
predictor.py
predictor.py
0:0 
0:0 
view
6 x 2 ezsmdeploy/data
notebooks/src
predictor.py
predictor.py
0:0 
0:0 
view