<commit_before>#ifndef _LIB_DCONFIG_H_
#define _LIB_DCONFIG_H_

/*
 * Name lookup functions that map names into a collection of
 * group ids.
 */

/* returns list of gids for name */
int nlkup_lookup_collection(char *name, int *num_gids, groupid_t *gids);

int nlkup_add_entry(char *name, int num_gids, groupid_t *gids);

/* iterates through all names of collections (const name). */
int nlkup_first_entry(char **name, void **cookie);
int nlkup_next_entry(char **name, void **cookie);

/*
 * Functions that map groups into a set of hosts.
 */

int glkup_gid_hosts(groupid_t gid, int *num_hosts, uint32_t *hostids);

#endif  /* !_LIB_DCONFIG_H_ */
<commit_msg>added ifdef c++<commit_after>#ifndef _LIB_DCONFIG_H_
#define _LIB_DCONFIG_H_


#ifdef __cplusplus
extern "C" {
#endif


/*
 * Name lookup functions that map names into a collection of
 * group ids.
 */

/* returns list of gids for name */
int nlkup_lookup_collection(char *name, int *num_gids, groupid_t *gids);

int nlkup_add_entry(char *name, int num_gids, groupid_t *gids);

/* iterates through all names of collections (const name). */
int nlkup_first_entry(char **name, void **cookie);
int nlkup_next_entry(char **name, void **cookie);

/*
 * Functions that map groups into a set of hosts.
 */

int glkup_gid_hosts(groupid_t gid, int *num_hosts, uint32_t *hostids);

#ifdef __cplusplus
}
#endif

#endif  /* !_LIB_DCONFIG_H_ */

{'fraction_non_alphanumeric': 0.11214953271028037, 'fraction_numerical': 0.002875629043853343, 'mean_word_length': 4.824267782426778, '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': '6591447', 'n_tokens_mistral': 522, 'n_tokens_neox': 508, 'n_words': 154}