<commit_before># Node Chat Client

This client acts as the students and teachers for any one of the following servers:

1. [seejee/phoenix-chat-server](https://github.com/seejee/phoenix-chat-server)
2. [seejee/node-chat-server](https://github.com/seejee/node-chat-server)

To install dependencies:

1. `npm install`

To run the client against the Phoenix server:

1. `bin/chatclient --numStudents 1000 --numTeachers 10 --mode elixir`

You might get better performance if you run the students and teachers in different processes. To do this:

1. `bin/chatclient --numStudents 1000 --numTeachers 0 --mode elixir`
2. `bin/chatclient --numStudents 0 --numTeachers 10 --mode elixir`

The teacher process will exit automatically once all students have been processed.

To run the client against the Node server:

1. `bin/chatclient --numStudents 1000 --numTeachers 10 --mode node`
<commit_msg>README.md<commit_after># Node Chat Client

This client acts as the students and teachers for any one of the following servers:

1. [seejee/phoenix-chat-server](https://github.com/seejee/phoenix-chat-server)
2. [seejee/node-chat-server](https://github.com/seejee/node-chat-server)

To install dependencies:

1. `npm install`

To run the client against the Phoenix server:

1. `bin/chatclient --numStudents 1000 --numTeachers 10 --mode elixir`

You might get better performance if you run the students and teachers in different processes. To do this:

1. `bin/chatclient --numStudents 1000 --numTeachers 0 --mode elixir`
2. `bin/chatclient --numStudents 0 --numTeachers 10 --mode elixir`

The teacher process will exit automatically once all students have been processed.

To run the client against the Node server:

1. `bin/chatclient --numStudents 1000 --numTeachers 10 --mode node`
{'fraction_non_alphanumeric': 0.09779536461277558, 'fraction_numerical': 0.030525720746184284, 'mean_word_length': 4.042735042735043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3154914', 'n_tokens_mistral': 581, 'n_tokens_neox': 518, 'n_words': 214}