<commit_before>#include <x0/ssl_db_cache.h>

#if defined(WITH_SSL)

namespace x0 {

int ssl_db_cache::_store(void *dbf, gnutls_datum_t key, gnutls_datum_t value)
{
	if (reinterpret_cast<ssl_db_cache *>(dbf)->store(key, value))
		return 0;

	return -1;
}

gnutls_datum_t ssl_db_cache::_retrieve(void *dbf, gnutls_datum_t key)
{
	return reinterpret_cast<ssl_db_cache *>(dbf)->retrieve(key);
}

int ssl_db_cache::_remove(void *dbf, gnutls_datum_t key)
{
	if (reinterpret_cast<ssl_db_cache *>(dbf)->remove(key))
		return 0;

	return -1;<commit_msg>[core] ssl_db_cache: extend WITH_SSL<commit_after>#include <x0/sysconfig.h>

#if defined(WITH_SSL)

#include <x0/ssl_db_cache.h>

namespace x0 {

int ssl_db_cache::_store(void *dbf, gnutls_datum_t key, gnutls_datum_t value)
{
	if (reinterpret_cast<ssl_db_cache *>(dbf)->store(key, value))
		return 0;

	return -1;
}

gnutls_datum_t ssl_db_cache::_retrieve(void *dbf, gnutls_datum_t key)
{
	return reinterpret_cast<ssl_db_cache *>(dbf)->retrieve(key);
}

int ssl_db_cache::_remove(void *dbf, gnutls_datum_t key)
{
	if (reinterpret_cast<ssl_db_cache *>(dbf)->remove(key))
		return 0;

	return -1;
{'fraction_non_alphanumeric': 0.13884007029876977, 'fraction_numerical': 0.011423550087873463, 'mean_word_length': 6.7482993197278915, 'pattern_counts': {'":': 0, '<': 12, '<?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': '7285117', 'n_tokens_mistral': 519, 'n_tokens_neox': 510, 'n_words': 86}