<commit_before>Quelt
=====
A lightweight offline Wikipedia reader.

File format
-----------
The initial plan was for Quelt to use a separate file for every article, using
the path for the article name.  A cute idea, but reality set in fairly quickly:
    * Filename restrictions, especially on NTFS
    * Standard filesystem tools are not built to handle 3 million+ files easily
So instead, a custom binary format is used with two files: quelt.db, and
quelt.index.

quelt.db is just concatenated zlib streams, each containing an article.
Ordering is defined by the input, which should be pre-sorted byte-wise.

quelt.index may be described as a simple array of structs, sharing the same
order as quelt.db.
struct Field {
	char[255] title;
	int64_t article_start;
};<commit_msg>Fix markdown list.<commit_after>Quelt
=====
A lightweight offline Wikipedia reader.

File format
-----------
The initial plan was for Quelt to use a separate file for every article, using
the path for the article name.  A cute idea, but reality set in fairly quickly:

    * Filename restrictions, especially on NTFS
    * Standard filesystem tools are not built to handle 3 million+ files easily

So instead, a custom binary format is used with two files: quelt.db, and
quelt.index.

quelt.db is just concatenated zlib streams, each containing an article.
Ordering is defined by the input, which should be pre-sorted byte-wise.

quelt.index may be described as a simple array of structs, sharing the same
order as quelt.db.
struct Field {
	char[255] title;
	int64_t article_start;
};
{'fraction_non_alphanumeric': 0.06726457399103139, 'fraction_numerical': 0.007687379884689302, 'mean_word_length': 3.9430379746835444, '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': '6293739', 'n_tokens_mistral': 438, 'n_tokens_neox': 418, 'n_words': 226}