<commit_before>#include "quote.h"


bool
quote_string(char const *string,
             char const *prefix,
             char const *suffix,
             char *buffer,
             char *buffer_end)
{
    char *buffer_start = buffer;
    char const *sources[3];
    int i = 0;
    
    sources[0] = prefix;
    sources[1] = string;
    sources[2] = suffix;
    while (i < 3 && buffer < buffer_end) {
        if (*sources[i]) {
            *buffer++ = *sources[i]++;
        } else {
            ++i;<commit_msg>Small cleanup to quote_string() function.<commit_after>#include "quote.h"


bool
quote_string(char const *string,
             char const *prefix,
             char const *suffix,
             char *buffer,
             char *buffer_end)
{
    char *buffer_start = buffer;
    char const *sources[3] = { prefix, string, suffix };
    
    int i = 0;
    while (i < 3 && buffer < buffer_end) {
        if (*sources[i]) {
            *buffer++ = *sources[i]++;
        } else {
            ++i;
{'fraction_non_alphanumeric': 0.1317365269461078, 'fraction_numerical': 0.008982035928143712, 'mean_word_length': 1.8095238095238095, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6089378', 'n_tokens_mistral': 315, 'n_tokens_neox': 305, 'n_words': 84}