<commit_before>---
layout: documentation
---

# A Sequence of Events

<div class="mermaid">
sequenceDiagram
  Facade->>Server: start
  Server->>Server: configure routes
  Server->>Server: start http server
  Server->>SocketSupport:start
  SocketSupport->>SocketSupport:start socket server
  SocketSupport->>SocketSupport:setup connection handler
  Facade-->>InitialiseState: initialise
  InitialiseState-->>StateMutator: StateSeed
  Facade-->>ServerSideEngine: run
  loop [120 times per second]
    ServerSideEngine-->>ServerSideUpdate: execute
    ServerSideUpdate-->>StateMutator: response
  end

</div><commit_msg>split up the sequence diagrams<commit_after>---
layout: documentation
---

# A Sequence of Events

## Application Start
<div class="mermaid">
sequenceDiagram
  Entry Point->>Server: start
  Entry Point-->>InitialiseState: initialise
  Entry Point-->>ServerSideEngine: run
</div>

## Server.start
<div class="mermaid">
sequenceDiagram
  Entry Point->>Server: start
  Server->>Server: configure routes
  Server->>Server: start http server
  Server->>SocketSupport:start
  SocketSupport->>SocketSupport:start socket server
  SocketSupport->>SocketSupport:setup connection handler
</div>

## InitialiseState
<div class="mermaid">
sequenceDiagram
  Entry Point-->>InitialiseState: initialise
  InitialiseState-->>StateMutator: StateSeed
</div>

## ServerSideEngine.run
<div class="mermaid">
sequenceDiagram
  Entry Point-->>ServerSideEngine: run
  loop [120 times per second]
    ServerSideEngine-->>ServerSideUpdate: execute
    ServerSideUpdate-->>StateMutator: response
  end
</div>
{'fraction_non_alphanumeric': 0.11772072636192861, 'fraction_numerical': 0.003757044458359424, 'mean_word_length': 5.2421875, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 63, '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': '5158922', 'n_tokens_mistral': 471, 'n_tokens_neox': 459, 'n_words': 118}