aws-samples / aws-sagemaker-pytorch-shop-by-style
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
  • 22% duplication:
    • 2,126 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 480 duplicated lines
  • 49 duplicates
system22% (480 lines)
Duplication per Extension
yaml22% (254 lines)
py29% (212 lines)
html7% (14 lines)
Duplication per Component (primary)
cf22% (254 lines)
similarity32% (212 lines)
web/graphvis14% (14 lines)
etl/gremlin0% (0 lines)
web/sample-web/css0% (0 lines)
web/sample-web0% (0 lines)
lambda0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 49 duplicates...
Size#FoldersFilesLinesCode
27 x 2 src/cf
src/cf
neptune.yaml
shopbystyle-prototype.yaml
3:29 (5%)
14:40 (8%)
view
20 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
228:257 (13%)
181:210 (16%)
view
18 x 2 src/cf
src/cf
neptune.yaml
shopbystyle-prototype.yaml
30:47 (3%)
63:80 (5%)
view
15 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
40:61 (10%)
42:63 (12%)
view
12 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
118:138 (8%)
99:119 (9%)
view
11 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
279:289 (2%)
302:312 (2%)
view
11 x 2 src/similarity
src/similarity
batch.py
inference.py
17:33 (20%)
14:30 (31%)
view
11 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
23:36 (7%)
25:38 (9%)
view
10 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
201:217 (6%)
156:172 (8%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
261:270 (1%)
279:288 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
64:73 (1%)
261:270 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
64:73 (1%)
279:288 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
261:270 (1%)
302:311 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
64:73 (1%)
302:311 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
448:457 (1%)
474:483 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
448:457 (1%)
461:470 (1%)
view
10 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
461:470 (1%)
474:483 (1%)
view
9 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
302:310 (1%)
320:328 (1%)
view
9 x 2 src/cf
src/cf
neptune.yaml
neptune.yaml
239:247 (1%)
279:287 (1%)
view
9 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
183:198 (6%)
138:153 (7%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
7 x 2 src/similarity
src/similarity
siamese.py
siamese2.py
0:0 
0:0 
view