<commit_before># YogaPants

A lightweight ElasticSearch ruby gem.

## Features

* Super light-weight, super flexible
* No DSL for queries; only hashes
* Bulk indexing
* Threadsafe
* Handle a list of servers and fallback to other ones
* A solid base to build more complex ES libraries on top of.

## Ruby compatibility

* 1.9.3
* rbx-18mode
* rbx-19mode
* ree

JRuby will probably be supported down the track when I allow other HTTP libraries since it's failing due to httpclient wanting openssl.

## Build status

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

## Installation

Add this line to your application's Gemfile:

    gem 'yoga_pants'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install yoga_pants

## Usage<commit_msg>Update compatibility to reflect 2.0 and JRuby<commit_after># YogaPants

A lightweight ElasticSearch ruby gem.

## Features

* Super light-weight, super flexible
* No DSL for queries; only hashes
* Bulk indexing
* Threadsafe
* Handle a list of servers and fallback to other ones
* A solid base to build more complex ES libraries on top of.

## Ruby compatibility

* 1.9.3
* 2.0.0
* JRuby 1.7.4

JRuby will probably be supported down the track when I allow other HTTP libraries since it's failing due to httpclient wanting openssl.

## Build status

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

## Installation

Add this line to your application's Gemfile:

    gem 'yoga_pants'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install yoga_pants

## Usage
{'fraction_non_alphanumeric': 0.0829326923076923, 'fraction_numerical': 0.010817307692307692, 'mean_word_length': 3.940652818991098, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1902912', 'n_tokens_mistral': 557, 'n_tokens_neox': 517, 'n_words': 201}