aws-samples / aws-photo-to-sketch
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
  • 6% duplication:
    • 693 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 48 duplicated lines
  • 1 duplicates
system6% (48 lines)
Duplication per Extension
py19% (48 lines)
Duplication per Component (primary)
src/src30% (24 lines)
src/lambda-inference39% (24 lines)
src/lambda0% (0 lines)
application/PhotoToSketch/PhotoToSketch/ShareScreen0% (0 lines)
application/PhotoToSketch/PhotoToSketch/CameraScreen0% (0 lines)
application/PhotoToSketch/PhotoToSketch0% (0 lines)
application/PhotoToSketch/PhotoToSketch/EffectApplyScreen/Views0% (0 lines)
application/PhotoToSketch/PhotoToSketch/EffectApplyScreen0% (0 lines)
application/PhotoToSketch/PhotoToSketch/Helpers0% (0 lines)
Longest Duplicates
The list of 1 longest duplicates.
See data for all 1 duplicate
Size#FoldersFilesLinesCode
24 x 2 src/lambda-inference
src/src
app.py
predictor.py
11:45 (39%)
31:64 (31%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
13 x 2 src/src
src/lambda-inference
predictor.py
app.py
0:0 
0:0 
view
9 x 2 src/src
src/lambda-inference
predictor.py
app.py
0:0 
0:0 
view
6 x 2 src/src
src/lambda-inference
predictor.py
app.py
0:0 
0:0 
view