<commit_before>twistedcpp
==========
Porting twisted to C++.

Note: Basic features are implemented, more work, help and projects very appreciated. 


``` cpp
#include <twisted/reactor.hpp>
#include <twisted/basic_protocol.hpp>
#include <twisted/default_factory.hpp>

struct echo_protocol : twisted::basic_protocol<echo_protocol> {
    template<typename Iter>
    void on_message(Iter begin, Iter end) { send_message(begin, end); }
};

int main() {
    twisted::reactor reac;
    reac.listen_tcp(50000, twisted::default_factory<echo_protocol>());
    reac.run();
}
```
<commit_msg>switched from template to const_buffer_iterators<commit_after>twistedcpp
==========
Porting twisted to C++.

Note: Basic features are implemented, more work, help and projects very appreciated. 


``` cpp
#include <twisted/reactor.hpp>
#include <twisted/basic_protocol.hpp>
#include <twisted/default_factory.hpp>

struct echo_protocol : twisted::basic_protocol<echo_protocol> {
    void on_message(const_buffer_iterator begin, const_buffer_iterator end) { 
        send_message(begin, end);
    }
};

int main() {
    twisted::reactor reac;
    reac.listen_tcp(50000, twisted::default_factory<echo_protocol>());
    reac.run();
}
```

{'fraction_non_alphanumeric': 0.13344316309719934, 'fraction_numerical': 0.008237232289950576, 'mean_word_length': 5.394736842105263, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '3643084', 'n_tokens_mistral': 397, 'n_tokens_neox': 381, 'n_words': 88}