<commit_before>/* Tethys, link.c -- IRC connections
   Copyright (C) 2014 <NAME>

   This file is protected under the terms contained
   in the COPYING file in the project root */

#include "ircd.h"

static u_link *link_create(void)
{
	u_link *link;

	link = calloc(1, sizeof(*link));

	return link;
}

static void link_destroy(u_link *link)
{
	if (link->pass != NULL)
		free(link->pass);

	free(link);
}

/* conn interaction */
/* ---------------- */

#define RECV_SIZE (16 << 10)

static void exceptional_quit(u_link *link, char *msg, ...);
static void dispatch_lines(u_link*);

static void on_attach(u_conn *conn)
{
	u_link *link = conn->priv;

	link->conn = conn;
}

static void on_connect_finish(u_conn *conn, int err)
{
	u_log(LG_VERBOSE, "link: connect finished");
}<commit_msg>link: Delete unused RECV_SIZE macro<commit_after>/* Tethys, link.c -- IRC connections
   Copyright (C) 2014 <NAME>

   This file is protected under the terms contained
   in the COPYING file in the project root */

#include "ircd.h"

static u_link *link_create(void)
{
	u_link *link;

	link = calloc(1, sizeof(*link));

	return link;
}

static void link_destroy(u_link *link)
{
	if (link->pass != NULL)
		free(link->pass);

	free(link);
}

/* conn interaction */
/* ---------------- */

static void exceptional_quit(u_link *link, char *msg, ...);
static void dispatch_lines(u_link*);

static void on_attach(u_conn *conn)
{
	u_link *link = conn->priv;

	link->conn = conn;
}

static void on_connect_finish(u_conn *conn, int err)
{
	u_log(LG_VERBOSE, "link: connect finished");
}
{'fraction_non_alphanumeric': 0.15620998719590268, 'fraction_numerical': 0.008962868117797696, 'mean_word_length': 3.7507598784194527, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '4060287', 'n_tokens_mistral': 585, 'n_tokens_neox': 554, 'n_words': 160}