<commit_before>/*
 * ccn/ccn_private.h
 * 
 * Copyright (C) 2009 Palo Alto Research Center, Inc. All rights reserved.
 *
 * Additional operations that are irrevalent for most clients
 *
 */

#ifndef CCN_PRIVATE_DEFINED
#define CCN_PRIVATE_DEFINED

#include <sys/types.h>
#include <stdint.h>

struct ccn;
struct ccn_charbuf;

/*
 * Dispatch a message as if it had arrived on the socket
 */
void ccn_dispatch_message(struct ccn *h, unsigned char *msg, size_t size);

/*
 * Do any time-based operations
 * Returns number of microseconds before next call needed
 */
int ccn_process_scheduled_operations(struct ccn *h);

/*
 * Grab buffered output
 * Caller should destroy returned buffer.
 */
struct ccn_charbuf *ccn_grab_buffered_output(struct ccn *h);

int ccn_charbuf_append_timestamp_blob(struct ccn_charbuf *c, int marker, intmax_t secs, int nsecs);

int ccn_charbuf_append_now_blob(struct ccn_charbuf *c, int marker);

#endif
<commit_msg>remove duplicate defns of a couple of charbuf routines from ccn_private.h<commit_after>/*
 * ccn/ccn_private.h
 * 
 * Copyright (C) 2009 Palo Alto Research Center, Inc. All rights reserved.
 *
 * Additional operations that are irrevalent for most clients
 *
 */

#ifndef CCN_PRIVATE_DEFINED
#define CCN_PRIVATE_DEFINED

#include <sys/types.h>
#include <stdint.h>

struct ccn;
struct ccn_charbuf;

/*
 * Dispatch a message as if it had arrived on the socket
 */
void ccn_dispatch_message(struct ccn *h, unsigned char *msg, size_t size);

/*
 * Do any time-based operations
 * Returns number of microseconds before next call needed
 */
int ccn_process_scheduled_operations(struct ccn *h);

/*
 * Grab buffered output
 * Caller should destroy returned buffer.
 */
struct ccn_charbuf *ccn_grab_buffered_output(struct ccn *h);

#endif

{'fraction_non_alphanumeric': 0.08531073446327683, 'fraction_numerical': 0.004519774011299435, 'mean_word_length': 4.676282051282051, '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': '6486157', 'n_tokens_mistral': 605, 'n_tokens_neox': 583, 'n_words': 192}