<commit_before><commit_msg>MMAP FastIO<commit_after>#include<sys/mman.h>
#include<sys/stat.h>

class BufferedInputStream {
    private: char *buf, *p;
    private: int size;
    public: BufferedInputStream()
    {
        int fd=fileno(stdin);
        struct stat sb;
        fstat(fd,&sb);
        size=sb.st_size;
        buf=reinterpret_cast<char *>(mmap(0,size,PROT_READ,MAP_PRIVATE,fileno(stdin),0));
        p=buf;
    }
    public: inline char nextChar(){
        return (p == buf + size || *p == -1) ? -1 : *p++;
    }
}ReadStream;
{'fraction_non_alphanumeric': 0.15769944341372913, 'fraction_numerical': 0.0074211502782931356, 'mean_word_length': 2.884892086330935, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4974822', 'n_tokens_mistral': 197, 'n_tokens_neox': 195, 'n_words': 37}