<commit_before># mozilla-basket

`npm install mozilla-basket`

API wrapper around mozilla's [basket newsletter api](http://basket.readthedocs.org/en/latest/newsletter_api.html)

## Usage

``` javascript
// instantiate
var b = new Basket({BASKET_URL: 'https://basket.mozilla.org'});
b.subscribe('<EMAIL>', 'marketplace, beta', function(err, body) {
  console.log(body.status);
}
```
Methods:
* subscribe - subscribe to newsletters
* unsubscribe - unsubscribe from newsletters
* user - post user info (token required)
* newsletters - return newsletters data
* debugUser - (requires supertoken)
* lookupUser - check if user is on list (requires apikey)
* recover - send user a password recovery email.

## existing work

[python client](http://basket-client.readthedocs.org/en/latest/install.html)

## Who is responsible for this?
- <EMAIL> / [@meandavejustice](https:github.com/meandavejustice]) / JSON_voorhees(irc)

## LICENSE
MPL 2.0
<commit_msg>Fix a github link<commit_after># mozilla-basket

`npm install mozilla-basket`

API wrapper around mozilla's [basket newsletter api](http://basket.readthedocs.org/en/latest/newsletter_api.html)

## Usage

``` javascript
// instantiate
var b = new Basket({BASKET_URL: 'https://basket.mozilla.org'});
b.subscribe('<EMAIL>', 'marketplace, beta', function(err, body) {
  console.log(body.status);
}
```
Methods:
* subscribe - subscribe to newsletters
* unsubscribe - unsubscribe from newsletters
* user - post user info (token required)
* newsletters - return newsletters data
* debugUser - (requires supertoken)
* lookupUser - check if user is on list (requires apikey)
* recover - send user a password recovery email.

## existing work

[python client](http://basket-client.readthedocs.org/en/latest/install.html)

## Who is responsible for this?
- <EMAIL> / [@meandavejustice](https://github.com/meandavejustice) / JSON_voorhees(irc)

## LICENSE
MPL 2.0

{'fraction_non_alphanumeric': 0.13428120063191154, 'fraction_numerical': 0.00210637177461822, 'mean_word_length': 4.900621118012422, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, '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': '3535428', 'n_tokens_mistral': 657, 'n_tokens_neox': 597, 'n_words': 161}