<commit_before>#ifndef _EXAMPLES_COMMON_H
#define _EXAMPLES_COMMON_H

int parse_host_port(char *hostport, char *host, int hostLen, int *port);

#ifdef DEBUG
#define DEBUG_TEST 1
#else
#define DEBUG_TEST 0
#endif

#define debug_print(fmt, ...) \
        do { if (DEBUG_TEST) fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \
                               __LINE__, __func__, __VA_ARGS__); } while (0)

#endif
<commit_msg>compiles, but then segfaults at do_write<commit_after>#ifndef _EXAMPLES_COMMON_H
#define _EXAMPLES_COMMON_H

int parse_host_port(char *hostport, char *host, int hostLen, int *port);

#define DEBUG 1

#ifdef DEBUG
#define DEBUG_TEST 1
#else
#define DEBUG_TEST 0
#endif

#define debug_print(fmt, ...) \
        do { if (DEBUG_TEST) fprintf(stderr, "%s:%d:%s(): " fmt, __FILE__, \
                               __LINE__, __func__, __VA_ARGS__); } while (0)

#endif

{'fraction_non_alphanumeric': 0.12244897959183673, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 3.551546391752577, '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': '6297395', 'n_tokens_mistral': 318, 'n_tokens_neox': 315, 'n_words': 84}