<commit_before>/* deque.h - (C) 2014, <NAME>
* libsrsbsns - A srs lib
* See README for contact-, COPYING for license information. */

#include <stdbool.h>

typedef struct deque *deque_t;
typedef void (*deque_dump_fn)(void *elem);

deque_t deque_init(size_t initsize);
void deque_dispose(deque_t d);
void deque_clear(deque_t d);
size_t deque_count(deque_t d);
bool deque_pushfront(deque_t d, void* data);
bool deque_pushback(deque_t d, void* data);
bool deque_shrink(deque_t d, double countfac);
void* deque_popfront(deque_t d);
void* deque_popback(deque_t d);
void deque_dump(deque_t d, deque_dump_fn dfn);<commit_msg>deque: Forgot definations for peek<commit_after>/* deque.h - (C) 2014, <NAME>
* libsrsbsns - A srs lib
* See README for contact-, COPYING for license information. */

#include <stdbool.h>

typedef struct deque *deque_t;
typedef void (*deque_dump_fn)(void *elem);

deque_t deque_init(size_t initsize);
void deque_dispose(deque_t d);
void deque_clear(deque_t d);
size_t deque_count(deque_t d);
bool deque_pushfront(deque_t d, void* data);
bool deque_pushback(deque_t d, void* data);
bool deque_shrink(deque_t d, double countfac);
void* deque_popfront(deque_t d);
void* deque_popback(deque_t d);
void* deque_peekfront(deque_t d);
void* deque_peekback(deque_t d);
void deque_dump(deque_t d, deque_dump_fn dfn);
{'fraction_non_alphanumeric': 0.11404833836858005, 'fraction_numerical': 0.006042296072507553, 'mean_word_length': 6.748538011695906, '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': '2981271', 'n_tokens_mistral': 566, 'n_tokens_neox': 546, 'n_words': 139}