<commit_before># Basic Principles of Federation protocol

Server-Server protocol is push-based protocol. This means that author (server) of a message is responsible to delivering it to receipient.

Currently s2s ptorofol is based on HTTP/1.1. In future releases underlying transport can be replaced according with performance requiremenets of network.

We found that our ideas are often the same as project [matrix.org](http://matrix.org/docs/spec/r0.0.1/server_server.html) have. We believe that we can work together and enrich their's network with Actor. Draft version of our federation API is **NOT** compatable with matrix, but release one we expect to be one.

Protocol is JSON-based, but can be easily transformed to any form of key-value format, for example, protobuf.

## Basic requirements

1) Server have port that is accessible in the internet
2) Server have TLS configured. We are highly recommend to use TLS
3) Owns domain name
4) Owner of a server have email server on this domain name (not explictly checked and can be reduced in future releases)

## Data Types
<commit_msg>Update basic-principles.md<commit_after># Basic Principles of Federation protocol

Server-Server protocol is push-based protocol. This means that author (server) of a message is responsible to delivering it to receipient.

Currently s2s ptorofol is based on HTTP/1.1. In future releases underlying transport can be replaced according with performance requiremenets of network.

We found that our ideas are often the same as project [matrix.org](http://matrix.org/docs/spec/r0.0.1/server_server.html) have. We believe that we can work together and enrich their's network with Actor. Draft version of our federation API is **NOT** compatable with matrix, but release one we expect to be one.

Protocol is Protobuf-based, but can be easily transformed to any form of key-value format, for example, protobuf.

## Basic requirements

1) Server have port that is accessible in the internet
2) Server have TLS configured. We are highly recommend to use TLS
3) Owns domain name
4) Owner of a server have email server on this domain name (not explictly checked and can be reduced in future releases)

## Data Types

{'fraction_non_alphanumeric': 0.05193621867881549, 'fraction_numerical': 0.009111617312072893, 'mean_word_length': 4.545454545454546, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3838764', 'n_tokens_mistral': 562, 'n_tokens_neox': 541, 'n_words': 323}