<commit_before><commit_msg>Adds example for event API<commit_after><!DOCTYPE html>

<meta charset="utf-8" />

<title>Flower event API example</title>

<script language="javascript" type="text/javascript">
    var ws = new WebSocket('ws://localhost:5555/api/task/events/task-succeeded/');
    ws.onmessage = function (event) {
        var div = document.getElementById("output");
        var p = document.createElement('p');
        p.innerText = event.data;
        div.appendChild(p);
    }
</script>

<h2>Flower event API</h2>
<p>This example shows how to get task events</p>
<div id="output"></div>
</html>
{'fraction_non_alphanumeric': 0.16091954022988506, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 3.88, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '6238419', 'n_tokens_mistral': 202, 'n_tokens_neox': 191, 'n_words': 46}