opensearch-project / opensearch-js
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 70 files with 6,621 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,076 lines of code)
    • 9 medium size files (2,638 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,142 lines of code)
    • 51 very small files (1,765 lines of code)
0% | 16% | 39% | 17% | 26%
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
js0% | 16% | 40% | 17% | 26%
mjs0% | 0% | 0% | 0% | 100%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
lib0% | 70% | 17% | 8% | 4%
api/api0% | 0% | 36% | 12% | 51%
scripts/utils0% | 0% | 78% | 13% | 8%
ROOT0% | 0% | 84% | 0% | 15%
api0% | 0% | 86% | 0% | 13%
lib/pool0% | 0% | 0% | 90% | 9%
scripts0% | 0% | 0% | 70% | 29%
Longest Files (Top 50)
File# lines# units
Helpers.js
in lib
566 31
Transport.js
in lib
510 9
generateApis.js
in scripts/utils
446 19
cat.js
in api/api
368 1
snapshot.js
in api/api
309 1
cluster.js
in api/api
294 1
Connection.js
in lib
262 9
index.js
in root
257 8
generateMain.js
in scripts/utils
243 9
generateDocs.js
in scripts/utils
241 7
index.js
in api
218 1
nodes.js
in api/api
194 1
generateRequestTypes.js
in scripts/utils
157 5
BaseConnectionPool.js
in lib/pool
148 2
ConnectionPool.js
in lib/pool
146 -
download-artifacts.js
in scripts
134 11
ingest.js
in api/api
132 1
errors.js
in lib
123 3
generate.js
in scripts
108 4
release-canary.js
in scripts
99 7
clone-opensearch.js
in scripts/utils
87 7
shutdown.js
in api/api
76 1
dangling_indices.js
in api/api
67 1
Serializer.js
in lib
66 -
tasks.js
in api/api
63 1
features.js
in api/api
43 1
exists_source.js
in api/api
40 1
index.js
in api/api
39 1
delete_by_query.js
in api/api
37 1
put_script.js
in api/api
37 1
create.js
in api/api
37 1
update.js
in api/api
37 1
mjs
index.mjs
in root
37 -
search_template.js
in api/api
36 1
bulk.js
in api/api
36 1
msearch.js
in api/api
36 1
mget.js
in api/api
36 1
msearch_template.js
in api/api
36 1
termvectors.js
in api/api
35 1
get.js
in api/api
33 1
explain.js
in api/api
33 1
get_source.js
in api/api
33 1
delete.js
in api/api
33 1
update_by_query.js
in api/api
33 1
exists.js
in api/api
33 1
utils.js
in api
33 4
count.js
in api/api
32 1
mtermvectors.js
in api/api
32 1
rank_eval.js
in api/api
29 1
reindex_rethrottle.js
in api/api
28 1
Files With Most Units (Top 20)
File# lines# units
Helpers.js
in lib
566 31
generateApis.js
in scripts/utils
446 19
download-artifacts.js
in scripts
134 11
Connection.js
in lib
262 9
Transport.js
in lib
510 9
generateMain.js
in scripts/utils
243 9
index.js
in root
257 8
release-canary.js
in scripts
99 7
generateDocs.js
in scripts/utils
241 7
clone-opensearch.js
in scripts/utils
87 7
generateRequestTypes.js
in scripts/utils
157 5
utils.js
in api
33 4
generate.js
in scripts
108 4
errors.js
in lib
123 3
BaseConnectionPool.js
in lib/pool
148 2
delete_by_query.js
in api/api
37 1
get.js
in api/api
33 1
explain.js
in api/api
33 1
get_script_context.js
in api/api
20 1
terms_enum.js
in api/api
24 1
Files With Long Lines (Top 20)

There are 38 files with lines longer than 120 characters. In total, there are 144 long lines.

File# lines# units# long lines
generateDocs.js
in scripts/utils
241 7 28
generateMain.js
in scripts/utils
243 9 22
nodes.js
in api/api
194 1 8
Transport.js
in lib
510 9 6
snapshot.js
in api/api
309 1 6
dangling_indices.js
in api/api
67 1 5
cluster.js
in api/api
294 1 4
explain.js
in api/api
33 1 3
termvectors.js
in api/api
35 1 3
get_source.js
in api/api
33 1 3
create.js
in api/api
37 1 3
exists_source.js
in api/api
40 1 3
update.js
in api/api
37 1 3
Helpers.js
in lib
566 31 2
delete_by_query.js
in api/api
37 1 2
get.js
in api/api
33 1 2
rank_eval.js
in api/api
29 1 2
cat.js
in api/api
368 1 2
search_template.js
in api/api
36 1 2
count.js
in api/api
32 1 2