<commit_before># Elementary::Rpc

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'elementary-rpc'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install elementary-rpc

## Usage
<commit_msg>Update the README with some actual information about wtf is going on here<commit_after># Elementary RPC

Elementary RPC is a basic
[Protobuf](https://developers.google.com/protocol-buffers/docs/overview) HTTP
RPC gem which aims to provide:

 * Easy RPC usage
 * Parallelism by default
 * An easily extended RPC request pipeline

### Sample Usage

For the following Protobuf RPC service definition:

```
package echoserv;

message String {
  required string data  = 1;
  optional int64 status = 2;
}

service Simple {
  rpc Echo (String) returns (String);
  rpc Reverse (String) returns (String);
}
```

A corresponding Ruby client might look something like this:

```ruby

require 'elementary/connection'

get '/restful/echo/:str' do |str|
  # Create our Connection object that knows about our Protobuf service
  # definition
  c = Elementary::Connection.new(Echoserv::Simple)
  # Create a Protobuf message to send over RPC
  msg = Echoserv::String.new(:data => str)


  echoed = c.rpc.echo(msg) # => Elementary::Future
  reversed = c.rpc.reverse(msg) # => Elementary::Future

  # Twiddle our thumbs doing other things

  status 200
  content_type :json

  {
    :echoed => echoed.value,
    :reversed => reversed.value,
  }.to_json
end
```

## Installation

Add this line to your application's Gemfile:

    gem 'elementary-rpc'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install elementary-rpc

## Usage

{'fraction_non_alphanumeric': 0.09266862170087976, 'fraction_numerical': 0.004105571847507331, 'mean_word_length': 3.846590909090909, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '5461495', 'n_tokens_mistral': 547, 'n_tokens_neox': 501, 'n_words': 188}