aws-samples / aws-sagemaker-using-sap-data-blog
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
  • 64% duplication:
    • 521 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 338 duplicated lines
  • 438 duplicates
system64% (338 lines)
Duplication per Extension
yaml79% (254 lines)
py41% (84 lines)
Duplication per Component (primary)
scripts64% (338 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 438 duplicates...
Size#FoldersFilesLinesCode
29 x 2 scripts
scripts
sap-data-extraction.py
sap-data-import.py
67:116 (25%)
61:110 (32%)
view
13 x 2 scripts
scripts
sap-data-extraction.py
sap-data-import.py
178:190 (11%)
118:130 (14%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
171:178 (2%)
288:295 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
45:52 (2%)
189:196 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
27:34 (2%)
63:70 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
117:124 (2%)
180:187 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
45:52 (2%)
198:205 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
54:61 (2%)
261:268 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
54:61 (2%)
270:277 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
45:52 (2%)
207:214 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
27:34 (2%)
72:79 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
117:124 (2%)
171:178 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
171:178 (2%)
261:268 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
162:169 (2%)
198:205 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
81:88 (2%)
90:97 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
126:133 (2%)
234:241 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
54:61 (2%)
279:286 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
27:34 (2%)
45:52 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
45:52 (2%)
216:223 (2%)
view
8 x 2 scripts
scripts
glue-databrew-recipe.yaml
glue-databrew-recipe.yaml
54:61 (2%)
288:295 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
44 x 2 scripts
scripts
sap-data-extraction.py
sap-data-import.py
0:0 
0:0 
view