<commit_before>/**
 * @file compressed_file_writer.cpp
 * @author <NAME>
 */

#include "io/compressed_file_writer.h"

namespace meta {
namespace io {

compressed_file_writer::compressed_file_writer(const std::string & filename,
        std::function<uint64_t(uint64_t)> mapping):
    _outfile{fopen(filename.c_str(), "w")},
    _char_cursor{0},
    _bit_cursor{0},
    _buffer_size{1024 * 1024 * 8},<commit_msg>increase buffer size for compressed_file_writer<commit_after>/**
 * @file compressed_file_writer.cpp
 * @author <NAME>
 */

#include "io/compressed_file_writer.h"

namespace meta {
namespace io {

compressed_file_writer::compressed_file_writer(const std::string & filename,
        std::function<uint64_t(uint64_t)> mapping):
    _outfile{fopen(filename.c_str(), "w")},
    _char_cursor{0},
    _bit_cursor{0},
    _buffer_size{1024 * 1024 * 64}, // 64 MB
{'fraction_non_alphanumeric': 0.13856812933025403, 'fraction_numerical': 0.03810623556581986, 'mean_word_length': 5.105633802816901, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1666297', 'n_tokens_mistral': 330, 'n_tokens_neox': 302, 'n_words': 51}