<commit_before># The network protocol of the scalephant

The protocol of the scalephant is based on frames. Each frame consists of a header and a body. The header has a fixed size, the body has a variable size. It exists two types of frames: request and response frames. The request frame is send from the client to the scalephant, the response frame is send from the scalephant to the client.

## The request frame

    0         8       16       24       32
	+---------+--------+--------+--------+
	| Version |    Request-ID   |  Type  |
	+---------+-----------------+--------+
	|            Body-Length             |
	+------------------------------------+
	|                                    |
	|               Body                 |
	.                                    .
	.                                    .
	+------------------------------------+
 
### Request Header

* Version - The protocol version, currently always 0x01.
* Request-ID - The id of the request, e.g., a consecutive number.
* Type - The type of the request.

Request Types:

* Type 0x00 - Insert tuple request
* Type 0x01 - Delete tuple request
* Type 0x02 - Delete table request<commit_msg>Changed request frame <commit_after># The network protocol of the scalephant

The protocol of the scalephant is based on frames. Each frame consists of a header and a body. The header has a fixed size, the body has a variable size. It exists two types of frames: request and response frames. The request frame is send from the client to the scalephant, the response frame is send from the scalephant to the client.

## The request frame

    0         8       16       24       32
	+---------+--------+--------+--------+
	| Version |  Type  |   Request-ID    |
	+---------+-----------------+--------+
	|            Body-Length             |
	+------------------------------------+
	|                                    |
	|               Body                 |
	.                                    .
	.                                    .
	+------------------------------------+
 
### Request Header

* Version - The protocol version, currently always 0x01.
* Type - The type of the request.
* Request-ID - The id of the request, e.g., a consecutive number.

Request Types:

* Type 0x00 - Insert tuple request
* Type 0x01 - Delete tuple request
* Type 0x02 - Delete table request
{'fraction_non_alphanumeric': 0.175945601359966, 'fraction_numerical': 0.016999575010624733, 'mean_word_length': 1.212406015037594, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '176072', 'n_tokens_mistral': 583, 'n_tokens_neox': 542, 'n_words': 250}