<commit_before># TestKafka

Minimal Kafka 0.8 runner suitable for integration testing.

Adapted from the excellent [poseidon](https://github.com/bpot/poseidon)'s integration tests.

## Installation

Add TestKafka to your application's Gemfile:

```ruby
gem 'test_kafka'
```

and bundle:

    $ bundle

## Usage

```ruby
require 'test_kafka'

cluster = TestKafka.start('/usr/local/kafka')<commit_msg>Update README to reflect new version number<commit_after># TestKafka

Minimal Kafka 0.8 runner suitable for integration testing.

Adapted from the excellent [poseidon](https://github.com/bpot/poseidon)'s integration tests.

## Installation

Add TestKafka to your application's Gemfile:

```ruby
gem 'test_kafka', '~> 0.1.0'
```

and bundle:

    $ bundle

## Usage

```ruby
require 'test_kafka'

cluster = TestKafka.start('/usr/local/kafka')
{'fraction_non_alphanumeric': 0.12261904761904761, 'fraction_numerical': 0.008333333333333333, 'mean_word_length': 4.881118881118881, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '2668262', 'n_tokens_mistral': 298, 'n_tokens_neox': 278, 'n_words': 78}