<commit_before># Sparkle

API for generating sparklines as PNG, JPG and GIFs.

## Usage

Use the file extension of your desired file type in the URL.
Add the values as a comma-separated list, e.g.

https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5

The following optional query string parameters are available.

parameter | default| purpose				            		   |  
----------|--------|-----------------------------------|
line_color| 4A8FED | color of line			        		   |
height    | 30     | height of image in pixels		     |
step	    | 30     | distance between steps in pixels  |

These can be included in the query string, e.g.

https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5&height=150&line_color=F3F




## Development

Requires [ImageMagick](http://www.imagemagick.org/) >= 6.4.9.

```bash
bundle
bundle exec shotgun
```

Then open [http://localhost:9393/api/v1.png?values=1,4,5,3,2,5](http://localhost:9393/api/v1.png?values=1,4,5,3,2,5).

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)<commit_msg>clean up usage section of README<commit_after># Sparkle

API for generating sparklines as PNG, JPG and GIFs.

## Usage

Use the file extension of your desired file type in the URL.

https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5

The following query string parameters are available:

parameter | default | purpose  
----------|---------|-----------------------------------
values    |         | (required) comma-separated list of values to graph
line_color| 4A8FED  | color of line			        		   
height    | 30      | height of image in pixels		     
step	    | 30      | distance between steps in pixels  

Example:

https://sparklines.herokuapp.com/api/v1.png?values=1,4,5,3,2,5&height=150&line_color=F3F

## Development

Requires [ImageMagick](http://www.imagemagick.org/) >= 6.4.9.

```bash
bundle
bundle exec shotgun
```

Then open [http://localhost:9393/api/v1.png?values=1,4,5,3,2,5](http://localhost:9393/api/v1.png?values=1,4,5,3,2,5).

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
{'fraction_non_alphanumeric': 0.1834040546911834, 'fraction_numerical': 0.0462046204620462, 'mean_word_length': 2.8864468864468864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, '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': '36300', 'n_tokens_mistral': 800, 'n_tokens_neox': 729, 'n_words': 167}