<commit_before>#include "../lib/mosquitto.h"
#include <czmq.h>

void
my_message_callback (struct mosquitto *mosq, void *obj, const struct mosquitto_message *message)
{
    int i;
    bool res;

    if (message->payloadlen) {
        fwrite (message->payload, 1, message->payloadlen, stdout);
        fflush (stdout);
    }
}

void my_log_callback (struct mosquitto *mosq, void *obj, int level, const char *str)
{
    zsys_debug ("(%d) %s", level, str);
}

void my_subscribe_callback (struct mosquitto *mosq, void *obj, int mid, int qos_count, const int *granted_qos)
{
    int i = 0;

    printf ("Subscribed (mid: %d): %d", mid, granted_qos[0]);
    for (i=1; i < qos_count; i++) {
        printf (", %d", granted_qos[i]);
    }
    printf("\n");
}

void my_connect_callback (struct mosquitto *mosq, void *obj, int result)
{
    int i;
    struct mosq_config *cfg;

    assert(obj);
    cfg = (struct mosq_config *)obj;

    if (!result) {
        mosquitto_subscribe (mosq, NULL, "a/b", 0);
    }
    else {
        zsys_error ("%s\n", mosquitto_connack_string (result));
    }
}

int<commit_msg>PROBLEM: Newline missing<commit_after>#include "../lib/mosquitto.h"
#include <czmq.h>

void
my_message_callback (struct mosquitto *mosq, void *obj, const struct mosquitto_message *message)
{
    int i;
    bool res;

    if (message->payloadlen) {
        printf ("%s ", message->topic);
        fwrite (message->payload, 1, message->payloadlen, stdout);
        fflush (stdout);
        printf ("\n");
    }

}

void my_log_callback (struct mosquitto *mosq, void *obj, int level, const char *str)
{
    zsys_debug ("(%d) %s", level, str);
}

void my_subscribe_callback (struct mosquitto *mosq, void *obj, int mid, int qos_count, const int *granted_qos)
{
    int i = 0;

    printf ("Subscribed (mid: %d): %d", mid, granted_qos[0]);
    for (i=1; i < qos_count; i++) {
        printf (", %d", granted_qos[i]);
    }
    printf("\n");
}

void my_connect_callback (struct mosquitto *mosq, void *obj, int result)
{
    int i;
    struct mosq_config *cfg;

    assert(obj);
    cfg = (struct mosq_config *)obj;

    if (!result) {
        mosquitto_subscribe (mosq, NULL, "a/b", 2);
    }
    else {
        zsys_error ("%s\n", mosquitto_connack_string (result));
    }
}

int
{'fraction_non_alphanumeric': 0.15235579040070454, 'fraction_numerical': 0.004403346543372964, 'mean_word_length': 3.1159420289855073, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, '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': '3963761', 'n_tokens_mistral': 865, 'n_tokens_neox': 836, 'n_words': 226}