aws-samples / chip-wafer-classification-deep-learning
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
  • 24% duplication:
    • 3,659 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 882 duplicated lines
  • 100 duplicates
system24% (882 lines)
Duplication per Extension
yaml32% (860 lines)
py5% (22 lines)
Duplication per Component (primary)
cfn32% (860 lines)
lambda-rpi-inference23% (22 lines)
trainer_code0% (0 lines)
pytorch_code0% (0 lines)
pytorch_code/classifier0% (0 lines)
frontend/src0% (0 lines)
frontend/src/containers0% (0 lines)
frontend/src/components0% (0 lines)
frontend/public0% (0 lines)
deploy_code0% (0 lines)
notebooks0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 100 duplicates...
Size#FoldersFilesLinesCode
25 x 2 cfn
cfn
app.yaml
app.yaml
120:144 (3%)
247:271 (3%)
view
23 x 2 cfn
cfn
iot.yaml
persistence.yaml
166:188 (2%)
155:177 (10%)
view
23 x 2 cfn
cfn
app.yaml
app.yaml
311:333 (3%)
350:372 (3%)
view
23 x 2 cfn
cfn
app.yaml
app.yaml
350:372 (3%)
389:411 (3%)
view
23 x 2 cfn
cfn
app.yaml
app.yaml
311:333 (3%)
389:411 (3%)
view
22 x 2 cfn
cfn
app.yaml
app.yaml
97:118 (3%)
224:245 (3%)
view
22 x 2 cfn
cfn
app.yaml
iot.yaml
447:468 (3%)
166:187 (2%)
view
22 x 2 cfn
cfn
app.yaml
persistence.yaml
447:468 (3%)
155:176 (10%)
view
18 x 2 cfn
cfn
app.yaml
app.yaml
502:522 (2%)
569:589 (2%)
view
18 x 2 cfn
cfn
iot.yaml
iot.yaml
264:281 (2%)
880:897 (2%)
view
16 x 2 cfn
lambda-rpi-inference
iot.yaml
greengrassObjectClassification.py
599:617 (1%)
76:95 (17%)
view
16 x 2 cfn
cfn
pipeline.yaml
pipeline.yaml
288:303 (2%)
321:336 (2%)
view
15 x 2 cfn
cfn
app.yaml
app.yaml
164:178 (2%)
231:245 (2%)
view
15 x 2 cfn
cfn
app.yaml
app.yaml
104:118 (2%)
164:178 (2%)
view
14 x 2 cfn
cfn
app.yaml
app.yaml
569:584 (2%)
647:662 (2%)
view
14 x 2 cfn
cfn
app.yaml
app.yaml
502:517 (2%)
647:662 (2%)
view
13 x 2 cfn
cfn
app.yaml
app.yaml
487:499 (1%)
553:565 (1%)
view
12 x 2 cfn
cfn
app.yaml
app.yaml
487:498 (1%)
631:642 (1%)
view
12 x 2 cfn
cfn
app.yaml
app.yaml
553:564 (1%)
631:642 (1%)
view
12 x 2 cfn
cfn
pipeline.yaml
pipeline.yaml
469:480 (1%)
499:510 (1%)
view