<commit_before># sixpack-client

Node / Browser library for the SeatGeek's Sixpack AB testing framework.

## Installation

Include the "lib/sixpack.js" script. The `sixpack` object will be added to your environment. In the browser do the following:

``` html
<script src="sixpack.js"></script>
```

or if you're using sixpack-client with node.js

	$ npm -g install sixpack-client

Then require the "sixpack" module:

``` javascript
var sixpack = require("sixpack");
```

## Usage

Check out the examples in the `examples` directory for some quick examples for how to use the library. Note that when using in the browser callbacks only take a single parameter: the response. When using in node they take two: an error and response.<commit_msg>minor<commit_after># sixpack-client

Node / Browser library for the SeatGeek's Sixpack AB testing framework.

## Installation

Include the "lib/sixpack.js" script. The `sixpack` object will be added to your environment. In the browser do the following:

``` html
<script src="sixpack.js"></script>
```

or if you're using sixpack-client with node.js

	$ npm install sixpack-client

Then require the "sixpack" module:

``` javascript
var sixpack = require("sixpack");
```

## Usage

Check out the examples in the `examples` directory for some quick examples for how to use the library. Note that when using in the browser callbacks only take a single parameter: the response. When using in node they take two: an error and response.
{'fraction_non_alphanumeric': 0.08621860149355058, 'fraction_numerical': 0.0, 'mean_word_length': 4.479553903345725, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '7259566', 'n_tokens_mistral': 425, 'n_tokens_neox': 397, 'n_words': 198}