<commit_before>mochify-istanbul
=====================

Add istanbul coverage to the [mochify.js](https://github.com/mantoni/mochify.js) pipeline.
**NOTE:** This will work with >= mochify.js@2.0.0, in the mean time it depends on a fork that already returns the browserify bundle

## Install

```
$ npm install mochify mochify-istanbul
```

## Usage

```javascript
va b = mochify('path/to/your/file', mochifyOpts)
  .plugin(istanbul({
    reporter: { reports: ['text', 'cobertura', 'json'] }
  }))
  .bundle();
```

## Compatibility
 - Node >= 0.10
 - v0.x
    - Mochify 2.x
        - Browserify 6.x
        - Mocha 2.x


## Run tests
Clone the repo and run ```npm install && npm test```<commit_msg>Improve usage<commit_after>mochify-istanbul
=====================

Add istanbul coverage to the [mochify.js](https://github.com/mantoni/mochify.js) pipeline.
**NOTE:** This will work with >= mochify.js@2.0.0, in the mean time it depends on a fork that already returns the browserify bundle

## Install

```
$ npm install mochify mochify-istanbul
```

## Usage

```javascript
var mochify = require('mochify');
var istanbul = require('mochify-istanbul');

va b = mochify('path/to/your/file', mochifyOpts)
  .plugin(istanbul({
    reporter: { reports: ['text', 'cobertura', 'json'] }
  }))
  .bundle();
```

## Compatibility
 - Node >= 0.10
 - v0.x
    - Mochify 2.x
        - Browserify 6.x
        - Mocha 2.x


## Run tests
Clone the repo and run ```npm install && npm test```
{'fraction_non_alphanumeric': 0.17990495587236932, 'fraction_numerical': 0.013577732518669382, 'mean_word_length': 3.549382716049383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '276215', 'n_tokens_mistral': 548, 'n_tokens_neox': 510, 'n_words': 142}