opensearch-project / dashboards-notebooks
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
  • 20% duplication:
    • 7,209 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 1,512 duplicated lines
  • 1,992 duplicates
system20% (1,512 lines)
Duplication per Extension
ts46% (1,151 lines)
kt12% (206 lines)
tsx5% (155 lines)
Duplication per Component (primary)
dashboards-notebooks/server/helpers74% (838 lines)
dashboards-notebooks/server/routes55% (234 lines)
opensearch-notebooks/src/main12% (206 lines)
dashboards-notebooks/public/components5% (155 lines)
dashboards-notebooks/server/adaptors10% (79 lines)
opensearch-notebooks0% (0 lines)
dashboards-notebooks/common0% (0 lines)
dashboards-notebooks/public0% (0 lines)
dashboards-notebooks/server0% (0 lines)
dashboards-notebooks/server/clusters0% (0 lines)
dashboards-notebooks/server/services0% (0 lines)
dashboards-notebooks/poc/zeppelin0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 1,992 duplicates...
Size#FoldersFilesLinesCode
14 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
610:625 (1%)
659:674 (1%)
view
13 x 2 dashboards-notebooks/server/routes
dashboards-notebooks/server/routes
paraRouter.ts
paraRouter.ts
20:32 (7%)
56:68 (7%)
view
13 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
563:577 (1%)
610:624 (1%)
view
13 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
563:577 (1%)
659:673 (1%)
view
13 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
67:81 (1%)
225:239 (1%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
516:529 (1%)
659:672 (1%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
516:529 (1%)
610:623 (1%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
226:239 (1%)
242:255 (1%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
579:590 (1%)
627:638 (1%)
view
12 x 2 dashboards-notebooks/server/routes
dashboards-notebooks/server/routes
noteRouter.ts
noteRouter.ts
105:116 (6%)
134:145 (6%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
516:529 (1%)
563:576 (1%)
view
12 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
68:81 (1%)
242:255 (1%)
view
11 x 2 opensearch-notebooks/src...nsearch/notebooks/model
opensearch-notebooks/src...nsearch/notebooks/model
DeleteNotebookResponse.kt
UpdateNotebookResponse.kt
47:60 (36%)
47:60 (36%)
view
11 x 2 opensearch-notebooks/src...nsearch/notebooks/model
opensearch-notebooks/src...nsearch/notebooks/model
CreateNotebookResponse.kt
UpdateNotebookResponse.kt
47:60 (36%)
47:60 (36%)
view
11 x 2 opensearch-notebooks/src...nsearch/notebooks/model
opensearch-notebooks/src...nsearch/notebooks/model
DeleteNotebookRequest.kt
GetNotebookRequest.kt
53:66 (32%)
53:66 (32%)
view
11 x 2 dashboards-notebooks/public/components/helpers
dashboards-notebooks/public/components
reporting_context_menu_helper.tsx
notebook.tsx
61:71 (5%)
593:603 (1%)
view
11 x 2 opensearch-notebooks/src...nsearch/notebooks/model
opensearch-notebooks/src...nsearch/notebooks/model
DeleteNotebookRequest.kt
GetNotebookRequest.kt
74:101 (32%)
74:101 (32%)
view
11 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
473:485 (1%)
659:671 (1%)
view
11 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
473:485 (1%)
610:622 (1%)
view
11 x 2 opensearch-notebooks/src...nsearch/notebooks/model
opensearch-notebooks/src...nsearch/notebooks/model
CreateNotebookResponse.kt
DeleteNotebookResponse.kt
47:60 (36%)
47:60 (36%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 dashboards-notebooks/server/helpers
dashboards-notebooks/server/helpers
sample_notebooks.ts
sample_notebooks.ts
314:323 
431:440 
view