<commit_before>This repository contains a coroutine library, a non-preemptive user-thread library.
They have already been tested on Ubuntu14.04 amd64 and Debian7 amd64 compiled by clang3.4.1 and gcc4.8.2.

The huroutine.h/huroutine.c are the source of the coroutine library and the non-preemptive user-thread library called huroutine.
The non-preemptive user-thread library is based on the coroutine library, which was implemented with ucontext.h on linux. And the schedule algorithm is the simple round-robin algorithm.
The benchmark.c is the test program to test the coroutine-switching speed of the huroutine library. The speed is about 2300000 switches per second.

* the default stack of each huroutine is 4KB.
* a schedulor can schedule only 1000 huroutine at max by default.
* the initial capcity of the schedulor is 16 by default.

But you can change these options via adjusting the macro in huroutine.h

The nbio.h/nbio.c are the deadly simple non-blocking IO library. I have just implemented the non-blocking version of write and read.

The channel.h/channel.c are the channel library used to deliver variable between two huroutine. Attention: what the channel deliver is pointer, so make sure the memory pointer points to is always accessed. Don't use this to deliver a local variable.

The main.c is the demo of the librarys. The huroutine\_test() is the demo function of the former two librarys. <commit_msg>Mod: README little fix<commit_after>This repository contains a coroutine library and a non-preemptive user-thread library.
They have already been tested on Ubuntu14.04 amd64 and Debian7 amd64 compiled by clang3.4.1 and gcc4.8.2.

The huroutine.h/huroutine.c are the source of the coroutine library and the non-preemptive user-thread library called huroutine.
The non-preemptive user-thread library is based on the coroutine library, which was implemented with ucontext.h on linux. And the schedule algorithm is the simple round-robin algorithm.
The benchmark.c is the test program to test the coroutine-switching speed of the huroutine library. The speed is about 2300000 switches per second.

* the default stack of each huroutine is 4KB.
* a schedulor can schedule only 1000 huroutine at max by default.
* the initial capcity of the schedulor is 16 by default.

But you can change these options via adjusting the macro in huroutine.h

The nbio.h/nbio.c are the deadly simple non-blocking IO library. I have just implemented the non-blocking version of write and read.

The channel.h/channel.c are the channel library used to deliver variable between two huroutine. Attention: what the channel deliver is pointer, so make sure the memory pointer points to is always accessed. Don't use this to deliver a local variable.

The main.c is the demo of the librarys. The huroutine\_test() is the demo function of the former librarys. 
{'fraction_non_alphanumeric': 0.041403508771929824, 'fraction_numerical': 0.020350877192982456, 'mean_word_length': 4.3389513108614235, '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': '547389', 'n_tokens_mistral': 788, 'n_tokens_neox': 755, 'n_words': 423}