<commit_before>#include "jpeg_encoder.h"

JpegEncoder::JpegEncoder(unsigned char *ddata, int wwidth, int hheight,
    int qquality, buffer_type bbuf_type) :
    data(ddata), width(wwidth), height(hheight), quality(qquality),
    buf_type(bbuf_type),
    jpeg(NULL), jpeg_len(0) {}

JpegEncoder::~JpegEncoder() {
    free(jpeg);
}

void
JpegEncoder::encode()
{
    struct jpeg_compress_struct cinfo;
    struct jpeg_error_mgr jerr;<commit_msg>i like this weird syntax better<commit_after>#include "jpeg_encoder.h"

JpegEncoder::JpegEncoder(unsigned char *ddata, int wwidth, int hheight,
    int qquality, buffer_type bbuf_type)
    :
    data(ddata), width(wwidth), height(hheight), quality(qquality),
    buf_type(bbuf_type),
    jpeg(NULL), jpeg_len(0) {}

JpegEncoder::~JpegEncoder() {
    free(jpeg);
}

void
JpegEncoder::encode()
{
    struct jpeg_compress_struct cinfo;
    struct jpeg_error_mgr jerr;
{'fraction_non_alphanumeric': 0.12362030905077263, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 5.387323943661972, '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': '1833366', 'n_tokens_mistral': 330, 'n_tokens_neox': 326, 'n_words': 64}