<commit_before>/*
 * athread.h
 * ---------
 * 
 * Copyright (C) 2004 by the Anahy Project
 *
 * Anahy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published 
 * by the Free Software Foundation; either version 2 of the License, or 
 * (at your option) any later version.
 *
 * Anahy is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with Anahy; if not, write to the Free Software Foundation, 
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */
#ifndef _athread_h
#define _athread_h 1

#ifdef __cplusplus
extern "C" {
#endif

#include "anahy/structures.h"

#define ATHREAD_SUPPORT_DISTRIBUTED FALSE

/* engine control */
int aInit(int *argc, char ***argv);
int aRemoteInit(int argc, char **argv);
int aRemoteTerminate();
int aTerminate();
void aSearchFrom(int algorithm);

/* basic thread handling functions */
int athread_create(athread_t *id, athread_attr_t *attribs, pfunc function, void *data);
int athread_join(athread_t id, void **return_data);
double athread_join_double(athread_t id);<commit_msg>using 0 instead of FALSE :(<commit_after>/*
 * athread.h
 * ---------
 * 
 * Copyright (C) 2004 by the Anahy Project
 *
 * Anahy is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published 
 * by the Free Software Foundation; either version 2 of the License, or 
 * (at your option) any later version.
 *
 * Anahy is distributed in the hope that it will be useful, but WITHOUT 
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 * License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with Anahy; if not, write to the Free Software Foundation, 
 * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 */
#ifndef _athread_h
#define _athread_h 1

#ifdef __cplusplus
extern "C" {
#endif

#include "anahy/structures.h"

#define ATHREAD_SUPPORT_DISTRIBUTED 0

/* engine control */
int aInit(int *argc, char ***argv);
int aRemoteInit(int argc, char **argv);
int aRemoteTerminate();
int aTerminate();
void aSearchFrom(int algorithm);

/* basic thread handling functions */
int athread_create(athread_t *id, athread_attr_t *attribs, pfunc function, void *data);
int athread_join(athread_t id, void **return_data);
double athread_join_double(athread_t id);
{'fraction_non_alphanumeric': 0.08701957940536621, 'fraction_numerical': 0.015228426395939087, 'mean_word_length': 4.305769230769231, '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': '6391132', 'n_tokens_mistral': 853, 'n_tokens_neox': 801, 'n_words': 358}