<commit_before># **leo_rpc**

An original rpc library, interface of which is similar to Erlang's RPC. Aim to connect with over 100 nodes.

## Usage

```erl-sh
%% Start "leo_rpc"
1> application:start(leo_rpc).

%% Execute rpc-call to a remote-node
2> leo_rpc:call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['a',[{'a',1},{'b',2},{'c',3}], <<"DEFAULT">> ]).
1
3> leo_rpc:call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['d',[{'a',1},{'b',2},{'c',3}], <<"DEFAULT">> ]).
<<"DEFAULT">>

%% Execute async rpc-call to a remote-node
5> RPCKey1 = leo_rpc:async_call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['a',[{'a',1},{'b',2},{'c',3}], <<"123">> ]).
<0.138.0>
6> leo_rpc:nb_yield(RPCKey1).
{value,1}

%% Execute multi-call to plural nodes
7> leo_rpc:multicall(['node_0@10.0.101.1', 'node_1@10.0.101.2'], 'leo_date', 'clock', []).
{[1373550225871064, 1373550225871067],[]}

8> leo_rpc:status().
{ok,[{'node_0@127.0.0.1',"127.0.0.1",13075,0,8}]}

9> leo_rpc:node().
'node_0@127.0.0.1'

10> leo_rpc:nodes().
['node_0@10.0.101.1', 'node_1@10.0.101.2']

```

## License

leo_pod's license is "Apache License Version 2.0"
<commit_msg>Fix a wrong lib name<commit_after># **leo_rpc**

An original rpc library, interface of which is similar to Erlang's RPC. Aim to connect with over 100 nodes.

## Usage

```erl-sh
%% Start "leo_rpc"
1> application:start(leo_rpc).

%% Execute rpc-call to a remote-node
2> leo_rpc:call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['a',[{'a',1},{'b',2},{'c',3}], <<"DEFAULT">> ]).
1
3> leo_rpc:call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['d',[{'a',1},{'b',2},{'c',3}], <<"DEFAULT">> ]).
<<"DEFAULT">>

%% Execute async rpc-call to a remote-node
5> RPCKey1 = leo_rpc:async_call('node_0@127.0.0.1', 'leo_misc', 'get_value', ['a',[{'a',1},{'b',2},{'c',3}], <<"123">> ]).
<0.138.0>
6> leo_rpc:nb_yield(RPCKey1).
{value,1}

%% Execute multi-call to plural nodes
7> leo_rpc:multicall(['node_0@10.0.101.1', 'node_1@10.0.101.2'], 'leo_date', 'clock', []).
{[1373550225871064, 1373550225871067],[]}

8> leo_rpc:status().
{ok,[{'node_0@127.0.0.1',"127.0.0.1",13075,0,8}]}

9> leo_rpc:node().
'node_0@127.0.0.1'

10> leo_rpc:nodes().
['node_0@10.0.101.1', 'node_1@10.0.101.2']

```

## License

leo_rpc's license is "Apache License Version 2.0"

{'fraction_non_alphanumeric': 0.2717247463608293, 'fraction_numerical': 0.1305690339655933, 'mean_word_length': 5.6902654867256635, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 20, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '273158', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1086, 'n_words': 190}