<commit_before>
#ifndef ISC_THREAD_H
#define ISC_THREAD_H 1

#include <pthread.h>

#include <isc/result.h>

typedef pthread_t isc_thread_t;

/* XXX We could do fancier error handling... */

#define isc_thread_create(s, a, tp) \
	((pthread_create((tp), NULL, (s), (a)) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_detach(t) \
	((pthread_detach((t)) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_join(t) \
	((pthread_join((t), NULL) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_self \
	pthread_self

#endif /* ISC_THREAD_H */<commit_msg>revise join; add arg and result types<commit_after>
#ifndef ISC_THREAD_H
#define ISC_THREAD_H 1

#include <pthread.h>

#include <isc/result.h>

typedef pthread_t isc_thread_t;
typedef void * isc_threadresult_t;
typedef void * isc_threadarg_t;
typedef isc_threadresult_t (*isc_threadfunc_t)(isc_threadarg_t);

/* XXX We could do fancier error handling... */

#define isc_thread_create(s, a, tp) \
	((pthread_create((tp), NULL, (s), (a)) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_detach(t) \
	((pthread_detach((t)) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_join(t, rp) \
	((pthread_join((t), (rp)) == 0) ? \
	 ISC_R_SUCCESS : ISC_R_UNEXPECTED)

#define isc_thread_self \
	(unsigned long)pthread_self

#endif /* ISC_THREAD_H */
{'fraction_non_alphanumeric': 0.14317019722425128, 'fraction_numerical': 0.005843681519357195, 'mean_word_length': 5.008771929824562, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5092078', 'n_tokens_mistral': 607, 'n_tokens_neox': 588, 'n_words': 115}