<commit_before>Respond Functions
=================

Harubi published a set of optional respond functions to simplify response formatting by `controller` functions. They are treated as conventional rather than strict. A respond function will return an array with at least a `status` code. The results of a `controller` function will be added to the respond's return array as `results`. On error, the `error_code` and `error_message` will be set.
```php
return ['status'=>1];
```
```
status 0: Error with error_code and error_message.
       1: Ok.
       2: Ok with results.
```<commit_msg>Update respond.md<commit_after>Respond Functions
=================

Harubi published a set of optional respond functions to simplify response formatting by `controller` functions. They are treated as conventional rather than strict. A respond function will return an array with at least a `status` code. The results of a `controller` function will be added to the respond's return array as `results`. For error, the `error_code` and `error_message` will be set.
```php
return ['status'=>1];
```
```
status 0: Error with error_code and error_message.
       1: Ok.
       2: Ok with results.
```
{'fraction_non_alphanumeric': 0.10904480135249366, 'fraction_numerical': 0.006762468300929839, 'mean_word_length': 4.55868544600939, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5663211', 'n_tokens_mistral': 312, 'n_tokens_neox': 289, 'n_words': 159}