<commit_before># h5js

Distributed computing with JSON.

Checkout `example.js` and `cloud.js` in examples directory.

```JavaScript
var h5 = require('h5');

require('./functions.js');

var example =
  h5.action('http.request', { url: 'http://www.imdb.com/title/tt0110912/' }).
     action('html.extract', { selectors: { title: 'h1.header > span[itemprop="name"]', year: 'h1.header > span > a' } });

example.
  run().
  then(function(result) {
    console.log(result);
  }, function(err) {
    console.log('Error:', err);
  });
```

Saving action and running in [cloud](https://github.com/crackcomm/h5jserver)<commit_msg>example action JSON<commit_after># h5js

Distributed computing with JSON.

Checkout `example.js` and `cloud.js` in examples directory.

```JavaScript
var h5 = require('h5');

require('./functions.js');

var example =
  h5.action('http.request', { url: 'http://www.imdb.com/title/tt0110912/' }).
     action('html.extract', { selectors: { title: 'h1.header > span[itemprop="name"]', year: 'h1.header > span > a' } });

example.
  run().
  then(function(result) {
    console.log(result);
  }, function(err) {
    console.log('Error:', err);
  });
```

Example action in JSON form:

```JSON
{
  "id": "4627ca64-a168-40f6-9389-cf4fa75b6da2",
  "function": {
    "name": "http.request",
    "args": {
      "url": "http://www.imdb.com/title/tt0110912/"
    }
  },
  "next": {
    "id": "875d846a-635f-4567-adc9-46ca61b4ef12",
    "function": {
      "name": "html.extract",
      "args": {
        "selectors": {
          "title": "h1.header > span[itemprop=\"name\"]",
          "year": "h1.header > span > a"
        }
      }
    }
  }
}
```

Saving action and running in [cloud](https://github.com/crackcomm/h5jserver)
{'fraction_non_alphanumeric': 0.20229885057471264, 'fraction_numerical': 0.045402298850574715, 'mean_word_length': 3.2987654320987656, 'pattern_counts': {'":': 13, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 2, 'lorem ipsum': 0, 'www.': 3, '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': '2288339', 'n_tokens_mistral': 684, 'n_tokens_neox': 642, 'n_words': 120}