<commit_before>#include <assert.h>
#include <string.h>

#include "protocol.h"
#include "serialize.h"

int atc_connect(struct atc_conn * conn)
{
    return 0;
}


int atc_listen(struct atc_conn * conn)
{
    return 0;
}


int atc_close(struct atc_conn * conn)
{
    return 0;
}


int atc_request(struct atc_conn * conn)
{
    unsigned char send_buffer[ATCP_MSG_LEN];
    unsigned char recv_buffer[ATCP_MSG_LEN];
    int response;

    atc_req_to_wire(&conn->req, send_buffer);
    response = transport_send(&conn->addr, send_buffer, sizeof(send_buffer));
    if (response == -1) {
        return -1;
    }
    response = transport_recv(&conn->addr, recv_buffer, sizeof(recv_buffer));
    atc_wire_to_res(&conn->res, recv_buffer);
    return 0;
}


int atc_reply(struct atc_conn * conn, atc_reply_handler handler)
{
    return 0;
}
<commit_msg>hey, what's that over there?!<commit_after>#include <assert.h>
#include <string.h>

#include "protocol.h"
#include "transport.h"
#include "serialize.h"

int atc_connect(struct atc_conn * conn)
{
    return transport_connect(&conn->addr);
}


int atc_listen(struct atc_conn * conn)
{
    return transport_listen(&conn->addr);
}


int atc_close(struct atc_conn * conn)
{
    return transport_close(&conn->addr);
}


int atc_request(struct atc_conn * conn)
{
    unsigned char send_buffer[ATCP_MSG_LEN];
    unsigned char recv_buffer[ATCP_MSG_LEN];
    int response;

    atc_req_to_wire(&conn->req, send_buffer);
    response = transport_send(&conn->addr, send_buffer, sizeof(send_buffer));
    if (response == -1) {
        return -1;
    }
    response = transport_recv(&conn->addr, recv_buffer, sizeof(recv_buffer));
    atc_wire_to_res(&conn->res, recv_buffer);
    return 0;
}


int atc_reply(struct atc_conn * conn, atc_reply_handler handler)
{
    return 0;
}

{'fraction_non_alphanumeric': 0.12562257885998893, 'fraction_numerical': 0.006087437742114001, 'mean_word_length': 4.150997150997151, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 18, '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': '6774447', 'n_tokens_mistral': 679, 'n_tokens_neox': 659, 'n_words': 136}