aws-samples / aws-cdk-healthlake-knowledge-analyzer
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
  • 5% duplication:
    • 26,981 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,609 duplicated lines
  • 165 duplicates
system5% (1,609 lines)
Duplication per Extension
py5% (1,416 lines)
jsx7% (116 lines)
js16% (77 lines)
Duplication per Component (primary)
assets/lambda_helper_neptune/python/rdflib5% (1,006 lines)
assets/lambda_helper_neptune/python5% (249 lines)
assets/ka-webapp/src/components8% (109 lines)
assets/ka-webapp/src/store13% (77 lines)
knowledge_analyzer13% (65 lines)
assets/lambda_helper/python11% (60 lines)
assets/lambda_helper_neptune/python/isodate3% (36 lines)
assets/ka-webapp/src4% (7 lines)
assets/ka-server-webapp0% (0 lines)
assets/ka-webapp/public0% (0 lines)
assets/lambda0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 165 duplicates...
Size#FoldersFilesLinesCode
26 x 2 assets/lambda_helper_nep...ins/parsers/pyMicrodata
assets/lambda_helper_nep...ins/parsers/pyRdfa/host
utils.py
html5.py
200:235 (16%)
88:123 (20%)
view
25 x 2 assets/lambda_helper_nep...ins/parsers/pyMicrodata
assets/lambda_helper_nep...ins/parsers/pyRdfa/host
utils.py
html5.py
152:177 (15%)
39:64 (19%)
view
24 x 2 assets/lambda_helper_nep.../plugins/parsers/pyRdfa
assets/lambda_helper_nep.../plugins/parsers/pyRdfa
property.py
property.py
107:137 (15%)
167:200 (15%)
view
24 x 2 assets/ka-webapp/src/components
assets/ka-webapp/src/components
GraphinVizArea.jsx
GraphinVizArea.jsx
180:209 (6%)
301:330 (6%)
view
21 x 2 assets/lambda_helper_nep.../rdflib/plugins/parsers
assets/lambda_helper_nep.../rdflib/plugins/parsers
notation3.py
notation3.py
587:608 (1%)
643:664 (1%)
view
19 x 2 assets/lambda_helper_nep...ins/parsers/pyMicrodata
assets/lambda_helper_nep.../plugins/parsers/pyRdfa
__init__.py
__init__.py
342:363 (8%)
734:755 (4%)
view
17 x 2 assets/lambda_helper_nep.../plugins/parsers/pyRdfa
assets/lambda_helper_nep.../plugins/parsers/pyRdfa
parse.py
parse.py
252:274 (7%)
433:455 (7%)
view
17 x 2 assets/lambda_helper_nep.../rdflib/plugins/parsers
assets/lambda_helper_nep.../rdflib/plugins/parsers
notation3.py
notation3.py
611:629 (1%)
667:685 (1%)
view
14 x 2 assets/lambda_helper_neptune/python
assets/lambda_helper_neptune/python
pyparsing.py
pyparsing.py
4182:4197 (<1%)
4268:4283 (<1%)
view
14 x 2 assets/lambda_helper_nep...ins/parsers/pyMicrodata
assets/lambda_helper_nep.../plugins/parsers/pyRdfa
__init__.py
__init__.py
430:443 (6%)
905:918 (3%)
view
13 x 2 knowledge_analyzer
knowledge_analyzer
knowledge_analyzer_stack.py
knowledge_analyzer_update_stack.py
2:14 (5%)
2:14 (44%)
view
13 x 2 assets/lambda_helper_nep...n/rdflib/plugins/stores
assets/lambda_helper_nep...n/rdflib/plugins/stores
regexmatching.py
regexmatching.py
65:79 (12%)
96:110 (12%)
view
12 x 2 assets/lambda_helper_nep.../rdflib/plugins/parsers
assets/lambda_helper_nep.../rdflib/plugins/parsers
notation3.py
trig.py
980:993 (<1%)
106:119 (12%)
view
12 x 2 assets/lambda_helper_neptune/python
assets/lambda_helper_neptune/python
pyparsing.py
pyparsing.py
1650:1661 (<1%)
1670:1681 (<1%)
view
12 x 2 assets/lambda_helper_neptune/python
assets/lambda_helper_neptune/python
pyparsing.py
pyparsing.py
1689:1701 (<1%)
1708:1720 (<1%)
view
11 x 2 assets/ka-webapp/src/store/actions
assets/ka-webapp/src/store/actions
globalActions.js
globalActions.js
391:403 (3%)
490:502 (3%)
view
11 x 2 assets/ka-webapp/src/store/actions
assets/ka-webapp/src/store/actions
globalActions.js
globalActions.js
347:359 (3%)
391:403 (3%)
view
11 x 2 assets/ka-webapp/src/store/actions
assets/ka-webapp/src/store/actions
globalActions.js
globalActions.js
347:359 (3%)
433:445 (3%)
view
11 x 2 assets/ka-webapp/src/store/actions
assets/ka-webapp/src/store/actions
globalActions.js
globalActions.js
391:403 (3%)
433:445 (3%)
view
11 x 2 assets/ka-webapp/src/store/actions
assets/ka-webapp/src/store/actions
globalActions.js
globalActions.js
347:359 (3%)
490:502 (3%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 assets/lambda_helper_neptune/python/rdflib/extras
assets/lambda_helper_neptune/python/rdflib/extras
infixowl.py
infixowl.py
0:0 
0:0 
view