<commit_before># sbt-redis-plugin [![Build Status](https://travis-ci.org/fmonniot/sbt-redis-plugin.svg?branch=master)](https://travis-ci.org/fmonniot/sbt-redis-plugin)

_Coming Soon_<commit_msg>Quick usage section for the README<commit_after># sbt-redis-plugin [![Build Status](https://travis-ci.org/fmonniot/sbt-redis-plugin.svg?branch=master)](https://travis-ci.org/fmonniot/sbt-redis-plugin)

_Coming Soon_

## Usage

Add this snippet to your `project/plugins.sbt`

```scala
resolvers += Resolver.url("fmonniot", url("https://dl.bintray.com/fmonniot/sbt-plugins"))(Resolver.ivyStylePatterns)

addSbtPlugin("eu.monniot.redis" % "redis-plugin" % "0.1.1")
```

You can now configure the plugin:

```scala
import redis.embedded.util.{Architecture, OS}

// [Optional] Configure a redis binary matrix
redisBinaries := Seq(
  (("3.0.7", OS.UNIX, Architecture.x86_64), "/path/to/the/correct/redis-server")
)

// Launch a server and a cluster
redisInstances := Seq(
  RedisInstance("3.0.7", RedisInstance.SERVER, Seq(7894)),
  RedisInstance("3.0.7", RedisInstance.CLUSTER, Seq(7895, 7896, 7897))
)
```
{'fraction_non_alphanumeric': 0.1780821917808219, 'fraction_numerical': 0.029223744292237442, 'mean_word_length': 5.335260115606936, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '5840581', 'n_tokens_mistral': 457, 'n_tokens_neox': 432, 'n_words': 68}