opensearch-project / dashboards-notebooks
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 83 files with 8,652 lines of code.
    • 1 very long files (1,196 lines of code)
    • 1 long files (958 lines of code)
    • 8 medium size files (2,487 lines of codeclsfd_ftr_w_mp_ins)
    • 12 small files (1,828 lines of code)
    • 61 very small files (2,183 lines of code)
13% | 11% | 28% | 21% | 25%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts42% | 0% | 25% | 14% | 17%
tsx0% | 30% | 39% | 18% | 11%
kt0% | 0% | 21% | 28% | 49%
java0% | 0% | 0% | 100% | 0%
yml0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
scss0% | 0% | 0% | 0% | 100%
policy0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
dashboards-notebooks/server/helpers95% | 0% | 0% | 0% | 4%
dashboards-notebooks/public/components0% | 30% | 39% | 18% | 11%
dashboards-notebooks/server/adaptors0% | 0% | 84% | 0% | 15%
opensearch-notebooks/src/main0% | 0% | 21% | 28% | 50%
dashboards-notebooks/server/routes0% | 0% | 0% | 81% | 18%
dashboards-notebooks/poc/zeppelin0% | 0% | 0% | 100% | 0%
dashboards-notebooks/public0% | 0% | 0% | 0% | 100%
dashboards-notebooks/server/services0% | 0% | 0% | 0% | 100%
dashboards-notebooks/common0% | 0% | 0% | 0% | 100%
dashboards-notebooks/server0% | 0% | 0% | 0% | 100%
dashboards-notebooks/server/clusters0% | 0% | 0% | 0% | 100%
opensearch-notebooks0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
sample_notebooks.ts
in dashboards-notebooks/server/helpers
1196 22
notebook.tsx
in dashboards-notebooks/public/components
958 12
default_backend.ts
in dashboards-notebooks/server/adaptors
447 2
paragraphs.tsx
in dashboards-notebooks/public/components/paragraph_components
441 1
note_table.tsx
in dashboards-notebooks/public/components
332 1
zeppelin_backend.ts
in dashboards-notebooks/server/adaptors
282 -
main.tsx
in dashboards-notebooks/public/components
266 1
PluginSettings.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/settings
264 2
Notebook.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
253 8
reporting_context_menu_helper.tsx
in dashboards-notebooks/public/components/helpers
202 2
paraRouter.ts
in dashboards-notebooks/server/routes
200 1
noteRouter.ts
in dashboards-notebooks/server/routes
199 1
para_input.tsx
in dashboards-notebooks/public/components/paragraph_components
183 -
OpenSearchNotebookRepo.java
in dashboards-notebooks/poc/zeppelin/zeppelin-plugins/notebookrepo/opensearch/src/main/java/org/apache/zeppelin/notebook/repo
172 14
modal_containers.tsx
in dashboards-notebooks/public/components/helpers
159 -
SecureIndexClient.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/util
156 30
NotebooksIndex.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/index
151 6
SearchResults.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
131 1
para_output.tsx
in dashboards-notebooks/public/components/paragraph_components
129 -
UserAccessManager.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/security
126 7
NotebookActions.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/action
121 5
default_parser.tsx
in dashboards-notebooks/public/components/helpers
101 -
para_query_grid.tsx
in dashboards-notebooks/public/components/paragraph_components
98 -
zeppelin_parser.tsx
in dashboards-notebooks/public/components/helpers
98 -
NotebookDetails.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
89 1
NotebooksPlugin.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks
84 4
PluginBaseAction.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/action
79 1
NotebookRestHandler.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/resthandler
72 4
GetAllNotebooksRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
72 4
UpdateNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
68 3
notebook_adaptor.ts
in dashboards-notebooks/server/adaptors
66 -
reporting_loading_modal.tsx
in dashboards-notebooks/public/components/helpers/custom_modals
65 -
opensearch_notebooks_plugin.ts
in dashboards-notebooks/server/adaptors
64 1
CreateNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
60 3
GetNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
59 2
DeleteNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
59 3
GetNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
59 3
index.ts
in dashboards-notebooks/common
56 -
custom_input_modal.tsx
in dashboards-notebooks/public/components/helpers/custom_modals
53 -
UpdateNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
DeleteNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
CreateNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
NotebookListRestHandler.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/resthandler
47 4
Helpers.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/util
46 -
plugin.ts
in dashboards-notebooks/server
41 4
queryService.ts
in dashboards-notebooks/server/services
41 1
sqlRouter.ts
in dashboards-notebooks/server/routes
41 1
sqlPlugin.js
in dashboards-notebooks/server/clusters/sql
39 1
vizRouter.ts
in dashboards-notebooks/server/routes
37 1
GetAllNotebooksResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
35 2
Files With Most Units (Top 20)
File# lines# units
SecureIndexClient.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/util
156 30
sample_notebooks.ts
in dashboards-notebooks/server/helpers
1196 22
OpenSearchNotebookRepo.java
in dashboards-notebooks/poc/zeppelin/zeppelin-plugins/notebookrepo/opensearch/src/main/java/org/apache/zeppelin/notebook/repo
172 14
notebook.tsx
in dashboards-notebooks/public/components
958 12
Notebook.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
253 8
UserAccessManager.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/security
126 7
NotebooksIndex.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/index
151 6
NotebookActions.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/action
121 5
NotebooksPlugin.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks
84 4
NotebookListRestHandler.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/resthandler
47 4
NotebookRestHandler.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/resthandler
72 4
GetAllNotebooksRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
72 4
plugin.ts
in dashboards-notebooks/public
27 4
plugin.ts
in dashboards-notebooks/server
41 4
UpdateNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
68 3
UpdateNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
DeleteNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
DeleteNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
59 3
CreateNotebookResponse.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
49 3
CreateNotebookRequest.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/model
60 3
Files With Long Lines (Top 17)

There are 17 files with lines longer than 120 characters. In total, there are 95 long lines.

File# lines# units# long lines
sample_notebooks.ts
in dashboards-notebooks/server/helpers
1196 22 59
noteRouter.ts
in dashboards-notebooks/server/routes
199 1 7
paraRouter.ts
in dashboards-notebooks/server/routes
200 1 7
paragraphs.tsx
in dashboards-notebooks/public/components/paragraph_components
441 1 4
notebook.tsx
in dashboards-notebooks/public/components
958 12 4
PluginBaseAction.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/action
79 1 2
OpenSearchNotebookRepo.java
in dashboards-notebooks/poc/zeppelin/zeppelin-plugins/notebookrepo/opensearch/src/main/java/org/apache/zeppelin/notebook/repo
172 14 2
UserAccessManager.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/security
126 7 1
RestResponseToXContentListener.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/resthandler
10 1 1
NotebooksIndex.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/index
151 6 1
SecureIndexClient.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/util
156 30 1
Helpers.kt
in opensearch-notebooks/src/main/kotlin/org/opensearch/notebooks/util
46 - 1
index.scss
in dashboards-notebooks/public
19 - 1
para_input.tsx
in dashboards-notebooks/public/components/paragraph_components
183 - 1
modal_containers.tsx
in dashboards-notebooks/public/components/helpers
159 - 1
note_table.tsx
in dashboards-notebooks/public/components
332 1 1
default_backend.ts
in dashboards-notebooks/server/adaptors
447 2 1