<commit_before># health_graph

[![Build
Status](https://travis-ci.org/endoze/health_graph.png?branch=master")](https://travis-ci.org/endoze/health_graph)
[![Dependency
Status](https://gemnasium.com/endoze/health_graph.png)](https://gemnasium.com/endoze/health_graph)
[![Coverage
Status](https://coveralls.io/repos/endoze/health_graph/badge.png?branch=master)](https://coveralls.io/r/endoze/health_graph?branch=master)
[![Code
Climate](https://codeclimate.com/github/endoze/health_graph.png)](https://codeclimate.com/github/endoze/health_graph)

Ruby gem to work with RunKeeper Health Graph API.  More information about RunKeeper Health Graph API http://developer.runkeeper.com/healthgraph.

## Usage

### Authentication

```ruby
HealthGraph.configure do |config|
  config.client_id = [YOUR HEALTH GRAPH CLIENT ID]
  config.client_secret = [YOUR HEALTH GRAPH CLIENT SECRET]
  config.authorization_redirect_url = [PAGE TO REDIRECT THE USER TO AFTER AUTH]
end

auth_url = HealthGraph.authorize_url

access_token = HealthGraph.access_token(auth_code)
```<commit_msg>Remove a double quote<commit_after># health_graph

[![Build
Status](https://travis-ci.org/endoze/health_graph.png?branch=master)](https://travis-ci.org/endoze/health_graph)
[![Dependency
Status](https://gemnasium.com/endoze/health_graph.png)](https://gemnasium.com/endoze/health_graph)
[![Coverage
Status](https://coveralls.io/repos/endoze/health_graph/badge.png?branch=master)](https://coveralls.io/r/endoze/health_graph?branch=master)
[![Code
Climate](https://codeclimate.com/github/endoze/health_graph.png)](https://codeclimate.com/github/endoze/health_graph)

Ruby gem to work with RunKeeper Health Graph API.  More information about RunKeeper Health Graph API http://developer.runkeeper.com/healthgraph.

## Usage

### Authentication

```ruby
HealthGraph.configure do |config|
  config.client_id = [YOUR HEALTH GRAPH CLIENT ID]
  config.client_secret = [YOUR HEALTH GRAPH CLIENT SECRET]
  config.authorization_redirect_url = [PAGE TO REDIRECT THE USER TO AFTER AUTH]
end

auth_url = HealthGraph.authorize_url

access_token = HealthGraph.access_token(auth_code)
```
{'fraction_non_alphanumeric': 0.1365556076959174, 'fraction_numerical': 0.0, 'mean_word_length': 6.301369863013699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 16, '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': '2419659', 'n_tokens_mistral': 754, 'n_tokens_neox': 712, 'n_words': 121}