opensearch-project / opensearch-rs
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 57 files with 29,789 lines of code.
    • 5 very long files (18,971 lines of code)
    • 8 long files (5,005 lines of code)
    • 11 medium size files (3,405 lines of codeclsfd_ftr_w_mp_ins)
    • 8 small files (1,092 lines of code)
    • 25 very small files (1,316 lines of code)
63% | 16% | 11% | 3% | 4%
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
rs64% | 17% | 10% | 3% | 3%
toml0% | 0% | 69% | 0% | 30%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
opensearch/src85% | 8% | 3% | 1% | <1%
api_generator/src/generator0% | 44% | 46% | 0% | 9%
yaml_test_runner/src/step0% | 42% | 11% | 26% | 18%
opensearch/src/root0% | 100% | 0% | 0% | 0%
yaml_test_runner/src0% | 61% | 0% | 17% | 20%
opensearch/src/http0% | 0% | 91% | 0% | 8%
ROOT0% | 0% | 98% | 0% | 2%
opensearch0% | 0% | 0% | 0% | 100%
yaml_test_runner0% | 0% | 0% | 0% | 100%
api_generator/src/rest_spec0% | 0% | 0% | 0% | 100%
api_generator/src0% | 0% | 0% | 0% | 100%
api_generator0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
indices.rs
in opensearch/src
9536 -
cat.rs
in opensearch/src
3963 -
cluster.rs
in opensearch/src
2492 -
snapshot.rs
in opensearch/src
1966 -
nodes.rs
in opensearch/src
1014 -
do.rs
in yaml_test_runner/src/step
827 11
ingest.rs
in opensearch/src
770 -
request_builder.rs
in api_generator/src/generator/code_gen/request
723 11
tasks.rs
in opensearch/src
594 -
bulk.rs
in opensearch/src/root
538 11
mod.rs
in api_generator/src/generator
533 14
generator.rs
in yaml_test_runner/src
513 7
dangling_indices.rs
in opensearch/src
507 -
params.rs
in opensearch/src
435 15
url_builder.rs
in api_generator/src/generator/code_gen/url
403 21
enum_builder.rs
in api_generator/src/generator/code_gen/url
395 8
transport.rs
in opensearch/src/http
345 9
text_structure.rs
in opensearch/src
336 -
Makefile.toml
in root
294 -
mod.rs
in api_generator/src/generator/code_gen
275 18
response.rs
in opensearch/src/http
242 5
mod.rs
in yaml_test_runner/src/step
228 2
output.rs
in api_generator/src/generator
227 2
request.rs
in opensearch/src/http
225 24
cert.rs
in opensearch/src
183 2
match.rs
in yaml_test_runner/src/step
159 2
main.rs
in yaml_test_runner/src
148 2
lib.rs
in opensearch/src
138 9
skip.rs
in yaml_test_runner/src/step
127 2
transform_and_set.rs
in yaml_test_runner/src/step
126 3
error.rs
in opensearch/src
110 5
comparison.rs
in yaml_test_runner/src/step
101 3
github.rs
in yaml_test_runner/src
100 1
contains.rs
in yaml_test_runner/src/step
95 2
namespace_clients.rs
in api_generator/src/generator/code_gen
89 -
client.rs
in opensearch/src
83 -
length.rs
in yaml_test_runner/src/step
75 2
params.rs
in api_generator/src/generator/code_gen
75 1
set.rs
in yaml_test_runner/src/step
68 2
regex.rs
in yaml_test_runner/src
67 -
is_true.rs
in yaml_test_runner/src/step
66 2
mod.rs
in api_generator/src/rest_spec
64 1
is_false.rs
in yaml_test_runner/src/step
63 2
root.rs
in api_generator/src/generator/code_gen
55 -
build.rs
in opensearch
53 1
auth.rs
in opensearch/src
50 1
Cargo.toml
in opensearch
49 -
mod.rs
in opensearch/src/http
42 -
Cargo.toml
in yaml_test_runner
38 -
Cargo.toml
in api_generator
37 -
Files With Most Units (Top 20)
File# lines# units
request.rs
in opensearch/src/http
225 24
url_builder.rs
in api_generator/src/generator/code_gen/url
403 21
mod.rs
in api_generator/src/generator/code_gen
275 18
params.rs
in opensearch/src
435 15
mod.rs
in api_generator/src/generator
533 14
do.rs
in yaml_test_runner/src/step
827 11
bulk.rs
in opensearch/src/root
538 11
request_builder.rs
in api_generator/src/generator/code_gen/request
723 11
lib.rs
in opensearch/src
138 9
transport.rs
in opensearch/src/http
345 9
enum_builder.rs
in api_generator/src/generator/code_gen/url
395 8
generator.rs
in yaml_test_runner/src
513 7
error.rs
in opensearch/src
110 5
response.rs
in opensearch/src/http
242 5
transform_and_set.rs
in yaml_test_runner/src/step
126 3
comparison.rs
in yaml_test_runner/src/step
101 3
mod.rs
in yaml_test_runner/src/step
228 2
is_true.rs
in yaml_test_runner/src/step
66 2
match.rs
in yaml_test_runner/src/step
159 2
contains.rs
in yaml_test_runner/src/step
95 2
Files With Long Lines (Top 17)

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

File# lines# units# long lines
indices.rs
in opensearch/src
9536 - 200
cat.rs
in opensearch/src
3963 - 73
cluster.rs
in opensearch/src
2492 - 58
snapshot.rs
in opensearch/src
1966 - 34
nodes.rs
in opensearch/src
1014 - 18
tasks.rs
in opensearch/src
594 - 18
ingest.rs
in opensearch/src
770 - 13
dangling_indices.rs
in opensearch/src
507 - 12
text_structure.rs
in opensearch/src
336 - 10
Makefile.toml
in root
294 - 7
params.rs
in opensearch/src
435 15 5
bulk.rs
in opensearch/src/root
538 11 4
request_builder.rs
in api_generator/src/generator/code_gen/request
723 11 2
generator.rs
in yaml_test_runner/src
513 7 1
is_true.rs
in yaml_test_runner/src/step
66 2 1
main.rs
in yaml_test_runner/src
148 2 1
lib.rs
in opensearch/src
138 9 1