<commit_before>eXecutor
========

Module namespace is 'http://exist-db.org/executor'.

The executor create by one of function:
```
executor:create-single-thread-scheduled-executor("uuid1")
executor:create-single-thread-executor("uuid2")
executor:create-fixed-thread-pool("uuid3", 1)
executor:create-scheduled-thread-pool("uuid4", 10)
```

The task scheduled by function call
```
executor:schedule($task-id, $queue-id, $param, $time, $xq-uri)
```
where 
 - `$task-id` id to manipulate/request infromation for task;
 - `$queue-id` executor's id;
 - `$param` sequence passed as context to xquery script (warning: values must be context independent because of eXist limitations);
 - `$time` when to run (in milliseconds);
 - `$xq-uri` script's AnyURI or script itself as string.

The task placed to executor pool by `executor:submit($task-id, $queue-id, $param, $xq-uri)`.

Functions `executor:is-done($task-id)`, `executor:is-canceled($task-id)` and `executor:get-delay($task-id)` can be used to query task status.

Task can be cancel by `cancel($task-id, $mayInterrupt)` function call.<commit_msg>Minor typo<commit_after>eXecutor
========

Module namespace is 'http://exist-db.org/executor'.

The executor create by one of function:
```
executor:create-single-thread-scheduled-executor("uuid1")
executor:create-single-thread-executor("uuid2")
executor:create-fixed-thread-pool("uuid3", 1)
executor:create-scheduled-thread-pool("uuid4", 10)
```

The task scheduled by function call:
```
executor:schedule($task-id, $queue-id, $param, $time, $xq-uri)
```
where 
 - `$task-id` id to manipulate/request infromation for task;
 - `$queue-id` executor's id;
 - `$param` sequence passed as context to xquery script (warning: values must be context independent because of eXist limitations);
 - `$time` when to run (in milliseconds);
 - `$xq-uri` script's AnyURI or script itself as string.

The task placed to executor pool by `executor:submit($task-id, $queue-id, $param, $xq-uri)`.

Functions `executor:is-done($task-id)`, `executor:is-canceled($task-id)` and `executor:get-delay($task-id)` can be used to query task status.

Task can be cancel by `executor:cancel($task-id, $mayInterrupt)` function call.
{'fraction_non_alphanumeric': 0.15566681838871188, 'fraction_numerical': 0.0063723258989531175, 'mean_word_length': 5.426900584795321, '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': '2030818', 'n_tokens_mistral': 751, 'n_tokens_neox': 728, 'n_words': 208}