aws-samples / sagemaker-studio-notebook-magic-cell
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
  • 14% duplication:
    • 433 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 6 duplicates
system14% (62 lines)
Duplication per Extension
py14% (62 lines)
Duplication per Component (primary)
sage_maker_magic/sage_maker_kernel14% (62 lines)
sage_maker_magic0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
14 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
230:243 (4%)
280:293 (4%)
view
12 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
176:187 (4%)
230:241 (4%)
view
12 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
176:187 (4%)
280:291 (4%)
view
8 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
167:174 (2%)
221:228 (2%)
view
6 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
221:226 (2%)
271:276 (2%)
view
6 x 2 sage_maker_magic/sage_maker_kernel
sage_maker_magic/sage_maker_kernel
kernelmagics.py
kernelmagics.py
167:172 (2%)
271:276 (2%)
view