<commit_before># chiffchaff-multi

[![npm](https://img.shields.io/npm/v/chiffchaff-multi.svg)](https://www.npmjs.com/package/chiffchaff-multi) [![Dependencies](https://img.shields.io/david/zentrick/chiffchaff-multi.svg)](https://david-dm.org/zentrick/chiffchaff-multi) [![Build Status](https://img.shields.io/travis/zentrick/chiffchaff-multi/master.svg)](https://travis-ci.org/zentrick/chiffchaff-multi) [![Coverage Status](https://img.shields.io/coveralls/zentrick/chiffchaff-multi/master.svg)](https://coveralls.io/r/zentrick/chiffchaff-multi) [![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

Multi-task execution for [chiffchaff](https://github.com/zentrick/chiffchaff).

## Example

_**Note:** Like chiffchaff itself, this example is written in ES2015. Please
[familiarize yourself with ES2015](https://babeljs.io/docs/learn-es2015/) before
tackling it._

Let's download a couple of files in parallel. Assuming we already have a
[`DownloadTask` class](https://github.com/zentrick/chiffchaff#example), let's
create a few of those:

```js
const urls = [
  'http://media.w3.org/2010/05/sintel/trailer.mp4',
  'http://media.w3.org/2010/05/bunny/trailer.mp4',
  'http://media.w3.org/2010/05/bunny/movie.mp4',
  'http://media.w3.org/2010/05/video/movie_300.webm'
]
const downloadTasks = urls.map((url) => new DownloadTask(url))
```

Now, we could `start()` those tasks individually, but that's not what we're
after. Using `MultiTask`, we can create a task that downloads all four files,<commit_msg>Update Standard URL<commit_after># chiffchaff-multi

[![npm](https://img.shields.io/npm/v/chiffchaff-multi.svg)](https://www.npmjs.com/package/chiffchaff-multi) [![Dependencies](https://img.shields.io/david/zentrick/chiffchaff-multi.svg)](https://david-dm.org/zentrick/chiffchaff-multi) [![Build Status](https://img.shields.io/travis/zentrick/chiffchaff-multi/master.svg)](https://travis-ci.org/zentrick/chiffchaff-multi) [![Coverage Status](https://img.shields.io/coveralls/zentrick/chiffchaff-multi/master.svg)](https://coveralls.io/r/zentrick/chiffchaff-multi) [![JavaScript Standard Style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

Multi-task execution for [chiffchaff](https://github.com/zentrick/chiffchaff).

## Example

_**Note:** Like chiffchaff itself, this example is written in ES2015. Please
[familiarize yourself with ES2015](https://babeljs.io/docs/learn-es2015/) before
tackling it._

Let's download a couple of files in parallel. Assuming we already have a
[`DownloadTask` class](https://github.com/zentrick/chiffchaff#example), let's
create a few of those:

```js
const urls = [
  'http://media.w3.org/2010/05/sintel/trailer.mp4',
  'http://media.w3.org/2010/05/bunny/trailer.mp4',
  'http://media.w3.org/2010/05/bunny/movie.mp4',
  'http://media.w3.org/2010/05/video/movie_300.webm'
]
const downloadTasks = urls.map((url) => new DownloadTask(url))
```

Now, we could `start()` those tasks individually, but that's not what we're
after. Using `MultiTask`, we can create a task that downloads all four files,
{'fraction_non_alphanumeric': 0.17436708860759495, 'fraction_numerical': 0.030379746835443037, 'mean_word_length': 5.198039215686275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 25, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1669268', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1108, 'n_words': 185}