<commit_before># Chai Spies

This is a addon plugin for the [chai](http://github.com/logicalparadox/chai) assertion library. It provides the 
most basic function spy ability and tests. Though useful for small modules, you are probably going to want something
more robust. Check out [jack]() for a full featured mock/stub/spy assertion library for use with chai.

This library is primarily meant to serve as a starting point for anyone interested in developing chai plugins. If
developing a module, you are welcome to use this as a starting point. I also encourage the use of the compile
tools to allow modules to work both in node.js and the browser.

## Installation

#### Node.js

Chai spies are available on npm.

      $ npm install chai-spies

#### Browser

Include `chai-spies.js` after including `chai.js`. <commit_msg>added link to jack project<commit_after># Chai Spies

This is a addon plugin for the [chai](http://github.com/logicalparadox/chai) assertion library. It provides the 
most basic function spy ability and tests. Though useful for small modules, you are probably going to want something
more robust. Check out [jack](http://github.com/vesln/jack) for a full featured mock/stub/spy assertion library for use with chai.

This library is primarily meant to serve as a starting point for anyone interested in developing chai plugins. If
developing a module, you are welcome to use this as a starting point. I also encourage the use of the compile
tools to allow modules to work both in node.js and the browser.

## Installation

#### Node.js

Chai spies are available on npm.

      $ npm install chai-spies

#### Browser

Include `chai-spies.js` after including `chai.js`. 
{'fraction_non_alphanumeric': 0.06497341996455995, 'fraction_numerical': 0.0, 'mean_word_length': 4.102409638554217, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3121092', 'n_tokens_mistral': 466, 'n_tokens_neox': 453, 'n_words': 244}