<commit_before>#ifndef TREAPSET_H
#define TREAPSET_H

/*change to fit your program*/
typedef unsigned long TREAPTYPE;

typedef struct treap {
	int priority;
	TREAPTYPE data;
	char *str;
	struct treap *left;
	struct treap *right;
	struct treap *middle;
} treapset;


extern treapset *treap_rrotate(treapset *root);
extern treapset *treap_lrotate(treapset *root);
extern treapset *treap_insert_p(treapset *root, TREAPTYPE value, int priority, char *str);
extern treapset *treap_insert(treapset *root, TREAPTYPE value, char *str);
extern treapset *treap_delete(treapset *root, TREAPTYPE value);
extern int treap_search(treapset *root, TREAPTYPE value);
extern treapset *treap_find(treapset *root, TREAPTYPE value);<commit_msg>External c files can now override TREAPTYPE<commit_after>#ifndef TREAPSET_H
#define TREAPSET_H

/*change to fit your program*/
#ifndef TREAPTYPE
#define TREAPTYPE unsigned long
#endif

typedef struct treap {
	int priority;
	TREAPTYPE data;
	char *str;
	struct treap *left;
	struct treap *right;
	struct treap *middle;
} treapset;


extern treapset *treap_rrotate(treapset *root);
extern treapset *treap_lrotate(treapset *root);
extern treapset *treap_insert_p(treapset *root, TREAPTYPE value, int priority, char *str);
extern treapset *treap_insert(treapset *root, TREAPTYPE value, char *str);
extern treapset *treap_delete(treapset *root, TREAPTYPE value);
extern int treap_search(treapset *root, TREAPTYPE value);
extern treapset *treap_find(treapset *root, TREAPTYPE value);
{'fraction_non_alphanumeric': 0.09066666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 6.98404255319149, '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': '42464', 'n_tokens_mistral': 564, 'n_tokens_neox': 541, 'n_words': 160}