<commit_before># **Slingshot** is a rich and comfortable Ruby API and DSL for the
# [_ElasticSearch_](http://www.elasticsearch.org/) search engine/database.
#
# _ElasticSearch_ is a scalable, distributed, highly-available,
# RESTful database communicating by JSON over HTTP, based on [Lucene](http://lucene.apache.org/),
# written in Java. It manages to be very simple and very powerful at the same time.
#
# By following these instructions you should have the search running
# on a sane operation system in less then 10 minutes.

#### Installation

# Install Slingshot with Rubygems.
#
#     gem install slingshot-rb
#
require 'rubygems'
require 'slingshot'

#### Prerequisites

# You'll need a working and running _ElasticSearch_ server. Thankfully, that's easy.
( puts <<-"INSTALL" ; exit(1) ) unless RestClient.get('http://localhost:9200') rescue false
 [!] You don’t appear to have ElasticSearch installed. Please install and launch it with the following commands.
 curl -k -L -o elasticsearch-0.15.0.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.15.0.tar.gz
 tar -zxvf elasticsearch-0.15.0.tar.gz
 ./elasticsearch-0.15.0/bin/elasticsearch -f
INSTALL<commit_msg>[DOC] Updated install instructions in website docs to 0.15.2 release<commit_after># **Slingshot** is a rich and comfortable Ruby API and DSL for the
# [_ElasticSearch_](http://www.elasticsearch.org/) search engine/database.
#
# _ElasticSearch_ is a scalable, distributed, highly-available,
# RESTful database communicating by JSON over HTTP, based on [Lucene](http://lucene.apache.org/),
# written in Java. It manages to be very simple and very powerful at the same time.
#
# By following these instructions you should have the search running
# on a sane operation system in less then 10 minutes.

#### Installation

# Install Slingshot with Rubygems.
#
#     gem install slingshot-rb
#
require 'rubygems'
require 'slingshot'

#### Prerequisites

# You'll need a working and running _ElasticSearch_ server. Thankfully, that's easy.
( puts <<-"INSTALL" ; exit(1) ) unless RestClient.get('http://localhost:9200') rescue false
 [!] You don’t appear to have ElasticSearch installed. Please install and launch it with the following commands.
 curl -k -L -o elasticsearch-0.15.2.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.15.2.tar.gz
 tar -zxvf elasticsearch-0.15.2.tar.gz
 ./elasticsearch-0.15.2/bin/elasticsearch -f
INSTALL
{'fraction_non_alphanumeric': 0.10835030549898167, 'fraction_numerical': 0.020366598778004074, 'mean_word_length': 4.506726457399103, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '483872', 'n_tokens_mistral': 758, 'n_tokens_neox': 720, 'n_words': 262}