<commit_before>/* $Id$ */
/* %PSC_START_COPYRIGHT% */

/*
 * Exportable lists are thread-safe doubly linked list structures that
 * are exported via a daemon control interface.
 */

#ifndef _PFL_EXPLIST_H_
#define _PFL_EXPLIST_H_

#include "psc_ds/list.h"
#include "psc_ds/lockedlist.h"

#define PEXL_NAME_MAX		32

struct psc_explist {
	struct psc_lockedlist	 pexl_pll;
	struct psc_listentry	 pexl_lentry;			/* link adjoining lists */
	char			 pexl_name[PEXL_NAME_MAX];	/* for list mgt */
	size_t			 pexl_nseen;			/* stat: total #times add() */
#define pexl_flags	pexl_pll.pll_flags
#define pexl_listhd	pexl_pll.pll_listhd
#define pexl_lock	pexl_pll.pll_lock
#define pexl_nitems	pexl_pll.pll_nitems
#define pexl_offset	pexl_pll.pll_offset
};

#define PEXL_LOCK(peli)		PLL_LOCK(&(pexl)->pexl_pll)
#define PEXL_RLOCK(peli)	PLL_RLOCK(&(pexl)->pexl_pll)
#define PEXL_ULOCK(peli)	PLL_ULOCK(&(pexl)->pexl_pll)
#define PEXL_URLOCK(peli, lk)	PLL_URLOCK(&(pexl)->pexl_pll, (lk))

#endif /* _PFL_EXPLIST_H_ */
<commit_msg>fix copyright tag<commit_after>/* $Id$ */
/* %PSC_COPYRIGHT% */

/*
 * Exportable lists are thread-safe doubly linked list structures that
 * are exported via a daemon control interface.
 */

#ifndef _PFL_EXPLIST_H_
#define _PFL_EXPLIST_H_

#include "psc_ds/list.h"
#include "psc_ds/lockedlist.h"

#define PEXL_NAME_MAX		32

struct psc_explist {
	struct psc_lockedlist	 pexl_pll;
	struct psc_listentry	 pexl_lentry;			/* link adjoining lists */
	char			 pexl_name[PEXL_NAME_MAX];	/* for list mgt */
	size_t			 pexl_nseen;			/* stat: total #times add() */
#define pexl_flags	pexl_pll.pll_flags
#define pexl_listhd	pexl_pll.pll_listhd
#define pexl_lock	pexl_pll.pll_lock
#define pexl_nitems	pexl_pll.pll_nitems
#define pexl_offset	pexl_pll.pll_offset
};

#define PEXL_LOCK(peli)		PLL_LOCK(&(pexl)->pexl_pll)
#define PEXL_RLOCK(peli)	PLL_RLOCK(&(pexl)->pexl_pll)
#define PEXL_ULOCK(peli)	PLL_ULOCK(&(pexl)->pexl_pll)
#define PEXL_URLOCK(peli, lk)	PLL_URLOCK(&(pexl)->pexl_pll, (lk))

#endif /* _PFL_EXPLIST_H_ */

{'fraction_non_alphanumeric': 0.11869436201780416, 'fraction_numerical': 0.0019782393669634025, 'mean_word_length': 5.381703470031546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5379718', 'n_tokens_mistral': 971, 'n_tokens_neox': 870, 'n_words': 168}