aws / amazon-braket-pennylane-plugin-python
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
  • 3% duplication:
    • 1,508 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 60 duplicated lines
  • 8 duplicates
system3% (60 lines)
Duplication per Extension
py6% (60 lines)
Duplication per Component (primary)
src/braket/pennylane_plugin7% (48 lines)
ROOT11% (12 lines)
doc/xanadu_theme0% (0 lines)
doc/xanadu_theme/static/css0% (0 lines)
doc/xanadu_theme/static0% (0 lines)
doc0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
9 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
57:91 (7%)
108:142 (7%)
view
8 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
57:90 (7%)
157:190 (7%)
view
8 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
108:141 (7%)
157:190 (7%)
view
8 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
157:190 (7%)
206:238 (7%)
view
8 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
108:141 (7%)
206:238 (7%)
view
8 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
57:90 (7%)
206:238 (7%)
view
7 x 2 src/braket/pennylane_plugin
src/braket/pennylane_plugin
ops.py
ops.py
92:98 (6%)
191:197 (6%)
view
6 x 2 ROOT
ROOT
example.py
example.py
25:32 (31%)
36:43 (31%)
view