<commit_before># DiceBox

![Dice Box](https://raw.githubusercontent.com/rafaelgonzalez/dice_box/master/dice.jpg)

[![Build Status](https://travis-ci.org/rafaelgonzalez/dice_box.svg?branch=master)](https://travis-ci.org/rafaelgonzalez/dice_box)
[![Code Climate](https://codeclimate.com/github/rafaelgonzalez/dice_box.png)](https://codeclimate.com/github/rafaelgonzalez/dice_box)
[![Test Coverage](https://codeclimate.com/github/rafaelgonzalez/dice_box/coverage.png)](https://codeclimate.com/github/rafaelgonzalez/dice_box)

A gem of dices, to get rolling with Ruby.

## Installation

Add this line to your application's Gemfile:

    gem 'dice_box'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dice_box

## Usage

### Rolling dices

**Without instantiating**

```ruby
# Roll a dice with 7 sides<commit_msg>Add supported ruby versions to README<commit_after># DiceBox

![Dice Box](https://raw.githubusercontent.com/rafaelgonzalez/dice_box/master/dice.jpg)

[![Build Status](https://travis-ci.org/rafaelgonzalez/dice_box.svg?branch=master)](https://travis-ci.org/rafaelgonzalez/dice_box)
[![Code Climate](https://codeclimate.com/github/rafaelgonzalez/dice_box.png)](https://codeclimate.com/github/rafaelgonzalez/dice_box)
[![Test Coverage](https://codeclimate.com/github/rafaelgonzalez/dice_box/coverage.png)](https://codeclimate.com/github/rafaelgonzalez/dice_box)

A gem of dices, to get rolling with Ruby.

**Supported Ruby versions:**

- 2.1.0
- 2.0.0
- 1.9.3

## Installation

Add this line to your application's Gemfile:

    gem 'dice_box'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install dice_box

## Usage

### Rolling dices

**Without instantiating**

```ruby
# Roll a dice with 7 sides
{'fraction_non_alphanumeric': 0.14326321773735076, 'fraction_numerical': 0.0062535531552018195, 'mean_word_length': 4.98639455782313, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, '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': '551201', 'n_tokens_mistral': 680, 'n_tokens_neox': 637, 'n_words': 116}