<commit_before>#Retriable

[![Build Status](https://secure.travis-ci.org/kamui/retriable.png)](http://travis-ci.org/kamui/retriable)

Retriable is an simple DSL to retry failed code blocks with randomized [exponential backoff](http://en.wikipedia.org/wiki/Exponential_backoff) time intervals. This is especially useful when interacting external api/services or file system calls.

## Requirements

Ruby 2.0+

If you need 1.9.x support, use the [1.x branch](https://github.com/kamui/retriable/tree/1.x).

WARNING: 2.x isn't API compatible with 1.x.

## Installation

via command line:

```ruby
gem install retriable
```

In your ruby script:

```ruby
require 'retriable', '~> 2.0'
```

In your Gemfile:

```ruby
gem 'retriable'<commit_msg>oops, meant to put the version in the Gemfile, not the ruby script, closes #7<commit_after>#Retriable

[![Build Status](https://secure.travis-ci.org/kamui/retriable.png)](http://travis-ci.org/kamui/retriable)

Retriable is an simple DSL to retry failed code blocks with randomized [exponential backoff](http://en.wikipedia.org/wiki/Exponential_backoff) time intervals. This is especially useful when interacting external api/services or file system calls.

## Requirements

Ruby 2.0+

If you need 1.9.x support, use the [1.x branch](https://github.com/kamui/retriable/tree/1.x).

WARNING: 2.x isn't API compatible with 1.x.

## Installation

via command line:

```ruby
gem install retriable
```

In your ruby script:

```ruby
require 'retriable'
```

In your Gemfile:

```ruby
gem 'retriable', '~> 2.0'
{'fraction_non_alphanumeric': 0.13246753246753246, 'fraction_numerical': 0.013636363636363636, 'mean_word_length': 4.644688644688645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '390933', 'n_tokens_mistral': 565, 'n_tokens_neox': 522, 'n_words': 157}