<commit_before>Shock
=====
[![Build Status](https://travis-ci.org/benjamin-guillet/shock.png)](https://travis-ci.org/benjamin-guillet/shock)
[![Code Climate](https://codeclimate.com/repos/51f2920c89af7e6c1a04c8b2/badges/83ef561e56458e5d4c36/gpa.png)](https://codeclimate.com/repos/51f2920c89af7e6c1a04c8b2/feed)

A simple JSON REST API to fetch data about earthquakes.

### Setup
Get a local copy of  the repo:

    git clone https://github.com/benjamin-guillet/shock.git

Install all the required gems:

    bundle install

Create database:    

    rake db:migrate
    
Fill the database:

    rake earthquake:import

Start web server (unicorn):

    foreman start

Launch specs:
    
    rake spec

### Usage<commit_msg>Update code climate status image.<commit_after>Shock
=====
[![Build Status](https://travis-ci.org/benjamin-guillet/shock.png)](https://travis-ci.org/benjamin-guillet/shock)
[![Code Climate](https://codeclimate.com/github/benjamin-guillet/shock.png)](https://codeclimate.com/github/benjamin-guillet/shock)

A simple JSON REST API to fetch data about earthquakes.

### Setup
Get a local copy of  the repo:

    git clone https://github.com/benjamin-guillet/shock.git

Install all the required gems:

    bundle install

Create database:    

    rake db:migrate
    
Fill the database:

    rake earthquake:import

Start web server (unicorn):

    foreman start

Launch specs:
    
    rake spec

### Usage
{'fraction_non_alphanumeric': 0.11983181499649614, 'fraction_numerical': 0.030833917309039945, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '2664172', 'n_tokens_mistral': 541, 'n_tokens_neox': 475, 'n_words': 109}