<commit_before># rabbit-service

This service leverages RabbitMQ and generators to create a simple, extensible service for messaging. Functionality is built on top of the [rabbit.js module](http://www.squaremobius.net/rabbit.js/).

- [Usage](#usage)
  - [Promises](#promises)
  - [Generators](#generators)
  - [Complex](https://github.com/johnhof/rabbit-service/tree/refactor/examples/complex)
- [Documentation](#documenation)
  - **TODO**

# Usage

## Promises

**[Full Source](https://github.com/johnhof/rabbit-service/blob/refactor/examples/promises.js)**

```javascript<commit_msg>cleanup<commit_after># rabbit-service

This service leverages RabbitMQ and generators to create a simple, extensible service for messaging. Functionality is built on top of the [rabbit.js module](http://www.squaremobius.net/rabbit.js/).

- [Usage](#usage)
  - [Promises](#promises)
  - [Generators](#generators)
  - [Complex](https://github.com/johnhof/rabbit-service/tree/refactor/examples/complex)
- [Documentation](#documentation)
  - **TODO**

# Usage

## Promises

**[Full Source](https://github.com/johnhof/rabbit-service/blob/refactor/examples/promises.js)**

```javascript
{'fraction_non_alphanumeric': 0.15793991416309014, 'fraction_numerical': 0.0, 'mean_word_length': 5.104712041884817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '436067', 'n_tokens_mistral': 398, 'n_tokens_neox': 358, 'n_words': 71}