<commit_before>/**
 * @file /check/magma/regression/regression_check.c
 *
 * @brief The heart of the regression test suite
 */

#include "magma_check.h"

bool_t check_regression_file_descriptors_leak_mthread(void) {
	stringer_t *m = st_alloc_opts(MAPPED_T | JOINTED | HEAP, 1024);
	st_free(m);
	return true;
}

START_TEST (check_regression_file_descriptors_leak_m) {

	log_disable();
	void *result = NULL;
	bool_t outcome = true;
	pthread_t *threads = NULL;
	stringer_t *errmsg = NULL, *path = NULL;
	int_t folders_before, folder_difference = 0;

	if (!(threads = mm_alloc(sizeof(pthread_t) * REGRESSION_CHECK_FILE_DESCRIPTORS_LEAK_MTHREADS))) {
		errmsg = NULLER("Thread allocation failed.");<commit_msg>Changed the regression test function layout<commit_after>/**
 * @file /check/magma/regression/regression_check.c
 *
 * @brief The heart of the regression test suite
 */

#include "magma_check.h"

bool_t check_regression_file_descriptors_leak_mthread(void) {
	stringer_t *m;
	if (!(m = st_alloc_opts(MAPPED_T | JOINTED | HEAP, 1024))) {
		return false;
	} else {
		st_free(m);
		return true;
	}
}

START_TEST (check_regression_file_descriptors_leak_m) {

	log_disable();
	void *result = NULL;
	bool_t outcome = true;
	pthread_t *threads = NULL;
	stringer_t *errmsg = NULL, *path = NULL;
	int_t folders_before, folder_difference = 0;

	if (!(threads = mm_alloc(sizeof(pthread_t) * REGRESSION_CHECK_FILE_DESCRIPTORS_LEAK_MTHREADS))) {
		errmsg = NULLER("Thread allocation failed.");
{'fraction_non_alphanumeric': 0.11455525606469003, 'fraction_numerical': 0.006738544474393531, 'mean_word_length': 5.570796460176991, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5616550', 'n_tokens_mistral': 576, 'n_tokens_neox': 551, 'n_words': 115}