<commit_before>/* TAP shared library: a library for converting audio data (as a stream of
 * PCM signed 32-bit samples, mono) to raw TAP data and back
 *
 * TAP specification was written by <NAME> and is available at
 * http://www.computerbrains.com/tapformat.html
 *
 * The algorithm for TAP encoding was originally written by <NAME>
 * Kujala, based on the one written by <NAME> for Tape64.
 * Some modifications and adaptation to library format by <NAME>
 *
 * Copyright (c) <NAME>, 2003-2012
 *
 * The program is distributed under the GNU Lesser General Public License.
 * See file LESSER-LICENSE.TXT for details.
 */

#include <stdint.h>

#if !defined TAPENCODER_DECLARE_HERE
#define EXTERN extern
#elif __GNUC__ >= 4
#define EXTERN __attribute__ ((visibility ("hidden")))
#else
#define EXTERN
#endif

struct tap_enc_t;

EXTERN struct tap_enc_t *(*tapenc_init2)(uint32_t min_duration, uint8_t sensitivity, uint8_t initial_threshold, uint8_t inverted);
EXTERN uint32_t (*tapenc_get_pulse)(struct tap_enc_t *tap, int32_t *buffer, uint32_t buflen, uint32_t *pulse);
EXTERN uint32_t (*tapenc_flush)(struct tap_enc_t *tap);
EXTERN int32_t (*tapenc_get_max)(struct tap_enc_t *tap);
EXTERN void (*tapenc_invert)(struct tap_enc_t *tap);
EXTERN void (*tapenc_toggle_trigger_on_both_edges)(struct tap_enc_t *tap, uint8_t both_edges);
EXTERN void (*tapenc_set_silence_threshold)(struct tap_enc_t *tap,
                                  uint8_t silence_threshold,
                                  uint32_t min_non_silence_duration);
void (*tapenc_exit)(struct tap_enc_t *tap);
<commit_msg>Add a missing EXTERN definition for a symbol, that was causing compilation errors<commit_after>/* TAP shared library: a library for converting audio data (as a stream of
 * PCM signed 32-bit samples, mono) to raw TAP data and back
 *
 * TAP specification was written by <NAME> and is available at
 * http://www.computerbrains.com/tapformat.html
 *
 * The algorithm for TAP encoding was originally written by <NAME>
 * Kujala, based on the one written by <NAME> for Tape64.
 * Some modifications and adaptation to library format by <NAME>
 *
 * Copyright (c) <NAME>, 2003-2012
 *
 * The program is distributed under the GNU Lesser General Public License.
 * See file LESSER-LICENSE.TXT for details.
 */

#include <stdint.h>

#if !defined TAPENCODER_DECLARE_HERE
#define EXTERN extern
#elif __GNUC__ >= 4
#define EXTERN __attribute__ ((visibility ("hidden")))
#else
#define EXTERN
#endif

struct tap_enc_t;

EXTERN struct tap_enc_t *(*tapenc_init2)(uint32_t min_duration, uint8_t sensitivity, uint8_t initial_threshold, uint8_t inverted);
EXTERN uint32_t (*tapenc_get_pulse)(struct tap_enc_t *tap, int32_t *buffer, uint32_t buflen, uint32_t *pulse);
EXTERN uint32_t (*tapenc_flush)(struct tap_enc_t *tap);
EXTERN int32_t (*tapenc_get_max)(struct tap_enc_t *tap);
EXTERN void (*tapenc_invert)(struct tap_enc_t *tap);
EXTERN void (*tapenc_toggle_trigger_on_both_edges)(struct tap_enc_t *tap, uint8_t both_edges);
EXTERN void (*tapenc_set_silence_threshold)(struct tap_enc_t *tap,
                                  uint8_t silence_threshold,
                                  uint32_t min_non_silence_duration);
EXTERN void (*tapenc_exit)(struct tap_enc_t *tap);

{'fraction_non_alphanumeric': 0.08793582227707497, 'fraction_numerical': 0.02159827213822894, 'mean_word_length': 4.628472222222222, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7504903', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1036, 'n_words': 341}