aws / graph-notebook
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
  • 4% duplication:
    • 8,077 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 348 duplicated lines
  • 27 duplicates
system4% (348 lines)
Duplication per Extension
py3% (229 lines)
html32% (91 lines)
js3% (14 lines)
ts1% (14 lines)
Duplication per Component (primary)
src/graph_notebook/magics6% (173 lines)
src/graph_notebook/visualization25% (91 lines)
src/graph_notebook/network3% (40 lines)
src/graph_notebook/nbextensions4% (14 lines)
src/graph_notebook/widgets1% (14 lines)
src/graph_notebook/neptune1% (8 lines)
src/graph_notebook/notebooks1% (8 lines)
src/graph_notebook0% (0 lines)
src/graph_notebook/seed0% (0 lines)
src/graph_notebook/configuration0% (0 lines)
src/graph_notebook/static_resources0% (0 lines)
src/graph_notebook/options0% (0 lines)
src/graph_notebook/jupyter_profile0% (0 lines)
src/graph_notebook/decorators0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 27 duplicates...
Size#FoldersFilesLinesCode
42 x 2 src/graph_notebook/visualization/templates
src/graph_notebook/visualization/templates
opencypher_table.html
sparql_table.html
1:52 (100%)
1:52 (100%)
view
11 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
274:284 (<1%)
1656:1666 (<1%)
view
10 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
764:773 (<1%)
1283:1292 (<1%)
view
9 x 2 src/graph_notebook/magics
src/graph_notebook/magics
ml.py
ml.py
585:593 (1%)
688:696 (1%)
view
9 x 2 src/graph_notebook/magics
src/graph_notebook/magics
ml.py
ml.py
479:487 (1%)
688:696 (1%)
view
9 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
277:285 (<1%)
484:493 (<1%)
view
9 x 2 src/graph_notebook/magics
src/graph_notebook/magics
ml.py
ml.py
479:487 (1%)
585:593 (1%)
view
8 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
462:469 (<1%)
1647:1654 (<1%)
view
8 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
1499:1506 (<1%)
1514:1521 (<1%)
view
8 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
484:492 (<1%)
1659:1666 (<1%)
view
8 x 2 src/graph_notebook/neptune
src/graph_notebook/notebooks/04-Machine-Learning
client.py
neptune_ml_utils.py
630:637 (1%)
28:35 (1%)
view
7 x 2 src/graph_notebook/magics
src/graph_notebook/magics
graph_magic.py
graph_magic.py
1537:1543 (<1%)
1551:1557 (<1%)
view
7 x 2 src/graph_notebook/visualization/templates
src/graph_notebook/visualization/templates
gremlin_table.html
opencypher_table.html
4:11 (16%)
8:15 (16%)
view
7 x 2 src/graph_notebook/network/gremlin
src/graph_notebook/network/gremlin
GremlinNetwork.py
GremlinNetwork.py
507:514 (1%)
557:564 (1%)
view
7 x 2 src/graph_notebook/widgets/src
src/graph_notebook/widgets/src
force_widget.ts
force_widget.ts
725:731 (<1%)
743:749 (<1%)
view
7 x 2 src/graph_notebook/visualization/templates
src/graph_notebook/visualization/templates
gremlin_table.html
sparql_table.html
4:11 (16%)
8:15 (16%)
view
7 x 2 src/graph_notebook/nbext...s/gremlin_syntax/static
src/graph_notebook/nbext...ns/sparql_syntax/static
main.js
main.js
8:15 (77%)
8:15 (77%)
view
7 x 2 src/graph_notebook/network/gremlin
src/graph_notebook/network/gremlin
GremlinNetwork.py
GremlinNetwork.py
386:393 (1%)
445:452 (1%)
view
6 x 2 src/graph_notebook/magics
src/graph_notebook/magics
ml.py
ml.py
409:415 (<1%)
503:509 (<1%)
view
6 x 2 src/graph_notebook/magics
src/graph_notebook/magics
ml.py
ml.py
609:615 (<1%)
712:718 (<1%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 src/graph_notebook/nbext...ns/sparql_syntax/static
src/graph_notebook/nbext...s/gremlin_syntax/static
main.js
main.js
6:15 
6:15 
view